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..4941ab56deac --- /dev/null +++ b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/RedisCommonPropertiesRedisConfiguration.cs @@ -0,0 +1,163 @@ +// +// 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 + 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)) + { + AdditionalProperties = additionalProperties; + RdbBackupEnabled = rdbBackupEnabled; + RdbBackupFrequency = rdbBackupFrequency; + RdbBackupMaxSnapshotCount = rdbBackupMaxSnapshotCount; + RdbStorageConnectionString = rdbStorageConnectionString; + AofStorageConnectionString0 = aofStorageConnectionString0; + AofStorageConnectionString1 = aofStorageConnectionString1; + MaxfragmentationmemoryReserved = maxfragmentationmemoryReserved; + MaxmemoryPolicy = maxmemoryPolicy; + MaxmemoryReserved = maxmemoryReserved; + MaxmemoryDelta = maxmemoryDelta; + Maxclients = maxclients; + 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; } + + } +} 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..5b58a390f377 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,13 @@ 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)) + 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)) { RedisConfiguration = redisConfiguration; RedisVersion = redisVersion; @@ -101,7 +102,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 +176,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; } 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..783331cca719 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,7 @@ 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)) + 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)) : base(location, id, name, type, tags) { RedisConfiguration = redisConfiguration; @@ -131,7 +132,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 +206,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; } 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..be27ccb560c0 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,7 @@ 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)) + 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)) { RedisConfiguration = redisConfiguration; RedisVersion = redisVersion; @@ -88,7 +88,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 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..eff692ff02db 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 @@ -29,16 +29,5 @@ public static IEnumerable> ApiInfo_RedisManagement }.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 } } -