From 6d78f60ea170e32b89a31965048846b3f9d73b6b Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 23 Nov 2020 01:47:12 +0000 Subject: [PATCH] CodeGen from PR 11626 in Azure/azure-rest-api-specs [Hub Generated] Review request for Microsoft.MixedReality to add version preview/2019-02-28-preview (#11626) * add isDataAction to listOperations spec * check if type is wrong * Type should be boolean * add identity and kind to the spatial accounts def * isDataAction should be an enum * move isDataAction to its own enum * remove kind from list * refer to common types instead of defining inline * update schema to reflect reality * remove extraneous curly brace * add curly brace at the correct location * change nameAvailable to boolean * add a format for integer type * change example * updated wrong file * remove format per breaking change discussion * fix prettier error --- .../Generated/Models/AzureEntityResource.cs | 15 +++++++----- .../src/Generated/Models/ProxyResource.cs | 15 +++++++----- .../Models/RemoteRenderingAccount.cs | 8 +++---- .../src/Generated/Models/Resource.cs | 23 ++++++++++++------- .../ResourceModelWithAllowedPropertySet.cs | 16 ++++++------- .../Generated/Models/SpatialAnchorsAccount.cs | 8 +++---- .../src/Generated/Models/TrackedResource.cs | 14 +++++++---- .../Generated/SdkInfo_MixedRealityClient.cs | 11 --------- 8 files changed, 58 insertions(+), 52 deletions(-) diff --git a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/AzureEntityResource.cs b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/AzureEntityResource.cs index fa7b16a65adb..c9906e4c4dfc 100644 --- a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/AzureEntityResource.cs +++ b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/AzureEntityResource.cs @@ -14,9 +14,12 @@ namespace Microsoft.Azure.Management.MixedReality.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/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/ProxyResource.cs b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/ProxyResource.cs index aaa7ca65a61f..af25de58f4ca 100644 --- a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/ProxyResource.cs +++ b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/ProxyResource.cs @@ -13,9 +13,12 @@ namespace Microsoft.Azure.Management.MixedReality.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/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/RemoteRenderingAccount.cs b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/RemoteRenderingAccount.cs index a0afda3f9837..f9edcbdc1ee8 100644 --- a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/RemoteRenderingAccount.cs +++ b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/RemoteRenderingAccount.cs @@ -36,12 +36,12 @@ public RemoteRenderingAccount() /// /// 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. /// unique id of certain account. /// Correspond domain name of certain diff --git a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/Resource.cs b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/Resource.cs index ef9bcd12ae1a..be9f72d3bb97 100644 --- a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/Resource.cs +++ b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/Resource.cs @@ -15,6 +15,13 @@ namespace Microsoft.Azure.Management.MixedReality.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/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/ResourceModelWithAllowedPropertySet.cs b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/ResourceModelWithAllowedPropertySet.cs index a2931c01c52f..f495cbc7ce30 100644 --- a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/ResourceModelWithAllowedPropertySet.cs +++ b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/ResourceModelWithAllowedPropertySet.cs @@ -37,12 +37,12 @@ public ResourceModelWithAllowedPropertySet() /// Initializes a new instance of the /// ResourceModelWithAllowedPropertySet 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" /// The geo-location where the resource /// lives /// The fully qualified resource ID of the @@ -84,7 +84,7 @@ public ResourceModelWithAllowedPropertySet() 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")] @@ -97,9 +97,9 @@ public ResourceModelWithAllowedPropertySet() 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/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/SpatialAnchorsAccount.cs b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/SpatialAnchorsAccount.cs index 5a29a4bbbb5c..9edf31382d27 100644 --- a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/SpatialAnchorsAccount.cs +++ b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/SpatialAnchorsAccount.cs @@ -36,12 +36,12 @@ public SpatialAnchorsAccount() /// /// 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. /// unique id of certain account. /// Correspond domain name of certain diff --git a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/TrackedResource.cs b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/TrackedResource.cs index a9b64817dfa2..4e9e6c7a1775 100644 --- a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/TrackedResource.cs +++ b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/TrackedResource.cs @@ -17,8 +17,12 @@ namespace Microsoft.Azure.Management.MixedReality.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/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/SdkInfo_MixedRealityClient.cs b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/SdkInfo_MixedRealityClient.cs index 964371494e84..1651d38e4806 100644 --- a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/SdkInfo_MixedRealityClient.cs +++ b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/SdkInfo_MixedRealityClient.cs @@ -26,16 +26,5 @@ public static IEnumerable> ApiInfo_MixedRealityCli }.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/mixedreality/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\\Git\\GitHub\\my\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "fd1212399155ecb17199b24434d780a42a6e5ec6"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } -