From 6bac1a2bb052a7f3320d857285cb72a20fecd08e Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 14 Dec 2021 07:56:31 +0000 Subject: [PATCH] CodeGen from PR 15828 in Azure/azure-rest-api-specs Merge 32358387bed6dfa5dc6c257a0708acc9535cd59e into ea0f7b072ad3aaff203ea9003246b9e584b819ff --- .../Models/ManagedServiceIdentity.cs | 99 ++++++++++ .../Models/ManagedServiceIdentityType.cs | 24 +++ ...RedisCommonPropertiesRedisConfiguration.cs | 187 ++++++++++++++++++ .../Generated/Models/RedisCreateParameters.cs | 26 ++- .../src/Generated/Models/RedisResource.cs | 26 ++- .../Generated/Models/RedisUpdateParameters.cs | 16 +- .../Generated/Models/UserAssignedIdentity.cs | 61 ++++++ .../src/Generated/RedisManagementClient.cs | 2 +- .../SdkInfo_RedisManagementClient.cs | 25 +-- 9 files changed, 433 insertions(+), 33 deletions(-) create mode 100644 sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/ManagedServiceIdentity.cs create mode 100644 sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/ManagedServiceIdentityType.cs create mode 100644 sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/RedisCommonPropertiesRedisConfiguration.cs create mode 100644 sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/UserAssignedIdentity.cs diff --git a/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/ManagedServiceIdentity.cs b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/ManagedServiceIdentity.cs new file mode 100644 index 000000000000..01dee8597083 --- /dev/null +++ b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/ManagedServiceIdentity.cs @@ -0,0 +1,99 @@ +// +// 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.Redis.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Managed service identity (system assigned and/or user assigned + /// identities) + /// + public partial class ManagedServiceIdentity + { + /// + /// Initializes a new instance of the ManagedServiceIdentity class. + /// + public ManagedServiceIdentity() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ManagedServiceIdentity class. + /// + /// Possible values include: 'None', + /// 'SystemAssigned', 'UserAssigned', 'SystemAssigned, + /// UserAssigned' + /// The service principal ID of the system + /// assigned identity. This property will only be provided for a system + /// assigned identity. + /// The tenant ID of the system assigned + /// identity. This property will only be provided for a system assigned + /// identity. + public ManagedServiceIdentity(string type, System.Guid? principalId = default(System.Guid?), System.Guid? tenantId = default(System.Guid?), IDictionary userAssignedIdentities = default(IDictionary)) + { + PrincipalId = principalId; + TenantId = tenantId; + Type = type; + UserAssignedIdentities = userAssignedIdentities; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the service principal ID of the system assigned identity. This + /// property will only be provided for a system assigned identity. + /// + [JsonProperty(PropertyName = "principalId")] + public System.Guid? PrincipalId { get; private set; } + + /// + /// Gets the tenant ID of the system assigned identity. This property + /// will only be provided for a system assigned identity. + /// + [JsonProperty(PropertyName = "tenantId")] + public System.Guid? TenantId { get; private set; } + + /// + /// Gets or sets possible values include: 'None', 'SystemAssigned', + /// 'UserAssigned', 'SystemAssigned, UserAssigned' + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// + [JsonProperty(PropertyName = "userAssignedIdentities")] + public IDictionary UserAssignedIdentities { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Type == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Type"); + } + } + } +} diff --git a/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/ManagedServiceIdentityType.cs b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/ManagedServiceIdentityType.cs new file mode 100644 index 000000000000..829c9fa17fd5 --- /dev/null +++ b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/ManagedServiceIdentityType.cs @@ -0,0 +1,24 @@ +// +// 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.Redis.Models +{ + + /// + /// Defines values for ManagedServiceIdentityType. + /// + public static class ManagedServiceIdentityType + { + public const string None = "None"; + public const string SystemAssigned = "SystemAssigned"; + public const string UserAssigned = "UserAssigned"; + public const string SystemAssignedUserAssigned = "SystemAssigned, UserAssigned"; + } +} diff --git a/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/RedisCommonPropertiesRedisConfiguration.cs b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/RedisCommonPropertiesRedisConfiguration.cs new file mode 100644 index 000000000000..0dddb6872b2c --- /dev/null +++ b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/RedisCommonPropertiesRedisConfiguration.cs @@ -0,0 +1,187 @@ +// +// 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.Redis.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// All Redis Settings. Few possible keys: + /// rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value + /// etc. + /// + public partial class RedisCommonPropertiesRedisConfiguration + { + /// + /// Initializes a new instance of the + /// RedisCommonPropertiesRedisConfiguration class. + /// + public RedisCommonPropertiesRedisConfiguration() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// RedisCommonPropertiesRedisConfiguration class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// Specifies whether the rdb backup is + /// enabled + /// Specifies the frequency for + /// creating rdb backup + /// Specifies the maximum + /// number of snapshots for rdb backup + /// The storage account + /// connection string for storing rdb file + /// First storage account + /// connection string + /// Second storage account + /// connection string + /// Value in megabytes + /// reserved for fragmentation per shard + /// The eviction strategy used when your + /// data won't fit within its memory limit. + /// Value in megabytes reserved for + /// non-cache usage per shard e.g. failover. + /// Value in megabytes reserved for + /// non-cache usage per shard e.g. failover. + /// The max clients config + /// Preferred auth method + /// to communicate to storage account used for data archive, specify + /// SAS or ManagedIdentity, default value is SAS + /// Preferred auth + /// method to communicate to storage account used for data persistence, + /// specify SAS or ManagedIdentity, default value is SAS + public RedisCommonPropertiesRedisConfiguration(IDictionary additionalProperties = default(IDictionary), string rdbBackupEnabled = default(string), string rdbBackupFrequency = default(string), string rdbBackupMaxSnapshotCount = default(string), string rdbStorageConnectionString = default(string), string aofStorageConnectionString0 = default(string), string aofStorageConnectionString1 = default(string), string maxfragmentationmemoryReserved = default(string), string maxmemoryPolicy = default(string), string maxmemoryReserved = default(string), string maxmemoryDelta = default(string), string maxclients = default(string), string preferredDataArchiveAuthMethod = default(string), string preferredDataPersistenceAuthMethod = default(string)) + { + AdditionalProperties = additionalProperties; + RdbBackupEnabled = rdbBackupEnabled; + RdbBackupFrequency = rdbBackupFrequency; + RdbBackupMaxSnapshotCount = rdbBackupMaxSnapshotCount; + RdbStorageConnectionString = rdbStorageConnectionString; + AofStorageConnectionString0 = aofStorageConnectionString0; + AofStorageConnectionString1 = aofStorageConnectionString1; + MaxfragmentationmemoryReserved = maxfragmentationmemoryReserved; + MaxmemoryPolicy = maxmemoryPolicy; + MaxmemoryReserved = maxmemoryReserved; + MaxmemoryDelta = maxmemoryDelta; + Maxclients = maxclients; + PreferredDataArchiveAuthMethod = preferredDataArchiveAuthMethod; + PreferredDataPersistenceAuthMethod = preferredDataPersistenceAuthMethod; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets unmatched properties from the message are deserialized + /// this collection + /// + [JsonExtensionData] + public IDictionary AdditionalProperties { get; set; } + + /// + /// Gets or sets specifies whether the rdb backup is enabled + /// + [JsonProperty(PropertyName = "rdb-backup-enabled")] + public string RdbBackupEnabled { get; set; } + + /// + /// Gets or sets specifies the frequency for creating rdb backup + /// + [JsonProperty(PropertyName = "rdb-backup-frequency")] + public string RdbBackupFrequency { get; set; } + + /// + /// Gets or sets specifies the maximum number of snapshots for rdb + /// backup + /// + [JsonProperty(PropertyName = "rdb-backup-max-snapshot-count")] + public string RdbBackupMaxSnapshotCount { get; set; } + + /// + /// Gets or sets the storage account connection string for storing rdb + /// file + /// + [JsonProperty(PropertyName = "rdb-storage-connection-string")] + public string RdbStorageConnectionString { get; set; } + + /// + /// Gets or sets first storage account connection string + /// + [JsonProperty(PropertyName = "aof-storage-connection-string-0")] + public string AofStorageConnectionString0 { get; set; } + + /// + /// Gets or sets second storage account connection string + /// + [JsonProperty(PropertyName = "aof-storage-connection-string-1")] + public string AofStorageConnectionString1 { get; set; } + + /// + /// Gets or sets value in megabytes reserved for fragmentation per + /// shard + /// + [JsonProperty(PropertyName = "maxfragmentationmemory-reserved")] + public string MaxfragmentationmemoryReserved { get; set; } + + /// + /// Gets or sets the eviction strategy used when your data won't fit + /// within its memory limit. + /// + [JsonProperty(PropertyName = "maxmemory-policy")] + public string MaxmemoryPolicy { get; set; } + + /// + /// Gets or sets value in megabytes reserved for non-cache usage per + /// shard e.g. failover. + /// + [JsonProperty(PropertyName = "maxmemory-reserved")] + public string MaxmemoryReserved { get; set; } + + /// + /// Gets or sets value in megabytes reserved for non-cache usage per + /// shard e.g. failover. + /// + [JsonProperty(PropertyName = "maxmemory-delta")] + public string MaxmemoryDelta { get; set; } + + /// + /// Gets the max clients config + /// + [JsonProperty(PropertyName = "maxclients")] + public string Maxclients { get; private set; } + + /// + /// Gets preferred auth method to communicate to storage account used + /// for data archive, specify SAS or ManagedIdentity, default value is + /// SAS + /// + [JsonProperty(PropertyName = "preferred-data-archive-auth-method")] + public string PreferredDataArchiveAuthMethod { get; private set; } + + /// + /// Gets preferred auth method to communicate to storage account used + /// for data persistence, specify SAS or ManagedIdentity, default value + /// is SAS + /// + [JsonProperty(PropertyName = "preferred-data-persistence-auth-method")] + public string PreferredDataPersistenceAuthMethod { get; private set; } + + } +} diff --git a/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/RedisCreateParameters.cs b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/RedisCreateParameters.cs index 20c350367569..84b9a8f26b38 100644 --- a/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/RedisCreateParameters.cs +++ b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/RedisCreateParameters.cs @@ -65,12 +65,14 @@ public RedisCreateParameters() /// The full resource ID of a subnet in a /// virtual network to deploy the Redis cache in. Example format: /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1 - /// Static IP address. Required when deploying a - /// Redis cache inside an existing Azure Virtual Network. + /// Static IP address. Optionally, may be + /// specified when deploying a Redis cache inside an existing Azure + /// Virtual Network; auto assigned by default. /// A list of availability zones denoting where the /// resource needs to come from. /// Resource tags. - public RedisCreateParameters(Sku sku, string location, IDictionary redisConfiguration = default(IDictionary), string redisVersion = default(string), bool? enableNonSslPort = default(bool?), int? replicasPerMaster = default(int?), int? replicasPerPrimary = default(int?), IDictionary tenantSettings = default(IDictionary), int? shardCount = default(int?), string minimumTlsVersion = default(string), string publicNetworkAccess = default(string), string subnetId = default(string), string staticIP = default(string), IList zones = default(IList), IDictionary tags = default(IDictionary)) + /// The identity of the resource. + public RedisCreateParameters(Sku sku, string location, RedisCommonPropertiesRedisConfiguration redisConfiguration = default(RedisCommonPropertiesRedisConfiguration), string redisVersion = default(string), bool? enableNonSslPort = default(bool?), int? replicasPerMaster = default(int?), int? replicasPerPrimary = default(int?), IDictionary tenantSettings = default(IDictionary), int? shardCount = default(int?), string minimumTlsVersion = default(string), string publicNetworkAccess = default(string), string subnetId = default(string), string staticIP = default(string), IList zones = default(IList), IDictionary tags = default(IDictionary), ManagedServiceIdentity identity = default(ManagedServiceIdentity)) { RedisConfiguration = redisConfiguration; RedisVersion = redisVersion; @@ -87,6 +89,7 @@ public RedisCreateParameters() Zones = zones; Location = location; Tags = tags; + Identity = identity; CustomInit(); } @@ -101,7 +104,7 @@ public RedisCreateParameters() /// etc. /// [JsonProperty(PropertyName = "properties.redisConfiguration")] - public IDictionary RedisConfiguration { get; set; } + public RedisCommonPropertiesRedisConfiguration RedisConfiguration { get; set; } /// /// Gets or sets redis version. Only major version will be used in @@ -175,8 +178,9 @@ public RedisCreateParameters() public string SubnetId { get; set; } /// - /// Gets or sets static IP address. Required when deploying a Redis - /// cache inside an existing Azure Virtual Network. + /// Gets or sets static IP address. Optionally, may be specified when + /// deploying a Redis cache inside an existing Azure Virtual Network; + /// auto assigned by default. /// [JsonProperty(PropertyName = "properties.staticIP")] public string StaticIP { get; set; } @@ -200,6 +204,12 @@ public RedisCreateParameters() [JsonProperty(PropertyName = "tags")] public IDictionary Tags { get; set; } + /// + /// Gets or sets the identity of the resource. + /// + [JsonProperty(PropertyName = "identity")] + public ManagedServiceIdentity Identity { get; set; } + /// /// Validate the object. /// @@ -234,6 +244,10 @@ public virtual void Validate() throw new ValidationException(ValidationRules.Pattern, "StaticIP", "^\\d+\\.\\d+\\.\\d+\\.\\d+$"); } } + if (Identity != null) + { + Identity.Validate(); + } } } } diff --git a/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/RedisResource.cs b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/RedisResource.cs index 5908666fa11d..e5978b066340 100644 --- a/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/RedisResource.cs +++ b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/RedisResource.cs @@ -72,8 +72,9 @@ public RedisResource() /// The full resource ID of a subnet in a /// virtual network to deploy the Redis cache in. Example format: /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1 - /// Static IP address. Required when deploying a - /// Redis cache inside an existing Azure Virtual Network. + /// Static IP address. Optionally, may be + /// specified when deploying a Redis cache inside an existing Azure + /// Virtual Network; auto assigned by default. /// Redis instance provisioning status. /// Possible values include: 'Creating', 'Deleting', 'Disabled', /// 'Failed', 'Linking', 'Provisioning', 'RecoveringScaleFailure', @@ -93,7 +94,8 @@ public RedisResource() /// connection associated with the specified redis cache /// A list of availability zones denoting where the /// resource needs to come from. - public RedisResource(string location, Sku sku, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), IDictionary redisConfiguration = default(IDictionary), string redisVersion = default(string), bool? enableNonSslPort = default(bool?), int? replicasPerMaster = default(int?), int? replicasPerPrimary = default(int?), IDictionary tenantSettings = default(IDictionary), int? shardCount = default(int?), string minimumTlsVersion = default(string), string publicNetworkAccess = default(string), string subnetId = default(string), string staticIP = default(string), string provisioningState = default(string), string hostName = default(string), int? port = default(int?), int? sslPort = default(int?), RedisAccessKeys accessKeys = default(RedisAccessKeys), IList linkedServers = default(IList), IList instances = default(IList), IList privateEndpointConnections = default(IList), IList zones = default(IList)) + /// The identity of the resource. + public RedisResource(string location, Sku sku, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), RedisCommonPropertiesRedisConfiguration redisConfiguration = default(RedisCommonPropertiesRedisConfiguration), string redisVersion = default(string), bool? enableNonSslPort = default(bool?), int? replicasPerMaster = default(int?), int? replicasPerPrimary = default(int?), IDictionary tenantSettings = default(IDictionary), int? shardCount = default(int?), string minimumTlsVersion = default(string), string publicNetworkAccess = default(string), string subnetId = default(string), string staticIP = default(string), string provisioningState = default(string), string hostName = default(string), int? port = default(int?), int? sslPort = default(int?), RedisAccessKeys accessKeys = default(RedisAccessKeys), IList linkedServers = default(IList), IList instances = default(IList), IList privateEndpointConnections = default(IList), IList zones = default(IList), ManagedServiceIdentity identity = default(ManagedServiceIdentity)) : base(location, id, name, type, tags) { RedisConfiguration = redisConfiguration; @@ -117,6 +119,7 @@ public RedisResource() Instances = instances; PrivateEndpointConnections = privateEndpointConnections; Zones = zones; + Identity = identity; CustomInit(); } @@ -131,7 +134,7 @@ public RedisResource() /// etc. /// [JsonProperty(PropertyName = "properties.redisConfiguration")] - public IDictionary RedisConfiguration { get; set; } + public RedisCommonPropertiesRedisConfiguration RedisConfiguration { get; set; } /// /// Gets or sets redis version. Only major version will be used in @@ -205,8 +208,9 @@ public RedisResource() public string SubnetId { get; set; } /// - /// Gets or sets static IP address. Required when deploying a Redis - /// cache inside an existing Azure Virtual Network. + /// Gets or sets static IP address. Optionally, may be specified when + /// deploying a Redis cache inside an existing Azure Virtual Network; + /// auto assigned by default. /// [JsonProperty(PropertyName = "properties.staticIP")] public string StaticIP { get; set; } @@ -271,6 +275,12 @@ public RedisResource() [JsonProperty(PropertyName = "zones")] public IList Zones { get; set; } + /// + /// Gets or sets the identity of the resource. + /// + [JsonProperty(PropertyName = "identity")] + public ManagedServiceIdentity Identity { get; set; } + /// /// Validate the object. /// @@ -312,6 +322,10 @@ public override void Validate() } } } + if (Identity != null) + { + Identity.Validate(); + } } } } diff --git a/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/RedisUpdateParameters.cs b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/RedisUpdateParameters.cs index f929cbbd0306..03d6614b7544 100644 --- a/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/RedisUpdateParameters.cs +++ b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/RedisUpdateParameters.cs @@ -61,7 +61,8 @@ public RedisUpdateParameters() /// 'Enabled'. Possible values include: 'Enabled', 'Disabled' /// The SKU of the Redis cache to deploy. /// Resource tags. - public RedisUpdateParameters(IDictionary redisConfiguration = default(IDictionary), string redisVersion = default(string), bool? enableNonSslPort = default(bool?), int? replicasPerMaster = default(int?), int? replicasPerPrimary = default(int?), IDictionary tenantSettings = default(IDictionary), int? shardCount = default(int?), string minimumTlsVersion = default(string), string publicNetworkAccess = default(string), Sku sku = default(Sku), IDictionary tags = default(IDictionary)) + /// The identity of the resource. + public RedisUpdateParameters(RedisCommonPropertiesRedisConfiguration redisConfiguration = default(RedisCommonPropertiesRedisConfiguration), string redisVersion = default(string), bool? enableNonSslPort = default(bool?), int? replicasPerMaster = default(int?), int? replicasPerPrimary = default(int?), IDictionary tenantSettings = default(IDictionary), int? shardCount = default(int?), string minimumTlsVersion = default(string), string publicNetworkAccess = default(string), Sku sku = default(Sku), IDictionary tags = default(IDictionary), ManagedServiceIdentity identity = default(ManagedServiceIdentity)) { RedisConfiguration = redisConfiguration; RedisVersion = redisVersion; @@ -74,6 +75,7 @@ public RedisUpdateParameters() PublicNetworkAccess = publicNetworkAccess; Sku = sku; Tags = tags; + Identity = identity; CustomInit(); } @@ -88,7 +90,7 @@ public RedisUpdateParameters() /// etc. /// [JsonProperty(PropertyName = "properties.redisConfiguration")] - public IDictionary RedisConfiguration { get; set; } + public RedisCommonPropertiesRedisConfiguration RedisConfiguration { get; set; } /// /// Gets or sets redis version. Only major version will be used in @@ -159,6 +161,12 @@ public RedisUpdateParameters() [JsonProperty(PropertyName = "tags")] public IDictionary Tags { get; set; } + /// + /// Gets or sets the identity of the resource. + /// + [JsonProperty(PropertyName = "identity")] + public ManagedServiceIdentity Identity { get; set; } + /// /// Validate the object. /// @@ -171,6 +179,10 @@ public virtual void Validate() { Sku.Validate(); } + if (Identity != null) + { + Identity.Validate(); + } } } } diff --git a/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/UserAssignedIdentity.cs b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/UserAssignedIdentity.cs new file mode 100644 index 000000000000..96b51c8af614 --- /dev/null +++ b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/UserAssignedIdentity.cs @@ -0,0 +1,61 @@ +// +// 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.Redis.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// User assigned identity properties + /// + public partial class UserAssignedIdentity + { + /// + /// Initializes a new instance of the UserAssignedIdentity class. + /// + public UserAssignedIdentity() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the UserAssignedIdentity class. + /// + /// The principal ID of the assigned + /// identity. + /// The client ID of the assigned + /// identity. + public UserAssignedIdentity(System.Guid? principalId = default(System.Guid?), System.Guid? clientId = default(System.Guid?)) + { + PrincipalId = principalId; + ClientId = clientId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the principal ID of the assigned identity. + /// + [JsonProperty(PropertyName = "principalId")] + public System.Guid? PrincipalId { get; private set; } + + /// + /// Gets the client ID of the assigned identity. + /// + [JsonProperty(PropertyName = "clientId")] + public System.Guid? ClientId { get; private set; } + + } +} diff --git a/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/RedisManagementClient.cs b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/RedisManagementClient.cs index 06bbc322cc12..3ed9a7f02550 100644 --- a/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/RedisManagementClient.cs +++ b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/RedisManagementClient.cs @@ -360,7 +360,7 @@ private void Initialize() PrivateEndpointConnections = new PrivateEndpointConnectionsOperations(this); PrivateLinkResources = new PrivateLinkResourcesOperations(this); BaseUri = new System.Uri("https://management.azure.com"); - ApiVersion = "2020-12-01"; + ApiVersion = "2021-06-01"; AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true; diff --git a/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/SdkInfo_RedisManagementClient.cs b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/SdkInfo_RedisManagementClient.cs index ab92ab73f801..12bea03258c8 100644 --- a/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/SdkInfo_RedisManagementClient.cs +++ b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/SdkInfo_RedisManagementClient.cs @@ -19,26 +19,15 @@ public static IEnumerable> ApiInfo_RedisManagement { return new Tuple[] { - new Tuple("Cache", "FirewallRules", "2020-12-01"), - new Tuple("Cache", "LinkedServer", "2020-12-01"), - new Tuple("Cache", "Operations", "2020-12-01"), - new Tuple("Cache", "PatchSchedules", "2020-12-01"), - new Tuple("Cache", "PrivateEndpointConnections", "2020-12-01"), - new Tuple("Cache", "PrivateLinkResources", "2020-12-01"), - new Tuple("Cache", "Redis", "2020-12-01"), + new Tuple("Cache", "FirewallRules", "2021-06-01"), + new Tuple("Cache", "LinkedServer", "2021-06-01"), + new Tuple("Cache", "Operations", "2021-06-01"), + new Tuple("Cache", "PatchSchedules", "2021-06-01"), + new Tuple("Cache", "PrivateEndpointConnections", "2021-06-01"), + new Tuple("Cache", "PrivateLinkResources", "2021-06-01"), + new Tuple("Cache", "Redis", "2021-06-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/redis/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=E:\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "b20011746ef065a8ab6572045de9578c192f2ffd"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } -