Skip to content

Commit 51d7106

Browse files
nikitagarg123Nikita Garg
andauthored
redisenterprise release new api version 2025-07-01 (#28675)
Co-authored-by: Nikita Garg <[email protected]>
1 parent 5ceb248 commit 51d7106

File tree

60 files changed

+3447
-1693
lines changed

Some content is hidden

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

60 files changed

+3447
-1693
lines changed

src/RedisEnterpriseCache/RedisEnterpriseCache.Autorest/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
2121
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
2222
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - RedisEnterpriseCache")]
23-
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.4.1")]
24-
[assembly: System.Reflection.AssemblyVersionAttribute("1.4.1")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.5.0")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("1.5.0")]
2525
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
2626
[assembly: System.CLSCompliantAttribute(false)]

src/RedisEnterpriseCache/RedisEnterpriseCache.Autorest/README.md

Lines changed: 2 additions & 2 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: f11631f1c1057d8363f9e3f9597c73b90f8924c8
35+
commit: a39b73b1c7d12a633805a3b2ed3177a8bfddd9e2
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/2025-05-01-preview/redisenterprise.json
40+
- $(repo)/specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/redisenterprise.json
4141

4242
module-version: 1.0.0
4343
title: RedisEnterpriseCache

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.Api20250501Preview
4+
namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250701
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.Api20250501Preview.ICluster
47+
Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250701.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.Api20250501Preview.ICluster])]
53+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250701.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.Api20250501Preview.IDatabase
29+
Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250701.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.Api20250501Preview.IDatabase])]
34+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250701.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.Api20250501Preview.IAccessKeys
29+
Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250701.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.Api20250501Preview.IAccessKeys])]
35+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250701.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: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# ----------------------------------------------------------------------------------
32
#
43
# Copyright Microsoft Corporation
@@ -40,7 +39,7 @@ Location Name Type Zone Database
4039
East US MyCache Microsoft.Cache/redisEnterprise {}
4140
4241
.Outputs
43-
Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250501Preview.ICluster
42+
Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250701.ICluster
4443
.Notes
4544
COMPLEX PARAMETER PROPERTIES
4645
@@ -54,7 +53,7 @@ MODULE <IModule[]>: Optional set of redis modules to enable in this database - m
5453
https://learn.microsoft.com/powershell/module/az.redisenterprisecache/new-azredisenterprisecache
5554
#>
5655
function New-AzRedisEnterpriseCache {
57-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250501Preview.ICluster])]
56+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250701.ICluster])]
5857
[CmdletBinding(DefaultParameterSetName='CreateClusterWithDatabase', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
5958
param(
6059
[Parameter(Mandatory)]
@@ -118,7 +117,7 @@ function New-AzRedisEnterpriseCache {
118117

119118
[Parameter(ParameterSetName='CreateClusterWithDatabase')]
120119
[Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')]
121-
[Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250501Preview.IModule[]]
120+
[Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250701.IModule[]]
122121
# Optional set of redis modules to enable in this database - modules can only be added at create time.
123122
# To construct, see NOTES section for MODULE properties and create a hash table.
124123
${Module},
@@ -155,7 +154,7 @@ function New-AzRedisEnterpriseCache {
155154
[Parameter(ParameterSetName='CreateClusterWithDatabase')]
156155
[AllowEmptyCollection()]
157156
[Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')]
158-
[Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250501Preview.ILinkedDatabase[]]
157+
[Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250701.ILinkedDatabase[]]
159158
# List of database resources to link with this database
160159
# To construct, see NOTES section for GEOREPLICATIONLINKEDDATABASE properties and create a hash table.
161160
${LinkedDatabase},
@@ -192,6 +191,14 @@ function New-AzRedisEnterpriseCache {
192191
# This affects the availability SLA, and increases the risk of data loss.
193192
${HighAvailability},
194193

194+
[Parameter()]
195+
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.PublicNetworkAccess])]
196+
[Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')]
197+
[Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.PublicNetworkAccess]
198+
# Whether or not public network traffic can access the Redis cluster.
199+
# Only 'Enabled' or 'Disabled' can be set.
200+
${PublicNetworkAccess},
201+
195202
[Parameter()]
196203
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ManagedServiceIdentityType])]
197204
[Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')]
@@ -361,6 +368,7 @@ function New-AzRedisEnterpriseCache {
361368
$null = $PSBoundParameters.Remove("KeyEncryptionKeyIdentityType")
362369
$null = $PSBoundParameters.Remove("KeyEncryptionKeyIdentityUserAssignedIdentityResourceId")
363370
$null = $PSBoundParameters.Remove("HighAvailability")
371+
$null = $PSBoundParameters.Remove("PublicNetworkAccess") # Remove for database creation
364372
$null = $PSBoundParameters.Add("DatabaseName", "default")
365373
$database = Az.RedisEnterpriseCache.internal\New-AzRedisEnterpriseCacheDatabase @PSBoundParameters
366374
$cluster.Database = @{$database.Name = $database}

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.Api20250501Preview.IDatabase
39+
Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250701.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.Api20250501Preview.IDatabase])]
56+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250701.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.Api20250501Preview.IModule[]]
75+
[Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250701.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.Api20250501Preview.ILinkedDatabase[]]
112+
[Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250701.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.Api20250501Preview.IAccessKeys
36+
Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250701.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.Api20250501Preview.IAccessKeys])]
42+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250701.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.Api20250501Preview.IDatabase
38+
Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250701.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.Api20250501Preview.IDatabase])]
62+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20250701.IDatabase])]
6363
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
6464
param(
6565
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]

0 commit comments

Comments
 (0)