Skip to content

Commit 2db7acf

Browse files
koderjokerKanchan JoshiVeryEarly
authored
Azure RedisCache New Api v2024.03.01 (#25497)
* Generate new api version code * Update cmdlets * Update scenario tests * Add test recordings * Update Changelog * Update help docs * Update ChangeLog.md --------- Co-authored-by: Kanchan Joshi <[email protected]> Co-authored-by: Yabo Hu <[email protected]>
1 parent a7074a7 commit 2db7acf

29 files changed

+26316
-18309
lines changed

src/RedisCache/RedisCache.Management.Sdk/Generated/Models/RedisCommonPropertiesRedisConfiguration.cs

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ namespace Microsoft.Azure.Management.RedisCache.Models
99

1010
/// <summary>
1111
/// All Redis Settings. Few possible keys:
12-
/// 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
13-
/// etc.
12+
/// rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,
13+
/// maxmemory-policy,notify-keyspace-events, aof-backup-enabled,
14+
/// aof-storage-connection-string-0, aof-storage-connection-string-1 etc.
1415
/// </summary>
1516
public partial class RedisCommonPropertiesRedisConfiguration
1617
{
@@ -27,8 +28,9 @@ public RedisCommonPropertiesRedisConfiguration()
2728
/// </summary>
2829

2930
/// <param name="additionalProperties">All Redis Settings. Few possible keys:
30-
/// 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
31-
/// etc.
31+
/// rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,
32+
/// maxmemory-policy,notify-keyspace-events, aof-backup-enabled,
33+
/// aof-storage-connection-string-0, aof-storage-connection-string-1 etc.
3234
/// </param>
3335

3436
/// <param name="rdbBackupEnabled">Specifies whether the rdb backup is enabled
@@ -69,6 +71,9 @@ public RedisCommonPropertiesRedisConfiguration()
6971
/// <param name="maxclients">The max clients config
7072
/// </param>
7173

74+
/// <param name="notifyKeyspaceEvents">The keyspace events which should be monitored.
75+
/// </param>
76+
7277
/// <param name="preferredDataArchiveAuthMethod">Preferred auth method to communicate to storage account used for data
7378
/// archive, specify SAS or ManagedIdentity, default value is SAS
7479
/// </param>
@@ -91,7 +96,7 @@ public RedisCommonPropertiesRedisConfiguration()
9196
/// <param name="aadEnabled">Specifies whether AAD based authentication has been enabled or disabled for
9297
/// the cache
9398
/// </param>
94-
public RedisCommonPropertiesRedisConfiguration(System.Collections.Generic.IDictionary<string, object> additionalProperties = default(System.Collections.Generic.IDictionary<string, object>), string rdbBackupEnabled = default(string), string rdbBackupFrequency = default(string), string rdbBackupMaxSnapshotCount = default(string), string rdbStorageConnectionString = default(string), string aofBackupEnabled = 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), string zonalConfiguration = default(string), string authnotrequired = default(string), string storageSubscriptionId = default(string), string aadEnabled = default(string))
99+
public RedisCommonPropertiesRedisConfiguration(System.Collections.Generic.IDictionary<string, object> additionalProperties = default(System.Collections.Generic.IDictionary<string, object>), string rdbBackupEnabled = default(string), string rdbBackupFrequency = default(string), string rdbBackupMaxSnapshotCount = default(string), string rdbStorageConnectionString = default(string), string aofBackupEnabled = 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 notifyKeyspaceEvents = default(string), string preferredDataArchiveAuthMethod = default(string), string preferredDataPersistenceAuthMethod = default(string), string zonalConfiguration = default(string), string authnotrequired = default(string), string storageSubscriptionId = default(string), string aadEnabled = default(string))
95100

96101
{
97102
this.AdditionalProperties = additionalProperties;
@@ -107,6 +112,7 @@ public RedisCommonPropertiesRedisConfiguration()
107112
this.MaxmemoryReserved = maxmemoryReserved;
108113
this.MaxmemoryDelta = maxmemoryDelta;
109114
this.Maxclients = maxclients;
115+
this.NotifyKeyspaceEvents = notifyKeyspaceEvents;
110116
this.PreferredDataArchiveAuthMethod = preferredDataArchiveAuthMethod;
111117
this.PreferredDataPersistenceAuthMethod = preferredDataPersistenceAuthMethod;
112118
this.ZonalConfiguration = zonalConfiguration;
@@ -124,8 +130,9 @@ public RedisCommonPropertiesRedisConfiguration()
124130

125131
/// <summary>
126132
/// Gets or sets all Redis Settings. Few possible keys:
127-
/// 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
128-
/// etc.
133+
/// rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,
134+
/// maxmemory-policy,notify-keyspace-events, aof-backup-enabled,
135+
/// aof-storage-connection-string-0, aof-storage-connection-string-1 etc.
129136
/// </summary>
130137
[Newtonsoft.Json.JsonExtensionData]
131138
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties {get; set; }
@@ -206,6 +213,12 @@ public RedisCommonPropertiesRedisConfiguration()
206213
[Newtonsoft.Json.JsonProperty(PropertyName = "maxclients")]
207214
public string Maxclients {get; private set; }
208215

216+
/// <summary>
217+
/// Gets or sets the keyspace events which should be monitored.
218+
/// </summary>
219+
[Newtonsoft.Json.JsonProperty(PropertyName = "notify-keyspace-events")]
220+
public string NotifyKeyspaceEvents {get; set; }
221+
209222
/// <summary>
210223
/// Gets preferred auth method to communicate to storage account used for data
211224
/// archive, specify SAS or ManagedIdentity, default value is SAS

src/RedisCache/RedisCache.Management.Sdk/Generated/Models/RedisCreateParameters.cs

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@ public RedisCreateParameters()
4848
/// </param>
4949

5050
/// <param name="redisConfiguration">All Redis Settings. Few possible keys:
51-
/// 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
52-
/// etc.
51+
/// rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,
52+
/// maxmemory-policy,notify-keyspace-events, aof-backup-enabled,
53+
/// aof-storage-connection-string-0, aof-storage-connection-string-1 etc.
5354
/// </param>
5455

5556
/// <param name="redisVersion">Redis version. This should be in the form &#39;major[.minor]&#39; (only &#39;major&#39; is
@@ -83,6 +84,10 @@ public RedisCreateParameters()
8384
/// &#39;Enabled&#39;
8485
/// Possible values include: &#39;Enabled&#39;, &#39;Disabled&#39;</param>
8586

87+
/// <param name="disableAccessKeyAuthentication">Authentication to Redis through access keys is disabled when set as true.
88+
/// Default value is false.
89+
/// </param>
90+
8691
/// <param name="subnetId">The full resource ID of a subnet in a virtual network to deploy the Redis
8792
/// cache in. Example format:
8893
/// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1
@@ -91,7 +96,7 @@ public RedisCreateParameters()
9196
/// <param name="staticIP">Static IP address. Optionally, may be specified when deploying a Redis
9297
/// cache inside an existing Azure Virtual Network; auto assigned by default.
9398
/// </param>
94-
public RedisCreateParameters(string location, Sku sku, System.Collections.Generic.IList<string> zones = default(System.Collections.Generic.IList<string>), System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>), ManagedServiceIdentity identity = default(ManagedServiceIdentity), string updateChannel = default(string), RedisCommonPropertiesRedisConfiguration redisConfiguration = default(RedisCommonPropertiesRedisConfiguration), string redisVersion = default(string), bool? enableNonSslPort = default(bool?), int? replicasPerMaster = default(int?), int? replicasPerPrimary = default(int?), System.Collections.Generic.IDictionary<string, string> tenantSettings = default(System.Collections.Generic.IDictionary<string, string>), int? shardCount = default(int?), string minimumTlsVersion = default(string), string publicNetworkAccess = default(string), string subnetId = default(string), string staticIP = default(string))
99+
public RedisCreateParameters(string location, Sku sku, System.Collections.Generic.IList<string> zones = default(System.Collections.Generic.IList<string>), System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>), ManagedServiceIdentity identity = default(ManagedServiceIdentity), string updateChannel = default(string), RedisCommonPropertiesRedisConfiguration redisConfiguration = default(RedisCommonPropertiesRedisConfiguration), string redisVersion = default(string), bool? enableNonSslPort = default(bool?), int? replicasPerMaster = default(int?), int? replicasPerPrimary = default(int?), System.Collections.Generic.IDictionary<string, string> tenantSettings = default(System.Collections.Generic.IDictionary<string, string>), int? shardCount = default(int?), string minimumTlsVersion = default(string), string publicNetworkAccess = default(string), bool? disableAccessKeyAuthentication = default(bool?), string subnetId = default(string), string staticIP = default(string))
95100

96101
{
97102
this.Zones = zones;
@@ -109,6 +114,7 @@ public RedisCreateParameters()
109114
this.ShardCount = shardCount;
110115
this.MinimumTlsVersion = minimumTlsVersion;
111116
this.PublicNetworkAccess = publicNetworkAccess;
117+
this.DisableAccessKeyAuthentication = disableAccessKeyAuthentication;
112118
this.SubnetId = subnetId;
113119
this.StaticIP = staticIP;
114120
CustomInit();
@@ -162,8 +168,9 @@ public RedisCreateParameters()
162168

163169
/// <summary>
164170
/// Gets or sets all Redis Settings. Few possible keys:
165-
/// 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
166-
/// etc.
171+
/// rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,
172+
/// maxmemory-policy,notify-keyspace-events, aof-backup-enabled,
173+
/// aof-storage-connection-string-0, aof-storage-connection-string-1 etc.
167174
/// </summary>
168175
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.redisConfiguration")]
169176
public RedisCommonPropertiesRedisConfiguration RedisConfiguration {get; set; }
@@ -224,6 +231,13 @@ public RedisCreateParameters()
224231
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.publicNetworkAccess")]
225232
public string PublicNetworkAccess {get; set; }
226233

234+
/// <summary>
235+
/// Gets or sets authentication to Redis through access keys is disabled when
236+
/// set as true. Default value is false.
237+
/// </summary>
238+
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.disableAccessKeyAuthentication")]
239+
public bool? DisableAccessKeyAuthentication {get; set; }
240+
227241
/// <summary>
228242
/// Gets or sets the full resource ID of a subnet in a virtual network to
229243
/// deploy the Redis cache in. Example format:

src/RedisCache/RedisCache.Management.Sdk/Generated/Models/RedisResource.cs

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ public RedisResource()
6464
/// &#39;Succeeded&#39;, &#39;Unlinking&#39;, &#39;Unprovisioning&#39;, &#39;Updating&#39;, &#39;ConfiguringAAD&#39;</param>
6565

6666
/// <param name="redisConfiguration">All Redis Settings. Few possible keys:
67-
/// 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
68-
/// etc.
67+
/// rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,
68+
/// maxmemory-policy,notify-keyspace-events, aof-backup-enabled,
69+
/// aof-storage-connection-string-0, aof-storage-connection-string-1 etc.
6970
/// </param>
7071

7172
/// <param name="redisVersion">Redis version. This should be in the form &#39;major[.minor]&#39; (only &#39;major&#39; is
@@ -99,6 +100,10 @@ public RedisResource()
99100
/// &#39;Enabled&#39;
100101
/// Possible values include: &#39;Enabled&#39;, &#39;Disabled&#39;</param>
101102

103+
/// <param name="disableAccessKeyAuthentication">Authentication to Redis through access keys is disabled when set as true.
104+
/// Default value is false.
105+
/// </param>
106+
102107
/// <param name="subnetId">The full resource ID of a subnet in a virtual network to deploy the Redis
103108
/// cache in. Example format:
104109
/// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1
@@ -130,7 +135,7 @@ public RedisResource()
130135
/// <param name="privateEndpointConnections">List of private endpoint connection associated with the specified redis
131136
/// cache
132137
/// </param>
133-
public RedisResource(string location, Sku sku, string id = default(string), string name = default(string), string type = default(string), System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>), System.Collections.Generic.IList<string> zones = default(System.Collections.Generic.IList<string>), ManagedServiceIdentity identity = default(ManagedServiceIdentity), string updateChannel = default(string), string provisioningState = default(string), RedisCommonPropertiesRedisConfiguration redisConfiguration = default(RedisCommonPropertiesRedisConfiguration), string redisVersion = default(string), bool? enableNonSslPort = default(bool?), int? replicasPerMaster = default(int?), int? replicasPerPrimary = default(int?), System.Collections.Generic.IDictionary<string, string> tenantSettings = default(System.Collections.Generic.IDictionary<string, string>), int? shardCount = default(int?), string minimumTlsVersion = default(string), string publicNetworkAccess = default(string), string subnetId = default(string), string staticIP = default(string), string hostName = default(string), int? port = default(int?), int? sslPort = default(int?), RedisAccessKeys accessKeys = default(RedisAccessKeys), System.Collections.Generic.IList<RedisLinkedServer> linkedServers = default(System.Collections.Generic.IList<RedisLinkedServer>), System.Collections.Generic.IList<RedisInstanceDetails> instances = default(System.Collections.Generic.IList<RedisInstanceDetails>), System.Collections.Generic.IList<PrivateEndpointConnection> privateEndpointConnections = default(System.Collections.Generic.IList<PrivateEndpointConnection>))
138+
public RedisResource(string location, Sku sku, string id = default(string), string name = default(string), string type = default(string), System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>), System.Collections.Generic.IList<string> zones = default(System.Collections.Generic.IList<string>), ManagedServiceIdentity identity = default(ManagedServiceIdentity), string updateChannel = default(string), string provisioningState = default(string), RedisCommonPropertiesRedisConfiguration redisConfiguration = default(RedisCommonPropertiesRedisConfiguration), string redisVersion = default(string), bool? enableNonSslPort = default(bool?), int? replicasPerMaster = default(int?), int? replicasPerPrimary = default(int?), System.Collections.Generic.IDictionary<string, string> tenantSettings = default(System.Collections.Generic.IDictionary<string, string>), int? shardCount = default(int?), string minimumTlsVersion = default(string), string publicNetworkAccess = default(string), bool? disableAccessKeyAuthentication = default(bool?), string subnetId = default(string), string staticIP = default(string), string hostName = default(string), int? port = default(int?), int? sslPort = default(int?), RedisAccessKeys accessKeys = default(RedisAccessKeys), System.Collections.Generic.IList<RedisLinkedServer> linkedServers = default(System.Collections.Generic.IList<RedisLinkedServer>), System.Collections.Generic.IList<RedisInstanceDetails> instances = default(System.Collections.Generic.IList<RedisInstanceDetails>), System.Collections.Generic.IList<PrivateEndpointConnection> privateEndpointConnections = default(System.Collections.Generic.IList<PrivateEndpointConnection>))
134139

135140
: base(location, id, name, type, tags)
136141
{
@@ -148,6 +153,7 @@ public RedisResource()
148153
this.ShardCount = shardCount;
149154
this.MinimumTlsVersion = minimumTlsVersion;
150155
this.PublicNetworkAccess = publicNetworkAccess;
156+
this.DisableAccessKeyAuthentication = disableAccessKeyAuthentication;
151157
this.SubnetId = subnetId;
152158
this.StaticIP = staticIP;
153159
this.HostName = hostName;
@@ -202,8 +208,9 @@ public RedisResource()
202208

203209
/// <summary>
204210
/// Gets or sets all Redis Settings. Few possible keys:
205-
/// 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
206-
/// etc.
211+
/// rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,
212+
/// maxmemory-policy,notify-keyspace-events, aof-backup-enabled,
213+
/// aof-storage-connection-string-0, aof-storage-connection-string-1 etc.
207214
/// </summary>
208215
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.redisConfiguration")]
209216
public RedisCommonPropertiesRedisConfiguration RedisConfiguration {get; set; }
@@ -264,6 +271,13 @@ public RedisResource()
264271
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.publicNetworkAccess")]
265272
public string PublicNetworkAccess {get; set; }
266273

274+
/// <summary>
275+
/// Gets or sets authentication to Redis through access keys is disabled when
276+
/// set as true. Default value is false.
277+
/// </summary>
278+
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.disableAccessKeyAuthentication")]
279+
public bool? DisableAccessKeyAuthentication {get; set; }
280+
267281
/// <summary>
268282
/// Gets or sets the full resource ID of a subnet in a virtual network to
269283
/// deploy the Redis cache in. Example format:

0 commit comments

Comments
 (0)