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..146b9319e23f 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
@@ -10,7 +10,6 @@
namespace Microsoft.Azure.Management.HealthcareApis.Models
{
- using Microsoft.Rest;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
@@ -32,25 +31,28 @@ public ServicesProperties()
///
/// Initializes a new instance of the ServicesProperties class.
///
- /// The access policies of the service
- /// instance.
/// The provisioning state. Possible
/// values include: 'Deleting', 'Succeeded', 'Creating', 'Accepted',
/// 'Verifying', 'Updating', 'Failed', 'Canceled',
/// 'Deprovisioned'
+ /// The access policies of the service
+ /// instance.
/// The settings for the Cosmos DB
/// database backing the service.
/// The authentication
/// 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(string provisioningState = default(string), IList accessPolicies = default(IList), 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,18 +96,21 @@ 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.
///
- ///
+ ///
/// Thrown if validation fails
///
public virtual void Validate()
{
- if (AccessPolicies == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "AccessPolicies");
- }
if (AccessPolicies != null)
{
foreach (var element in AccessPolicies)
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
}
}
-