From 8b4a3c89a1de777b55b3d5012e085e8a3243b176 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Thu, 16 Apr 2020 05:27:20 +0000 Subject: [PATCH] Generated from 0e95e9d4b996a49b04b14d9b428835adb6d10f08 Fix typo --- .../Models/ManagedServiceIdentityType.cs | 22 ++++++ .../src/Generated/Models/Resource.cs | 12 ++- .../src/Generated/Models/ResourceIdentity.cs | 73 +++++++++++++++++++ .../Models/ServiceExportConfigurationInfo.cs | 54 ++++++++++++++ .../Generated/Models/ServicesDescription.cs | 6 +- .../Generated/Models/ServicesProperties.cs | 12 ++- .../SdkInfo_HealthcareApisManagementClient.cs | 11 --- 7 files changed, 175 insertions(+), 15 deletions(-) create mode 100644 sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/Models/ManagedServiceIdentityType.cs create mode 100644 sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/Models/ResourceIdentity.cs create mode 100644 sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/Models/ServiceExportConfigurationInfo.cs diff --git a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/Models/ManagedServiceIdentityType.cs b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/Models/ManagedServiceIdentityType.cs new file mode 100644 index 000000000000..e3b55a54d08b --- /dev/null +++ b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/Models/ManagedServiceIdentityType.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.HealthcareApis.Models +{ + + /// + /// Defines values for ManagedServiceIdentityType. + /// + public static class ManagedServiceIdentityType + { + public const string SystemAssigned = "SystemAssigned"; + public const string None = "None"; + } +} diff --git a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/Models/Resource.cs b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/Models/Resource.cs index f01af7e84f4f..3ef3cc2edfe5 100644 --- a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/Models/Resource.cs +++ b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/Models/Resource.cs @@ -42,7 +42,9 @@ public Resource() /// The resource tags. /// An etag associated with the resource, used for /// optimistic concurrency when editing it. - public Resource(Kind kind, string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string etag = default(string)) + /// Setting indicating whether the service has a + /// managed identity associated with it. + public Resource(Kind kind, string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string etag = default(string), ResourceIdentity identity = default(ResourceIdentity)) { Id = id; Name = name; @@ -51,6 +53,7 @@ public Resource() Location = location; Tags = tags; Etag = etag; + Identity = identity; CustomInit(); } @@ -103,6 +106,13 @@ public Resource() [JsonProperty(PropertyName = "etag")] public string Etag { get; set; } + /// + /// Gets or sets setting indicating whether the service has a managed + /// identity associated with it. + /// + [JsonProperty(PropertyName = "identity")] + public ResourceIdentity Identity { get; set; } + /// /// Validate the object. /// diff --git a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/Models/ResourceIdentity.cs b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/Models/ResourceIdentity.cs new file mode 100644 index 000000000000..f95fee6e209d --- /dev/null +++ b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/Models/ResourceIdentity.cs @@ -0,0 +1,73 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.HealthcareApis.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Setting indicating whether the service has a managed identity + /// associated with it. + /// + public partial class ResourceIdentity + { + /// + /// Initializes a new instance of the ResourceIdentity class. + /// + public ResourceIdentity() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ResourceIdentity class. + /// + /// The principal ID of the resource + /// identity. + /// The tenant ID of the resource. + /// Type of identity being specified, currently + /// SystemAssigned and None are allowed. Possible values include: + /// 'SystemAssigned', 'None' + public ResourceIdentity(string principalId = default(string), string tenantId = default(string), string type = default(string)) + { + PrincipalId = principalId; + TenantId = tenantId; + Type = type; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the principal ID of the resource identity. + /// + [JsonProperty(PropertyName = "principalId")] + public string PrincipalId { get; private set; } + + /// + /// Gets the tenant ID of the resource. + /// + [JsonProperty(PropertyName = "tenantId")] + public string TenantId { get; private set; } + + /// + /// Gets or sets type of identity being specified, currently + /// SystemAssigned and None are allowed. Possible values include: + /// 'SystemAssigned', 'None' + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + } +} diff --git a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/Models/ServiceExportConfigurationInfo.cs b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/Models/ServiceExportConfigurationInfo.cs new file mode 100644 index 000000000000..a2490ea20bcc --- /dev/null +++ b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/Models/ServiceExportConfigurationInfo.cs @@ -0,0 +1,54 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.HealthcareApis.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Export operation configuration information + /// + public partial class ServiceExportConfigurationInfo + { + /// + /// Initializes a new instance of the ServiceExportConfigurationInfo + /// class. + /// + public ServiceExportConfigurationInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ServiceExportConfigurationInfo + /// class. + /// + /// The name of the default export + /// storage account. + public ServiceExportConfigurationInfo(string storageAccountName = default(string)) + { + StorageAccountName = storageAccountName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the default export storage account. + /// + [JsonProperty(PropertyName = "storageAccountName")] + public string StorageAccountName { get; set; } + + } +} diff --git a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/Models/ServicesDescription.cs b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/Models/ServicesDescription.cs index 02d27083ac45..550594f2be93 100644 --- a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/Models/ServicesDescription.cs +++ b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/Models/ServicesDescription.cs @@ -40,10 +40,12 @@ public ServicesDescription() /// The resource tags. /// An etag associated with the resource, used for /// optimistic concurrency when editing it. + /// Setting indicating whether the service has a + /// managed identity associated with it. /// The common properties of a /// service. - public ServicesDescription(Kind kind, string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string etag = default(string), ServicesProperties properties = default(ServicesProperties)) - : base(kind, location, id, name, type, tags, etag) + public ServicesDescription(Kind kind, string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string etag = default(string), ResourceIdentity identity = default(ResourceIdentity), ServicesProperties properties = default(ServicesProperties)) + : base(kind, location, id, name, type, tags, etag, identity) { Properties = properties; CustomInit(); diff --git a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/Models/ServicesProperties.cs b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/Models/ServicesProperties.cs index 473af6ea9e86..22672851d446 100644 --- a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/Models/ServicesProperties.cs +++ b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/Models/ServicesProperties.cs @@ -44,13 +44,16 @@ public ServicesProperties() /// configuration for the service instance. /// The settings for the CORS /// configuration of the service instance. - public ServicesProperties(IList accessPolicies, string provisioningState = default(string), ServiceCosmosDbConfigurationInfo cosmosDbConfiguration = default(ServiceCosmosDbConfigurationInfo), ServiceAuthenticationConfigurationInfo authenticationConfiguration = default(ServiceAuthenticationConfigurationInfo), ServiceCorsConfigurationInfo corsConfiguration = default(ServiceCorsConfigurationInfo)) + /// The settings for the export + /// operation of the service instance. + public ServicesProperties(IList accessPolicies, string provisioningState = default(string), ServiceCosmosDbConfigurationInfo cosmosDbConfiguration = default(ServiceCosmosDbConfigurationInfo), ServiceAuthenticationConfigurationInfo authenticationConfiguration = default(ServiceAuthenticationConfigurationInfo), ServiceCorsConfigurationInfo corsConfiguration = default(ServiceCorsConfigurationInfo), ServiceExportConfigurationInfo exportConfiguration = default(ServiceExportConfigurationInfo)) { ProvisioningState = provisioningState; AccessPolicies = accessPolicies; CosmosDbConfiguration = cosmosDbConfiguration; AuthenticationConfiguration = authenticationConfiguration; CorsConfiguration = corsConfiguration; + ExportConfiguration = exportConfiguration; CustomInit(); } @@ -94,6 +97,13 @@ public ServicesProperties() [JsonProperty(PropertyName = "corsConfiguration")] public ServiceCorsConfigurationInfo CorsConfiguration { get; set; } + /// + /// Gets or sets the settings for the export operation of the service + /// instance. + /// + [JsonProperty(PropertyName = "exportConfiguration")] + public ServiceExportConfigurationInfo ExportConfiguration { get; set; } + /// /// Validate the object. /// diff --git a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/SdkInfo_HealthcareApisManagementClient.cs b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/SdkInfo_HealthcareApisManagementClient.cs index 2f9b10186b4e..a0f9f7e31853 100644 --- a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/SdkInfo_HealthcareApisManagementClient.cs +++ b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/SdkInfo_HealthcareApisManagementClient.cs @@ -25,16 +25,5 @@ public static IEnumerable> ApiInfo_HealthcareApisM }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "latest"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/healthcareapis/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\\Repo\\azuresdk\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "8a02736ee4e89d8115d4ed5d2001e8c8d78ca878"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } -