Skip to content

Commit aa8e500

Browse files
nikitagarg123Nikita Garg
andauthored
Release for MicrosoftCache.RedisEnterprise - 2025-05-01 PREVIEW (#27602)
Co-authored-by: Nikita Garg <[email protected]>
1 parent 870a9e1 commit aa8e500

File tree

69 files changed

+1928
-4047
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+1928
-4047
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0 (the ""License"");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an ""AS IS"" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
12+
// is regenerated.
13+
14+
using System;
15+
using System.Reflection;
16+
using System.Runtime.CompilerServices;
17+
using System.Runtime.InteropServices;
18+
19+
[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
20+
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
21+
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
22+
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - RedisEnterpriseCache")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.4.1")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("1.4.1")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]

src/RedisEnterpriseCache/RedisEnterpriseCache.Autorest/README.md

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ In this directory, run AutoRest:
3232
> see https://aka.ms/autorest
3333
3434
``` yaml
35-
commit: 40923289b489ac3f2a96d274ca5fbf0e4457e5d4
35+
commit: f11631f1c1057d8363f9e3f9597c73b90f8924c8
3636
require:
3737
- $(this-folder)/../../readme.azure.noprofile.md
3838
# lock the commit
3939
input-file:
40-
- $(repo)/specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/redisenterprise.json
40+
- $(repo)/specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2025-05-01-preview/redisenterprise.json
4141

4242
module-version: 1.0.0
4343
title: RedisEnterpriseCache
@@ -125,12 +125,34 @@ directive:
125125
subject: Database
126126
set:
127127
hide: true
128+
- where:
129+
verb: Invoke
130+
subject: ForceDatabaseLinkToReplicationGroup
131+
parameter-name: GeoReplicationLinkedDatabase
132+
set:
133+
parameter-name: LinkedDatabase
134+
- where:
135+
verb: Invoke
136+
subject: ForceDatabaseLinkToReplicationGroup
137+
parameter-name: GeoReplicationGroupNickname
138+
set:
139+
parameter-name: GroupNickname
128140
- where:
129141
verb: New
130142
subject: Database
131143
parameter-name: GeoReplicationGroupNickname
132144
set:
133145
parameter-name: GroupNickname
146+
- where:
147+
model-name: ForceLinkParameters
148+
property-name: GeoReplicationLinkedDatabase
149+
set:
150+
property-name: LinkedDatabase
151+
- where:
152+
model-name: ForceLinkParameters
153+
property-name: GeoReplicationGroupNickname
154+
set:
155+
property-name: GroupNickname
134156
- where:
135157
parameter-name: SkuCapacity
136158
set:
@@ -213,10 +235,6 @@ directive:
213235
- where:
214236
subject: PrivateEndpointConnection|PrivateLinkResource
215237
hide: true
216-
- where:
217-
verb: Get
218-
subject: Sku
219-
hide: true
220238

221239
# DatabaseName parameter to have value 'default'
222240
- where:
@@ -233,6 +251,9 @@ directive:
233251
- from: swagger-document
234252
where: $.definitions.AccessPolicyAssignmentProperties.properties.user
235253
transform: $['required'] = ['objectId']
254+
- from: swagger-document
255+
where: $.definitions.ForceLinkParameters.properties.geoReplication
256+
transform: $['required'] = ['linkedDatabases','groupNickname']
236257

237258
# DatabaseName parameter to have value 'default'
238259
- where:

src/RedisEnterpriseCache/RedisEnterpriseCache.Autorest/custom/Cluster.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License. See License.txt in the project root for license information.
33

4-
namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20240901Preview
4+
namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250501Preview
55
{
66
public partial class Cluster
77
{

src/RedisEnterpriseCache/RedisEnterpriseCache.Autorest/custom/Get-AzRedisEnterpriseCache.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ West US MyCache3 Microsoft.Cache/redisEnterprise {default}
4444
Central US MyCache4 Microsoft.Cache/redisEnterprise {1, 2, 3} {default}
4545
4646
.Outputs
47-
Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20240901Preview.ICluster
47+
Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250501Preview.ICluster
4848
.Link
4949
https://learn.microsoft.com/powershell/module/az.redisenterprisecache/get-azredisenterprisecache
5050
#>
5151

5252
function Get-AzRedisEnterpriseCache {
53-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20240901Preview.ICluster])]
53+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250501Preview.ICluster])]
5454
[CmdletBinding(DefaultParameterSetName='ListBySubscriptionId', PositionalBinding=$false)]
5555
param(
5656
[Parameter(ParameterSetName='Get', Mandatory)]

src/RedisEnterpriseCache/RedisEnterpriseCache.Autorest/custom/Get-AzRedisEnterpriseCacheDatabase.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ Name Type
2626
default Microsoft.Cache/redisEnterprise/databases
2727
2828
.Outputs
29-
Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20240901Preview.IDatabase
29+
Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250501Preview.IDatabase
3030
.Link
3131
https://learn.microsoft.com/powershell/module/az.redisenterprisecache/get-azredisenterprisecachedatabase
3232
#>
3333
function Get-AzRedisEnterpriseCacheDatabase {
34-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20240901Preview.IDatabase])]
34+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250501Preview.IDatabase])]
3535
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
3636
param(
3737
[Parameter(Mandatory)]

src/RedisEnterpriseCache/RedisEnterpriseCache.Autorest/custom/Get-AzRedisEnterpriseCacheKey.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ PrimaryKey SecondaryKey
2626
primary-key secondary-key
2727
2828
.Outputs
29-
Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20240901Preview.IAccessKeys
29+
Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250501Preview.IAccessKeys
3030
.Link
3131
https://learn.microsoft.com/powershell/module/az.redisenterprisecache/get-azredisenterprisecachekey
3232
#>
3333
function Get-AzRedisEnterpriseCacheKey {
3434
[Alias('Get-AzRedisEnterpriseCacheDatabaseKey', 'Get-AzRedisEnterpriseCacheAccessKey')]
35-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20240901Preview.IAccessKeys])]
35+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250501Preview.IAccessKeys])]
3636
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
3737
param(
3838
[Parameter(Mandatory)]

src/RedisEnterpriseCache/RedisEnterpriseCache.Autorest/custom/New-AzRedisEnterpriseCache.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Location Name Type Zone Database
4040
East US MyCache Microsoft.Cache/redisEnterprise {}
4141
4242
.Outputs
43-
Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20240901Preview.ICluster
43+
Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250501Preview.ICluster
4444
.Notes
4545
COMPLEX PARAMETER PROPERTIES
4646
@@ -54,7 +54,7 @@ MODULE <IModule[]>: Optional set of redis modules to enable in this database - m
5454
https://learn.microsoft.com/powershell/module/az.redisenterprisecache/new-azredisenterprisecache
5555
#>
5656
function New-AzRedisEnterpriseCache {
57-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20240901Preview.ICluster])]
57+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250501Preview.ICluster])]
5858
[CmdletBinding(DefaultParameterSetName='CreateClusterWithDatabase', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
5959
param(
6060
[Parameter(Mandatory)]
@@ -118,7 +118,7 @@ function New-AzRedisEnterpriseCache {
118118

119119
[Parameter(ParameterSetName='CreateClusterWithDatabase')]
120120
[Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')]
121-
[Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20240901Preview.IModule[]]
121+
[Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250501Preview.IModule[]]
122122
# Optional set of redis modules to enable in this database - modules can only be added at create time.
123123
# To construct, see NOTES section for MODULE properties and create a hash table.
124124
${Module},
@@ -155,7 +155,7 @@ function New-AzRedisEnterpriseCache {
155155
[Parameter(ParameterSetName='CreateClusterWithDatabase')]
156156
[AllowEmptyCollection()]
157157
[Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')]
158-
[Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20240901Preview.ILinkedDatabase[]]
158+
[Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250501Preview.ILinkedDatabase[]]
159159
# List of database resources to link with this database
160160
# To construct, see NOTES section for GEOREPLICATIONLINKEDDATABASE properties and create a hash table.
161161
${LinkedDatabase},

src/RedisEnterpriseCache/RedisEnterpriseCache.Autorest/custom/New-AzRedisEnterpriseCacheDatabase.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ default Microsoft.Cache/redisEnterprise/databases
3636
PS C:\> New-AzRedisEnterpriseCacheDatabase -Name "MyCache2" -ResourceGroupName "MyGroup" -ClientProtocol "Encrypted" -EvictionPolicy "NoEviction" -ClusteringPolicy "EnterpriseCluster" -GroupNickname "GroupNickname" -LinkedDatabase '{id:"/subscriptions/6b9ac7d2-7f6d-4de4-962c-43fda44bc3f2/resourceGroups/MyGroup/providers/Microsoft.Cache/redisEnterprise/MyCache/databases/default"}','{id:"/subscriptions/sub1/resourceGroups/MyGroup/providers/Microsoft.Cache/redisEnterprise/MyCache2/databases/default"}'
3737
3838
.Outputs
39-
Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20240901Preview.IDatabase
39+
Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250501Preview.IDatabase
4040
.Notes
4141
COMPLEX PARAMETER PROPERTIES
4242
@@ -53,7 +53,7 @@ MODULE <IModule[]>: Optional set of redis modules to enable in this database - m
5353
https://learn.microsoft.com/powershell/module/az.redisenterprisecache/new-azredisenterprisecachedatabase
5454
#>
5555
function New-AzRedisEnterpriseCacheDatabase {
56-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20240901Preview.IDatabase])]
56+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250501Preview.IDatabase])]
5757
[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
5858
param(
5959
[Parameter(Mandatory)]
@@ -72,7 +72,7 @@ function New-AzRedisEnterpriseCacheDatabase {
7272

7373
[Parameter()]
7474
[Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')]
75-
[Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20240901Preview.IModule[]]
75+
[Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250501Preview.IModule[]]
7676
# Optional set of redis modules to enable in this database - modules can only be added at create time.
7777
# To construct, see NOTES section for MODULE properties and create a hash table.
7878
${Module},
@@ -109,7 +109,7 @@ function New-AzRedisEnterpriseCacheDatabase {
109109
[Parameter()]
110110
[AllowEmptyCollection()]
111111
[Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')]
112-
[Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20240901Preview.ILinkedDatabase[]]
112+
[Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250501Preview.ILinkedDatabase[]]
113113
# List of database resources to link with this database
114114
# To construct, see NOTES section for GEOREPLICATIONLINKEDDATABASE properties and create a hash table.
115115
${LinkedDatabase},

src/RedisEnterpriseCache/RedisEnterpriseCache.Autorest/custom/New-AzRedisEnterpriseCacheKey.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ PrimaryKey SecondaryKey
3333
primary-key new-secondary-key
3434
3535
.Outputs
36-
Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20240901Preview.IAccessKeys
36+
Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250501Preview.IAccessKeys
3737
.Link
3838
https://learn.microsoft.com/powershell/module/az.redisenterprisecache/new-azredisenterprisecachekey
3939
#>
4040
function New-AzRedisEnterpriseCacheKey {
4141
[Alias('New-AzRedisEnterpriseCacheDatabaseKey', 'New-AzRedisEnterpriseCacheAccessKey')]
42-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20240901Preview.IAccessKeys])]
42+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250501Preview.IAccessKeys])]
4343
[CmdletBinding(DefaultParameterSetName='RegenerateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
4444
param(
4545
[Parameter(Mandatory)]

src/RedisEnterpriseCache/RedisEnterpriseCache.Autorest/custom/Update-AzRedisEnterpriseCacheDatabase.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ default Microsoft.Cache/redisEnterprise/databases
3535
.Inputs
3636
Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.IRedisEnterpriseCacheIdentity
3737
.Outputs
38-
Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20240901Preview.IDatabase
38+
Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250501Preview.IDatabase
3939
.Notes
4040
COMPLEX PARAMETER PROPERTIES
4141
@@ -59,7 +59,7 @@ MODULE <IModule[]>: Optional set of redis modules to enable in this database - m
5959
https://learn.microsoft.com/powershell/module/az.redisenterprisecache/update-azredisenterprisecachedatabase
6060
#>
6161
function Update-AzRedisEnterpriseCacheDatabase {
62-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20240901Preview.IDatabase])]
62+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250501Preview.IDatabase])]
6363
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
6464
param(
6565
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]

0 commit comments

Comments
 (0)