From 6c5a59a715d6a28adc6d3516a442b14387ddf97c Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 13 Nov 2020 03:41:44 +0000 Subject: [PATCH] CodeGen from PR 11659 in Azure/azure-rest-api-specs Fix output-folder (#11659) --- .../Generated/AttestationManagementClient.cs | 2 +- .../AttestationProvidersOperations.cs | 4 ++-- ...ttestationProvidersOperationsExtensions.cs | 8 +++---- .../IAttestationProvidersOperations.cs | 4 ++-- .../Generated/Models/AttestationProvider.cs | 18 ++++++--------- .../Generated/Models/AzureEntityResource.cs | 15 +++++++----- .../src/Generated/Models/ProxyResource.cs | 15 +++++++----- .../src/Generated/Models/Resource.cs | 23 ++++++++++++------- .../src/Generated/Models/TrackedResource.cs | 14 +++++++---- .../SdkInfo_AttestationManagementClient.cs | 15 ++---------- 10 files changed, 60 insertions(+), 58 deletions(-) diff --git a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/AttestationManagementClient.cs b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/AttestationManagementClient.cs index dbdd7cceb4074..18b4ca025212e 100644 --- a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/AttestationManagementClient.cs +++ b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/AttestationManagementClient.cs @@ -329,7 +329,7 @@ private void Initialize() Operations = new Operations(this); AttestationProviders = new AttestationProvidersOperations(this); BaseUri = new System.Uri("https://management.azure.com"); - ApiVersion = "2018-09-01-preview"; + ApiVersion = "2018-09-01"; AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true; diff --git a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/AttestationProvidersOperations.cs b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/AttestationProvidersOperations.cs index 927bcba2b4c84..166eab4d69282 100644 --- a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/AttestationProvidersOperations.cs +++ b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/AttestationProvidersOperations.cs @@ -271,7 +271,7 @@ internal AttestationProvidersOperations(AttestationManagementClient client) /// The name of the resource group. The name is case insensitive. /// /// - /// Name of the attestation service + /// Name of the attestation service instance. /// /// /// Client supplied parameters. @@ -521,7 +521,7 @@ internal AttestationProvidersOperations(AttestationManagementClient client) /// The name of the resource group. The name is case insensitive. /// /// - /// Name of the attestation service + /// Name of the attestation service instance. /// /// /// Client supplied parameters. diff --git a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/AttestationProvidersOperationsExtensions.cs b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/AttestationProvidersOperationsExtensions.cs index 7110e4299d728..348ea6345472f 100644 --- a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/AttestationProvidersOperationsExtensions.cs +++ b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/AttestationProvidersOperationsExtensions.cs @@ -71,7 +71,7 @@ public static AttestationProvider Get(this IAttestationProvidersOperations opera /// The name of the resource group. The name is case insensitive. /// /// - /// Name of the attestation service + /// Name of the attestation service instance. /// /// /// Client supplied parameters. @@ -91,7 +91,7 @@ public static AttestationProvider Create(this IAttestationProvidersOperations op /// The name of the resource group. The name is case insensitive. /// /// - /// Name of the attestation service + /// Name of the attestation service instance. /// /// /// Client supplied parameters. @@ -117,7 +117,7 @@ public static AttestationProvider Create(this IAttestationProvidersOperations op /// The name of the resource group. The name is case insensitive. /// /// - /// Name of the attestation service + /// Name of the attestation service instance. /// /// /// Client supplied parameters. @@ -137,7 +137,7 @@ public static AttestationProvider Update(this IAttestationProvidersOperations op /// The name of the resource group. The name is case insensitive. /// /// - /// Name of the attestation service + /// Name of the attestation service instance. /// /// /// Client supplied parameters. diff --git a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/IAttestationProvidersOperations.cs b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/IAttestationProvidersOperations.cs index b937381183c61..7325a7a63e304 100644 --- a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/IAttestationProvidersOperations.cs +++ b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/IAttestationProvidersOperations.cs @@ -55,7 +55,7 @@ public partial interface IAttestationProvidersOperations /// The name of the resource group. The name is case insensitive. /// /// - /// Name of the attestation service + /// Name of the attestation service instance. /// /// /// Client supplied parameters. @@ -83,7 +83,7 @@ public partial interface IAttestationProvidersOperations /// The name of the resource group. The name is case insensitive. /// /// - /// Name of the attestation service + /// Name of the attestation service instance. /// /// /// Client supplied parameters. diff --git a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Models/AttestationProvider.cs b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Models/AttestationProvider.cs index f62c9c9d8376b..93b8e1a0afc93 100644 --- a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Models/AttestationProvider.cs +++ b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Models/AttestationProvider.cs @@ -36,19 +36,19 @@ public AttestationProvider() /// /// The geo-location where the resource /// lives - /// Status of attestation service. Possible values - /// include: 'Ready', 'NotReady', 'Error' - /// Fully qualified resource Id for the resource. Ex - + /// Fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// The name of the resource - /// The type of the resource. Ex- - /// Microsoft.Compute/virtualMachines or - /// Microsoft.Storage/storageAccounts. + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" /// Resource tags. /// Trust model for the attestation service /// instance. + /// Status of attestation service. Possible values + /// include: 'Ready', 'NotReady', 'Error' /// Gets the uri of attestation service - public AttestationProvider(string location, string status, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string trustModel = default(string), string attestUri = default(string)) + public AttestationProvider(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string trustModel = default(string), string status = default(string), string attestUri = default(string)) : base(location, id, name, type, tags) { TrustModel = trustModel; @@ -90,10 +90,6 @@ public AttestationProvider() public override void Validate() { base.Validate(); - if (Status == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Status"); - } } } } diff --git a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Models/AzureEntityResource.cs b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Models/AzureEntityResource.cs index f266b983e24cd..ad07bb6e50201 100644 --- a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Models/AzureEntityResource.cs +++ b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Models/AzureEntityResource.cs @@ -14,9 +14,12 @@ namespace Microsoft.Azure.Management.Attestation.Models using System.Linq; /// - /// The resource model definition for a Azure Resource Manager resource - /// with an etag. + /// Entity Resource /// + /// + /// The resource model definition for an Azure Resource Manager resource + /// with an etag. + /// public partial class AzureEntityResource : Resource { /// @@ -30,12 +33,12 @@ public AzureEntityResource() /// /// Initializes a new instance of the AzureEntityResource class. /// - /// Fully qualified resource Id for the resource. Ex - + /// Fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// The name of the resource - /// The type of the resource. Ex- - /// Microsoft.Compute/virtualMachines or - /// Microsoft.Storage/storageAccounts. + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" /// Resource Etag. public AzureEntityResource(string id = default(string), string name = default(string), string type = default(string), string etag = default(string)) : base(id, name, type) diff --git a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Models/ProxyResource.cs b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Models/ProxyResource.cs index 33568a4555654..9b0ccb3895e54 100644 --- a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Models/ProxyResource.cs +++ b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Models/ProxyResource.cs @@ -13,9 +13,12 @@ namespace Microsoft.Azure.Management.Attestation.Models using System.Linq; /// - /// The resource model definition for a ARM proxy resource. It will have - /// everything other than required location and tags + /// Proxy Resource /// + /// + /// The resource model definition for a Azure Resource Manager proxy + /// resource. It will not have tags and a location + /// public partial class ProxyResource : Resource { /// @@ -29,12 +32,12 @@ public ProxyResource() /// /// Initializes a new instance of the ProxyResource class. /// - /// Fully qualified resource Id for the resource. Ex - + /// Fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// The name of the resource - /// The type of the resource. Ex- - /// Microsoft.Compute/virtualMachines or - /// Microsoft.Storage/storageAccounts. + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" public ProxyResource(string id = default(string), string name = default(string), string type = default(string)) : base(id, name, type) { diff --git a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Models/Resource.cs b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Models/Resource.cs index ad230afd4868f..6aff00f39463f 100644 --- a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Models/Resource.cs +++ b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Models/Resource.cs @@ -15,6 +15,13 @@ namespace Microsoft.Azure.Management.Attestation.Models using Newtonsoft.Json; using System.Linq; + /// + /// Resource + /// + /// + /// Common fields that are returned in the response for all Azure Resource + /// Manager resources + /// public partial class Resource : IResource { /// @@ -28,12 +35,12 @@ public Resource() /// /// Initializes a new instance of the Resource class. /// - /// Fully qualified resource Id for the resource. Ex - + /// Fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// The name of the resource - /// The type of the resource. Ex- - /// Microsoft.Compute/virtualMachines or - /// Microsoft.Storage/storageAccounts. + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" public Resource(string id = default(string), string name = default(string), string type = default(string)) { Id = id; @@ -48,7 +55,7 @@ public Resource() partial void CustomInit(); /// - /// Gets fully qualified resource Id for the resource. Ex - + /// Gets fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// [JsonProperty(PropertyName = "id")] @@ -61,9 +68,9 @@ public Resource() public string Name { get; private set; } /// - /// Gets the type of the resource. Ex- - /// Microsoft.Compute/virtualMachines or - /// Microsoft.Storage/storageAccounts. + /// Gets the type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" /// [JsonProperty(PropertyName = "type")] public string Type { get; private set; } diff --git a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Models/TrackedResource.cs b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Models/TrackedResource.cs index 27a26309d751e..7a9c10840b9c5 100644 --- a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Models/TrackedResource.cs +++ b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Models/TrackedResource.cs @@ -17,8 +17,12 @@ namespace Microsoft.Azure.Management.Attestation.Models using System.Linq; /// - /// The resource model definition for a ARM tracked top level resource + /// Tracked Resource /// + /// + /// The resource model definition for an Azure Resource Manager tracked top + /// level resource which has 'tags' and a 'location' + /// public partial class TrackedResource : Resource { /// @@ -34,12 +38,12 @@ public TrackedResource() /// /// The geo-location where the resource /// lives - /// Fully qualified resource Id for the resource. Ex - + /// Fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// The name of the resource - /// The type of the resource. Ex- - /// Microsoft.Compute/virtualMachines or - /// Microsoft.Storage/storageAccounts. + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" /// Resource tags. public TrackedResource(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary)) : base(id, name, type) diff --git a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/SdkInfo_AttestationManagementClient.cs b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/SdkInfo_AttestationManagementClient.cs index 7dafe39ff70e0..0fce629a337f2 100644 --- a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/SdkInfo_AttestationManagementClient.cs +++ b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/SdkInfo_AttestationManagementClient.cs @@ -19,21 +19,10 @@ public static IEnumerable> ApiInfo_AttestationMana { return new Tuple[] { - new Tuple("Attestation", "AttestationProviders", "2018-09-01-preview"), - new Tuple("Attestation", "Operations", "2018-09-01-preview"), + new Tuple("Attestation", "AttestationProviders", "2018-09-01"), + new Tuple("Attestation", "Operations", "2018-09-01"), }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "v2"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/attestation/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=E:\\git\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "9dbff8c6f75666257e65d40ef2cf9d58063514e0"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } -