diff --git a/src/RedisEnterpriseCache/Az.RedisEnterpriseCache.format.ps1xml b/src/RedisEnterpriseCache/Az.RedisEnterpriseCache.format.ps1xml index 75bbda8dfd56..b5a3577a28fa 100644 --- a/src/RedisEnterpriseCache/Az.RedisEnterpriseCache.format.ps1xml +++ b/src/RedisEnterpriseCache/Az.RedisEnterpriseCache.format.ps1xml @@ -245,34 +245,6 @@ - - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ResourceAutoGenerated - - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ResourceAutoGenerated - - - - - - - - - - - - - - - Name - - - Type - - - - - - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.TrackedResource @@ -504,9 +476,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.Cluster + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.Cluster - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.Cluster + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.Cluster @@ -550,9 +522,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.AccessKeys + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.AccessKeys - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.AccessKeys + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.AccessKeys @@ -578,9 +550,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ClusterList + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ClusterList - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ClusterList + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ClusterList @@ -600,9 +572,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ClusterProperties + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ClusterProperties - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ClusterProperties + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ClusterProperties @@ -646,9 +618,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ClusterUpdateTags + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ClusterUpdateTags - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ClusterUpdateTags + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ClusterUpdateTags @@ -668,9 +640,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.Database + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.Database - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.Database + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.Database @@ -696,9 +668,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.DatabaseList + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.DatabaseList - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.DatabaseList + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.DatabaseList @@ -718,9 +690,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.DatabaseProperties + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.DatabaseProperties - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.DatabaseProperties + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.DatabaseProperties @@ -770,9 +742,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ExportClusterParameters + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ExportClusterParameters - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ExportClusterParameters + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ExportClusterParameters @@ -792,9 +764,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ImportClusterParameters + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ImportClusterParameters - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ImportClusterParameters + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ImportClusterParameters @@ -814,9 +786,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.Module + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.Module - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.Module + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.Module @@ -848,9 +820,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.OperationStatus + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.OperationStatus - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.OperationStatus + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.OperationStatus @@ -888,9 +860,49 @@ - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.RegenerateKeyParameters + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.Persistence + + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.Persistence + + + + + + + + + + + + + + + + + + + + + AofEnabled + + + AofFrequency + + + RdbEnabled + + + RdbFrequency + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.RegenerateKeyParameters - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.RegenerateKeyParameters + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.RegenerateKeyParameters @@ -910,9 +922,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.Sku + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.Sku - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.Sku + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.Sku diff --git a/src/RedisEnterpriseCache/Az.RedisEnterpriseCache.psd1 b/src/RedisEnterpriseCache/Az.RedisEnterpriseCache.psd1 index 4381d2225b71..35dc0681b421 100644 --- a/src/RedisEnterpriseCache/Az.RedisEnterpriseCache.psd1 +++ b/src/RedisEnterpriseCache/Az.RedisEnterpriseCache.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 12/14/2020 +# Generated on: 2021-03-11 # @{ @@ -12,7 +12,7 @@ RootModule = './Az.RedisEnterpriseCache.psm1' # Version number of this module. -ModuleVersion = '0.1.0' +ModuleVersion = '1.0.0' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' @@ -45,7 +45,7 @@ PowerShellVersion = '5.1' DotNetFrameworkVersion = '4.7.2' # Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. -# CLRVersion = '' +# ClrVersion = '' # Processor architecture (None, X86, Amd64) required by this module # ProcessorArchitecture = '' @@ -69,14 +69,15 @@ FormatsToProcess = './Az.RedisEnterpriseCache.format.ps1xml' # NestedModules = @() # Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. -FunctionsToExport = 'Export-AzRedisEnterpriseCacheDatabase', - 'Get-AzRedisEnterpriseCache', 'Get-AzRedisEnterpriseCacheDatabase', - 'Get-AzRedisEnterpriseCacheDatabaseKey', +FunctionsToExport = 'Export-AzRedisEnterpriseCache', 'Get-AzRedisEnterpriseCache', + 'Get-AzRedisEnterpriseCacheDatabase', + 'Get-AzRedisEnterpriseCacheKey', 'Get-AzRedisEnterpriseCacheOperationStatus', - 'Import-AzRedisEnterpriseCacheDatabase', - 'New-AzRedisEnterpriseCache', - 'New-AzRedisEnterpriseCacheDatabaseKey', - 'Remove-AzRedisEnterpriseCache', 'Update-AzRedisEnterpriseCache', + 'Import-AzRedisEnterpriseCache', 'New-AzRedisEnterpriseCache', + 'New-AzRedisEnterpriseCacheDatabase', + 'New-AzRedisEnterpriseCacheKey', 'Remove-AzRedisEnterpriseCache', + 'Remove-AzRedisEnterpriseCacheDatabase', + 'Update-AzRedisEnterpriseCache', 'Update-AzRedisEnterpriseCacheDatabase' # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. @@ -86,7 +87,12 @@ CmdletsToExport = @() # VariablesToExport = @() # Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. -AliasesToExport = '*' +AliasesToExport = 'Export-AzRedisEnterpriseCacheDatabase', + 'Get-AzRedisEnterpriseCacheDatabaseKey', + 'Get-AzRedisEnterpriseCacheAccessKey', + 'Import-AzRedisEnterpriseCacheDatabase', + 'New-AzRedisEnterpriseCacheDatabaseKey', + 'New-AzRedisEnterpriseCacheAccessKey', '*' # DSC resources to export from this module # DscResourcesToExport = @() diff --git a/src/RedisEnterpriseCache/Az.RedisEnterpriseCache.psm1 b/src/RedisEnterpriseCache/Az.RedisEnterpriseCache.psm1 index 42d0f4543cb3..95b9b53cbeea 100644 --- a/src/RedisEnterpriseCache/Az.RedisEnterpriseCache.psm1 +++ b/src/RedisEnterpriseCache/Az.RedisEnterpriseCache.psm1 @@ -24,17 +24,17 @@ } } if(-not $accountsModule) { - $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'1.8.1' } | Measure-Object).Count -gt 0 + $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'2.2.3' } | Measure-Object).Count -gt 0 if($hasAdequateVersion) { - $accountsModule = Import-Module -Name $accountsName -MinimumVersion 1.8.1 -Scope Global -PassThru + $accountsModule = Import-Module -Name $accountsName -MinimumVersion 2.2.3 -Scope Global -PassThru } } } if(-not $accountsModule) { - Write-Error "`nThis module requires $accountsName version 1.8.1 or greater. For installation instructions, please see: https://docs.microsoft.com/en-us/powershell/azure/install-az-ps" -ErrorAction Stop - } elseif (($accountsModule.Version -lt [System.Version]'1.8.1') -and (-not $localAccounts)) { - Write-Error "`nThis module requires $accountsName version 1.8.1 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to remove '.PSSharedModules' in your home directory. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop + Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. For installation instructions, please see: https://docs.microsoft.com/en-us/powershell/azure/install-az-ps" -ErrorAction Stop + } elseif (($accountsModule.Version -lt [System.Version]'2.2.3') -and (-not $localAccounts)) { + Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to remove '.PSSharedModules' in your home directory. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop } Write-Information "Loaded Module '$($accountsModule.Name)'" diff --git a/src/RedisEnterpriseCache/Changelog.md b/src/RedisEnterpriseCache/Changelog.md index 68aff8898018..a522e4803563 100644 --- a/src/RedisEnterpriseCache/Changelog.md +++ b/src/RedisEnterpriseCache/Changelog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* GA version of Az.RedisEnterpriseCache ## Version 0.1.0 * First preview release for module Az.RedisEnterpriseCache diff --git a/src/RedisEnterpriseCache/build-module.ps1 b/src/RedisEnterpriseCache/build-module.ps1 index cf80120211fa..91b29f958b0b 100644 --- a/src/RedisEnterpriseCache/build-module.ps1 +++ b/src/RedisEnterpriseCache/build-module.ps1 @@ -122,7 +122,7 @@ $null = New-Item -ItemType Directory -Force -Path $examplesFolder if($NoDocs) { Write-Host -ForegroundColor Green 'Creating exports...' - Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ExcludeDocs + Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ExcludeDocs -ExamplesFolder $examplesFolder } else { Write-Host -ForegroundColor Green 'Creating exports and docs...' $moduleDescription = 'Microsoft Azure PowerShell: RedisEnterpriseCache cmdlets' diff --git a/src/RedisEnterpriseCache/check-dependencies.ps1 b/src/RedisEnterpriseCache/check-dependencies.ps1 index 513c52ca2fb5..7ada900d8f0e 100644 --- a/src/RedisEnterpriseCache/check-dependencies.ps1 +++ b/src/RedisEnterpriseCache/check-dependencies.ps1 @@ -46,7 +46,7 @@ if(Test-Path -Path $localModulesPath) { $env:PSModulePath = "$localModulesPath$([IO.Path]::PathSeparator)$env:PSModulePath" } -DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '1.8.1' +DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '2.2.3' DownloadModule -predicate ($all -or $Pester) -path $localModulesPath -moduleName 'Pester' -requiredVersion '4.10.1' $tools = Join-Path $PSScriptRoot 'tools' @@ -56,7 +56,7 @@ $resourceModule = Join-Path $HOME '.PSSharedModules\Resources\Az.Resources.TestS if ($Resources.IsPresent -and (-not (Test-Path -Path $resourceModule))) { Write-Host -ForegroundColor Green "Building local Resource module used for test..." Set-Location $resourceDir - $null = autorest-beta .\readme.md --output-folder=$HOME/.PSSharedModules/Resources + $null = autorest .\readme.md --use:@autorest/powershell@3.0.414 --output-folder=$HOME/.PSSharedModules/Resources $null = Copy-Item custom/* $HOME/.PSSharedModules/Resources/custom/ Set-Location $HOME/.PSSharedModules/Resources $null = .\build-module.ps1 diff --git a/src/RedisEnterpriseCache/custom/Cluster.cs b/src/RedisEnterpriseCache/custom/Cluster.cs index b19fabdafb84..559bb94bba6a 100644 --- a/src/RedisEnterpriseCache/custom/Cluster.cs +++ b/src/RedisEnterpriseCache/custom/Cluster.cs @@ -1,4 +1,7 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { public partial class Cluster { diff --git a/src/RedisEnterpriseCache/custom/Export-AzRedisEnterpriseCacheDatabase.ps1 b/src/RedisEnterpriseCache/custom/Export-AzRedisEnterpriseCache.ps1 similarity index 74% rename from src/RedisEnterpriseCache/custom/Export-AzRedisEnterpriseCacheDatabase.ps1 rename to src/RedisEnterpriseCache/custom/Export-AzRedisEnterpriseCache.ps1 index e3447ffb1003..7c2ddd38f579 100644 --- a/src/RedisEnterpriseCache/custom/Export-AzRedisEnterpriseCacheDatabase.ps1 +++ b/src/RedisEnterpriseCache/custom/Export-AzRedisEnterpriseCache.ps1 @@ -1,18 +1,33 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + <# .Synopsis Exports a database file from target database. .Description Exports a database file from target database. .Example -[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Invalid SAS token")] -PS C:\> Export-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -SasUri "https://mystorageaccount.blob.core.windows.net/mycontainer?sp=rwdl&se=2020-09-02T11:17:15Z&sv=2019-12-12&sr=c&sig=Us%2FGshOUTKCSzTOi8dLtt1to2L32rcDr3Nn0WFFMdDM%3D;mystoragekey" +PS C:\> Export-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -SasUri "https://mystorageaccount.blob.core.windows.net/mycontainer?sp=signedPermissions&se=signedExpiry&sv=signedVersion&sr=signedResource&sig=signature;mystoragekey" .Outputs System.Boolean .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/export-azredisenterprisecachedatabase +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/export-azredisenterprisecache #> -function Export-AzRedisEnterpriseCacheDatabase { +function Export-AzRedisEnterpriseCache { + [Alias('Export-AzRedisEnterpriseCacheDatabase')] [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='ExportExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( @@ -20,27 +35,27 @@ function Export-AzRedisEnterpriseCacheDatabase { [Alias('Name')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] - # The name of the RedisEnterprise cluster. + # The name of the Redis Enterprise cluster. ${ClusterName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [System.String] - # SAS Uri for the target directory to export to + # SAS URI for the target directory to export to ${SasUri}, [Parameter()] @@ -111,6 +126,6 @@ function Export-AzRedisEnterpriseCacheDatabase { process { $null = $PSBoundParameters.Add("DatabaseName", "default") - Az.RedisEnterpriseCache.internal\Export-AzRedisEnterpriseCacheDatabase @PSBoundParameters + Az.RedisEnterpriseCache.internal\Export-AzRedisEnterpriseCache @PSBoundParameters } } diff --git a/src/RedisEnterpriseCache/custom/Get-AzRedisEnterpriseCache.ps1 b/src/RedisEnterpriseCache/custom/Get-AzRedisEnterpriseCache.ps1 index 175ca9adf713..391f57da6a23 100644 --- a/src/RedisEnterpriseCache/custom/Get-AzRedisEnterpriseCache.ps1 +++ b/src/RedisEnterpriseCache/custom/Get-AzRedisEnterpriseCache.ps1 @@ -1,8 +1,23 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + <# .Synopsis -Gets information about a RedisEnterprise cluster and its associated database +Gets information about a Redis Enterprise cluster and its associated databases. .Description -Gets information about a RedisEnterprise cluster and its associated database +Gets information about a Redis Enterprise cluster and its associated databases. .Example PS C:\> Get-AzRedisEnterpriseCache -ResourceGroupName "MyGroup" -Name "MyCache" @@ -18,38 +33,49 @@ Location Name Type Zone Database East US MyCache1 Microsoft.Cache/redisEnterprise {default} East US MyCache2 Microsoft.Cache/redisEnterprise {1, 2, 3} {default} +.Example +PS C:\> Get-AzRedisEnterpriseCache + +Location Name Type Zone Database +-------- ---- ---- ---- -------- +East US MyCache1 Microsoft.Cache/redisEnterprise {default} +East US MyCache2 Microsoft.Cache/redisEnterprise {1, 2, 3} {default} +West US MyCache3 Microsoft.Cache/redisEnterprise {default} +Central US MyCache4 Microsoft.Cache/redisEnterprise {1, 2, 3} {default} + .Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/get-azredisenterprisecache +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/get-azredisenterprisecache #> function Get-AzRedisEnterpriseCache { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster])] - [CmdletBinding(PositionalBinding=$false)] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster])] + [CmdletBinding(DefaultParameterSetName='ListBySubscriptionId', PositionalBinding=$false)] param( - [Parameter(Mandatory, HelpMessage='The name of the resource group.')] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='ListByResourceGroup', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, - [Parameter(HelpMessage='The name of the RedisEnterprise cluster.')] + [Parameter(ParameterSetName='Get', Mandatory)] [Alias('Name')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] - # The name of the RedisEnterprise cluster. + # The name of the Redis Enterprise cluster. ${ClusterName}, - [Parameter(HelpMessage='Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.')] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, - [Parameter(HelpMessage='The credentials, account, tenant, and subscription used for communication with Azure.')] + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Azure')] @@ -57,40 +83,40 @@ function Get-AzRedisEnterpriseCache { # The credentials, account, tenant, and subscription used for communication with Azure. ${DefaultProfile}, - [Parameter(DontShow, HelpMessage='Wait for .NET debugger to attach')] + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, - [Parameter(DontShow, HelpMessage='SendAsync Pipeline Steps to be appended to the front of the pipeline')] + [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, - [Parameter(DontShow, HelpMessage='SendAsync Pipeline Steps to be prepended to the front of the pipeline')] + [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter(DontShow, HelpMessage='The URI for the proxy server to use')] + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, - [Parameter(DontShow, HelpMessage='Credentials for a proxy server to use for the remote call')] + [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, - [Parameter(DontShow, HelpMessage='Use the default credentials for the proxy')] + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy @@ -98,36 +124,28 @@ function Get-AzRedisEnterpriseCache { ) process { - if ($PSBoundParameters.ContainsKey("ClusterName")) + $clusterList = Az.RedisEnterpriseCache.internal\Get-AzRedisEnterpriseCache @PSBoundParameters + + foreach ($cluster in $clusterList) { - $cluster = Az.RedisEnterpriseCache.internal\Get-AzRedisEnterpriseCache @PSBoundParameters + $DatabasePSBoundParameters = @{} + $PSBoundParameters + if (-not $PSBoundParameters.ContainsKey("ClusterName")) + { + $null = $DatabasePSBoundParameters.Add("ClusterName", $cluster.Name) + } + if (-not $PSBoundParameters.ContainsKey("ResourceGroupName")) + { + $null = $DatabasePSBoundParameters.Add("ResourceGroupName", $cluster.Id.split("/")[4]) + } - $databaseList = Az.RedisEnterpriseCache.internal\Get-AzRedisEnterpriseCacheDatabase @PSBoundParameters + $databaseList = Az.RedisEnterpriseCache.internal\Get-AzRedisEnterpriseCacheDatabase @DatabasePSBoundParameters $cluster.Database = @{} foreach ($database in $databaseList) { $cluster.Database.Add($database.Name, $database) } - - return $cluster } - else - { - $clusterList = Az.RedisEnterpriseCache.internal\Get-AzRedisEnterpriseCache @PSBoundParameters - foreach ($cluster in $clusterList) - { - $GetPSBoundParameters = @{} + $PSBoundParameters - $null = $GetPSBoundParameters.Add("ClusterName", $cluster.Name) - $databaseList = Az.RedisEnterpriseCache.internal\Get-AzRedisEnterpriseCacheDatabase @GetPSBoundParameters - $cluster.Database = @{} - foreach ($database in $databaseList) - { - $cluster.Database.Add($database.Name, $database) - } - } - - return $clusterList - } + return $clusterList } } diff --git a/src/RedisEnterpriseCache/custom/Get-AzRedisEnterpriseCacheDatabase.ps1 b/src/RedisEnterpriseCache/custom/Get-AzRedisEnterpriseCacheDatabase.ps1 index 2acb6fe7432f..7c46d04a87ae 100644 --- a/src/RedisEnterpriseCache/custom/Get-AzRedisEnterpriseCacheDatabase.ps1 +++ b/src/RedisEnterpriseCache/custom/Get-AzRedisEnterpriseCacheDatabase.ps1 @@ -1,8 +1,23 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + <# .Synopsis -Gets information about a database in a RedisEnterprise cluster. +Gets information about a database in a Redis Enterprise cluster. .Description -Gets information about a database in a RedisEnterprise cluster. +Gets information about a database in a Redis Enterprise cluster. .Example PS C:\> Get-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" @@ -11,33 +26,33 @@ Name Type default Microsoft.Cache/redisEnterprise/databases .Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/get-azredisenterprisecachedatabase +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/get-azredisenterprisecachedatabase #> function Get-AzRedisEnterpriseCacheDatabase { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Alias('Name')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] - # The name of the RedisEnterprise cluster. + # The name of the Redis Enterprise cluster. ${ClusterName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter()] diff --git a/src/RedisEnterpriseCache/custom/Get-AzRedisEnterpriseCacheDatabaseKey.ps1 b/src/RedisEnterpriseCache/custom/Get-AzRedisEnterpriseCacheKey.ps1 similarity index 70% rename from src/RedisEnterpriseCache/custom/Get-AzRedisEnterpriseCacheDatabaseKey.ps1 rename to src/RedisEnterpriseCache/custom/Get-AzRedisEnterpriseCacheKey.ps1 index e5e1016d5181..e97a268683b0 100644 --- a/src/RedisEnterpriseCache/custom/Get-AzRedisEnterpriseCacheDatabaseKey.ps1 +++ b/src/RedisEnterpriseCache/custom/Get-AzRedisEnterpriseCacheKey.ps1 @@ -1,43 +1,59 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + <# .Synopsis -Retrieves the access keys for the RedisEnterprise database. +Retrieves all access keys for a Redis Enterprise database. .Description -Retrieves the access keys for the RedisEnterprise database. +Retrieves all access keys for a Redis Enterprise database. .Example -PS C:\> Get-AzRedisEnterpriseCacheDatabaseKey -Name "MyCache" -ResourceGroupName "MyGroup" +PS C:\> Get-AzRedisEnterpriseCacheKey -Name "MyCache" -ResourceGroupName "MyGroup" PrimaryKey SecondaryKey ---------- ------------ primary-key secondary-key .Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeys +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeys .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/get-azredisenterprisecachedatabasekey +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/get-azredisenterprisecachekey #> -function Get-AzRedisEnterpriseCacheDatabaseKey { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeys])] +function Get-AzRedisEnterpriseCacheKey { + [Alias('Get-AzRedisEnterpriseCacheDatabaseKey', 'Get-AzRedisEnterpriseCacheAccessKey')] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeys])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Alias('Name')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] - # The name of the RedisEnterprise cluster. + # The name of the Redis Enterprise cluster. ${ClusterName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter()] @@ -90,6 +106,6 @@ function Get-AzRedisEnterpriseCacheDatabaseKey { process { $null = $PSBoundParameters.Add("DatabaseName", "default") - Az.RedisEnterpriseCache.internal\Get-AzRedisEnterpriseCacheDatabaseKey @PSBoundParameters + Az.RedisEnterpriseCache.internal\Get-AzRedisEnterpriseCacheKey @PSBoundParameters } } diff --git a/src/RedisEnterpriseCache/custom/Import-AzRedisEnterpriseCacheDatabase.ps1 b/src/RedisEnterpriseCache/custom/Import-AzRedisEnterpriseCache.ps1 similarity index 74% rename from src/RedisEnterpriseCache/custom/Import-AzRedisEnterpriseCacheDatabase.ps1 rename to src/RedisEnterpriseCache/custom/Import-AzRedisEnterpriseCache.ps1 index e6e21289c4cb..1a1a0db53b04 100644 --- a/src/RedisEnterpriseCache/custom/Import-AzRedisEnterpriseCacheDatabase.ps1 +++ b/src/RedisEnterpriseCache/custom/Import-AzRedisEnterpriseCache.ps1 @@ -1,22 +1,33 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + <# .Synopsis Imports a database file to target database. .Description Imports a database file to target database. .Example -[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Invalid SAS token")] -PS C:\> Import-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -SasUri "https://mystorageaccount.blob.core.windows.net/mycontainer/myfilename?sp=rwdl&se=2020-09-02T11:17:15Z&sv=2019-12-12&sr=c&sig=Us%2FGshOUTKCSzTOi8dLtt1to2L32rcDr3Nn0WFFMdDM%3D;mystoragekey" - -.Example -[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Invalid SAS token")] -PS C:\> Import-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -SasUri "https://mystorageaccount.blob.core.windows.net/mycontainer/bk20201130-223654-1-db-1_of_1-2-0-16383.rdb.gz?sp=rwdl&se=2020-09-02T11:17:15Z&sv=2019-12-12&sr=c&sig=Us%2FGshOUTKCSzTOi8dLtt1to2L32rcDr3Nn0WFFMdDM%3D;mystoragekey" +PS C:\> Import-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -SasUri "https://mystorageaccount.blob.core.windows.net/mycontainer/myfilename?sp=signedPermissions&se=signedExpiry&sv=signedVersion&sr=signedResource&sig=signature;mystoragekey" .Outputs System.Boolean .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/import-azredisenterprisecachedatabase +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/import-azredisenterprisecache #> -function Import-AzRedisEnterpriseCacheDatabase { +function Import-AzRedisEnterpriseCache { + [Alias('Import-AzRedisEnterpriseCacheDatabase')] [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='ImportExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( @@ -24,27 +35,27 @@ function Import-AzRedisEnterpriseCacheDatabase { [Alias('Name')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] - # The name of the RedisEnterprise cluster. + # The name of the Redis Enterprise cluster. ${ClusterName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [System.String] - # SAS Uri for the target blob to import from + # SAS URI for the target blob to import from ${SasUri}, [Parameter()] @@ -115,6 +126,6 @@ function Import-AzRedisEnterpriseCacheDatabase { process { $null = $PSBoundParameters.Add("DatabaseName", "default") - Az.RedisEnterpriseCache.internal\Import-AzRedisEnterpriseCacheDatabase @PSBoundParameters + Az.RedisEnterpriseCache.internal\Import-AzRedisEnterpriseCache @PSBoundParameters } } diff --git a/src/RedisEnterpriseCache/custom/New-AzRedisEnterpriseCache.ps1 b/src/RedisEnterpriseCache/custom/New-AzRedisEnterpriseCache.ps1 index 9061d092a3fe..4de2902ce596 100644 --- a/src/RedisEnterpriseCache/custom/New-AzRedisEnterpriseCache.ps1 +++ b/src/RedisEnterpriseCache/custom/New-AzRedisEnterpriseCache.ps1 @@ -1,8 +1,23 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + <# .Synopsis -Creates a Redis Enterpise cache cluster and an associated database +Creates a Redis Enterprise cache. .Description -Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster and an associated database named 'default' +Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster with an associated database. .Example PS C:\> New-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -Location "West US" -Sku "Enterprise_E10" @@ -11,14 +26,21 @@ Location Name Type Zone Database West US MyCache Microsoft.Cache/redisEnterprise {default} .Example -PS C:\> New-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -Location "East US" -Sku "Enterprise_E20" -Capacity 4 -Zone "1","2","3" -Module "{name:RedisBloom, args:`"ERROR_RATE 0.00 INITIAL_SIZE 400`"}","{name:RedisTimeSeries, args:`"RETENTION_POLICY 20`"}","{name:RediSearch}" -ClientProtocol "Plaintext" -EvictionPolicy "NoEviction" -ClusteringPolicy "EnterpriseCluster" -Tag @{"tag" = "value"} +PS C:\> New-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -Location "East US" -Sku "Enterprise_E20" -Capacity 4 -MinimumTlsVersion "1.2" -Zone "1","2","3" -Tag @{"tag1" = "value1"} -Module "{name:RedisBloom, args:`"ERROR_RATE 0.00 INITIAL_SIZE 400`"}","{name:RedisTimeSeries, args:`"RETENTION_POLICY 20`"}","{name:RediSearch}" -ClientProtocol "Plaintext" -EvictionPolicy "NoEviction" -ClusteringPolicy "EnterpriseCluster" -AofPersistenceEnabled -AofPersistenceFrequency "1s" Location Name Type Zone Database -------- ---- ---- ---- -------- East US MyCache Microsoft.Cache/redisEnterprise {1, 2, 3} {default} +.Example +PS C:\> New-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -Location "East US" -Sku "EnterpriseFlash_F300" -NoDatabase + +Location Name Type Zone Database +-------- ---- ---- ---- -------- +East US MyCache Microsoft.Cache/redisEnterprise {} + .Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster .Notes COMPLEX PARAMETER PROPERTIES @@ -29,117 +51,156 @@ MODULE : Optional set of redis modules to enable in this database - m [Arg ]: Configuration options for the module, e.g. 'ERROR_RATE 0.00 INITIAL_SIZE 400'. .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/new-azredisenterprisecache +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/new-azredisenterprisecache #> - function New-AzRedisEnterpriseCache { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster])] - [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster])] + [CmdletBinding(DefaultParameterSetName='CreateClusterWithDatabase', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(Mandatory, HelpMessage='The name of the RedisEnterprise cluster.')] + [Parameter(Mandatory)] [Alias('Name')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] - # The name of the RedisEnterprise cluster. + # The name of the Redis Enterprise cluster. ${ClusterName}, - [Parameter(Mandatory, HelpMessage='The name of the resource group.')] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, - [Parameter(Mandatory, HelpMessage='The geo-location where the resource lives')] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [System.String] - # The geo-location where the resource lives + # The geo-location where the resource lives. ${Location}, - [Parameter(Mandatory, HelpMessage='The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.)')] + [Parameter(Mandatory)] [Alias('SkuName')] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName])] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName] - # The type of RedisEnterprise cluster to deploy. - # Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.) + # The type of Redis Enterprise cluster to deploy. + # Allowed values: Enterprise_E10, Enterprise_E20, Enterprise_E50, Enterprise_E100, EnterpriseFlash_F300, EnterpriseFlash_F700, EnterpriseFlash_F1500 ${Sku}, - [Parameter(HelpMessage='The size of the RedisEnterprise cluster. Defaults to 2 or 3 depending on SKU. Valid values are (2, 4, 6, ...) for Enterprise SKUs and (3, 9, 15, ...) for Flash SKUs.')] + [Parameter()] [Alias('SkuCapacity')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [System.Int32] - # The size of the RedisEnterprise cluster. - # Defaults to 2 or 3 depending on SKU. - # Valid values are (2, 4, 6, ...) for Enterprise SKUs and (3, 9, 15, ...) for Flash SKUs. + # The size of the Redis Enterprise cluster - defaults to 2 or 3 depending on SKU. + # Allowed values are (2, 4, 6, ...) for Enterprise SKUs and (3, 9, 15, ...) for Flash SKUs. ${Capacity}, - [Parameter(HelpMessage='The minimum TLS version for the cluster to support, e.g. 1.2')] + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion])] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [System.String] - # The minimum TLS version for the cluster to support, e.g. - # '1.2' + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion] + # The minimum TLS version for the cluster to support - default is 1.2 + # Allowed values: 1.0, 1.1, 1.2 ${MinimumTlsVersion}, - [Parameter(HelpMessage='The zones where this cluster will be deployed.')] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [System.String[]] - # The zones where this cluster will be deployed. + # The Availability Zones where this cluster will be deployed. ${Zone}, - [Parameter(HelpMessage='Optional set of redis modules to enable in this database - modules can only be added at creation time.')] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule[]] - # Optional set of redis modules to enable in this database - modules can only be added at creation time. + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceTags]))] + [System.Collections.Hashtable] + # Cluster resource tags. + ${Tag}, + + [Parameter(ParameterSetName='CreateClusterWithDatabase')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule[]] + # Optional set of redis modules to enable in this database - modules can only be added at create time. # To construct, see NOTES section for MODULE properties and create a hash table. ${Module}, - [Parameter(HelpMessage='Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted.')] + [Parameter(ParameterSetName='CreateClusterWithDatabase')] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol])] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol] - # Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. - # Default is TLS-encrypted. + # Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols - default is Encrypted + # Allowed values: Encrypted, Plaintext ${ClientProtocol}, - [Parameter(HelpMessage='TCP port of the database endpoint. Specified at create time. Defaults to an available port.')] + [Parameter(ParameterSetName='CreateClusterWithDatabase')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [System.Int32] - # TCP port of the database endpoint. + # TCP port of the database endpoint - defaults to an available port # Specified at create time. - # Defaults to an available port. ${Port}, - [Parameter(HelpMessage='Redis eviction policy - default is VolatileLRU.')] + [Parameter(ParameterSetName='CreateClusterWithDatabase')] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy])] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy] # Redis eviction policy - default is VolatileLRU + # Allowed values: AllKeysLFU, AllKeysLRU, AllKeysRandom, VolatileLRU, VolatileLFU, VolatileTTL, VolatileRandom, NoEviction ${EvictionPolicy}, - [Parameter(HelpMessage='Clustering policy - default is OSSCluster. Specified at create time.')] + [Parameter(ParameterSetName='CreateClusterWithDatabase')] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy])] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy] - # Clustering policy - default is OSSCluster. + # Clustering policy - default is OSSCluster # Specified at create time. + # Allowed values: EnterpriseCluster, OSSCluster ${ClusteringPolicy}, - [Parameter(HelpMessage='Resource tags.')] + [Parameter(ParameterSetName='CreateClusterWithDatabase')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, + [System.Management.Automation.SwitchParameter] + # [Preview] Sets whether AOF persistence is enabled. + # After enabling AOF persistence, you will be unable to disable it. + # Support for disabling AOF persistence after enabling will be added at a later date. + ${AofPersistenceEnabled}, + + [Parameter(ParameterSetName='CreateClusterWithDatabase')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency])] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency] + # [Preview] Sets the frequency at which data is written to disk if AOF persistence is enabled. + # Allowed values: 1s, always + ${AofPersistenceFrequency}, + + [Parameter(ParameterSetName='CreateClusterWithDatabase')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [System.Management.Automation.SwitchParameter] + # [Preview] Sets whether RDB persistence is enabled. + # After enabling RDB persistence, you will be unable to disable it. + # Support for disabling RDB persistence after enabling will be added at a later date. + ${RdbPersistenceEnabled}, + + [Parameter(ParameterSetName='CreateClusterWithDatabase')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency])] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency] + # [Preview] Sets the frequency at which a snapshot of the database is created if RDB persistence is enabled. + # Allowed values: 1h, 6h, 12h + ${RdbPersistenceFrequency}, - [Parameter(HelpMessage='Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.')] + [Parameter(ParameterSetName='CreateClusterOnly', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Advanced - Do not automatically create a default database. + # Warning: The cache will not be usable until you create a database. + ${NoDatabase}, + + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, - [Parameter(HelpMessage='The credentials, account, tenant, and subscription used for communication with Azure.')] + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Azure')] @@ -147,52 +208,52 @@ function New-AzRedisEnterpriseCache { # The credentials, account, tenant, and subscription used for communication with Azure. ${DefaultProfile}, - [Parameter(HelpMessage='Run the command as a job')] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Run the command as a job ${AsJob}, - [Parameter(DontShow, HelpMessage='Wait for .NET debugger to attach')] + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, - [Parameter(DontShow, HelpMessage='SendAsync Pipeline Steps to be appended to the front of the pipeline')] + [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, - [Parameter(DontShow, HelpMessage='SendAsync Pipeline Steps to be prepended to the front of the pipeline')] + [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter(HelpMessage='Run the command asynchronously')] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Run the command asynchronously ${NoWait}, - [Parameter(DontShow, HelpMessage='The URI for the proxy server to use')] + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, - [Parameter(DontShow, HelpMessage='Credentials for a proxy server to use for the remote call')] + [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, - [Parameter(DontShow, HelpMessage='Use the default credentials for the proxy')] + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy @@ -201,13 +262,25 @@ function New-AzRedisEnterpriseCache { process { $GetPSBoundParameters = @{} + $PSBoundParameters + $null = $GetPSBoundParameters.Remove("NoDatabase") $null = $GetPSBoundParameters.Remove("Module") $null = $GetPSBoundParameters.Remove("ClientProtocol") $null = $GetPSBoundParameters.Remove("Port") $null = $GetPSBoundParameters.Remove("EvictionPolicy") $null = $GetPSBoundParameters.Remove("ClusteringPolicy") + $null = $GetPSBoundParameters.Remove("AofPersistenceEnabled") + $null = $GetPSBoundParameters.Remove("AofPersistenceFrequency") + $null = $GetPSBoundParameters.Remove("RdbPersistenceEnabled") + $null = $GetPSBoundParameters.Remove("RdbPersistenceFrequency") $cluster = Az.RedisEnterpriseCache.internal\New-AzRedisEnterpriseCache @GetPSBoundParameters + if (('CreateClusterOnly') -contains $PSCmdlet.ParameterSetName) + { + $cluster.Database = @{} + return $cluster + } + + $null = $PSBoundParameters.Remove("NoDatabase") $null = $PSBoundParameters.Remove("Location") $null = $PSBoundParameters.Remove("Sku") $null = $PSBoundParameters.Remove("Capacity") diff --git a/src/RedisEnterpriseCache/custom/New-AzRedisEnterpriseCacheDatabase.ps1 b/src/RedisEnterpriseCache/custom/New-AzRedisEnterpriseCacheDatabase.ps1 new file mode 100644 index 000000000000..f67adc44c076 --- /dev/null +++ b/src/RedisEnterpriseCache/custom/New-AzRedisEnterpriseCacheDatabase.ps1 @@ -0,0 +1,209 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates a database for a Redis Enterprise cache. +.Description +Creates a database for a Redis Enterprise cache. +.Example +PS C:\> New-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" + +Name Type +---- ---- +default Microsoft.Cache/redisEnterprise/databases + +.Example +PS C:\> New-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -Module "{name:RedisBloom, args:`"ERROR_RATE 0.00 INITIAL_SIZE 400`"}","{name:RedisTimeSeries, args:`"RETENTION_POLICY 20`"}","{name:RediSearch}" -ClientProtocol "Plaintext" -EvictionPolicy "NoEviction" -ClusteringPolicy "EnterpriseCluster" -Port 10000 -AofPersistenceEnabled -AofPersistenceFrequency "always" + +Name Type +---- ---- +default Microsoft.Cache/redisEnterprise/databases + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +MODULE : Optional set of redis modules to enable in this database - modules can only be added at creation time. + Name : The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries' + [Arg ]: Configuration options for the module, e.g. 'ERROR_RATE 0.00 INITIAL_SIZE 400'. + +.Link +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/new-azredisenterprisecachedatabase +#> +function New-AzRedisEnterpriseCacheDatabase { + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase])] + [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] + param( + [Parameter(Mandatory)] + [Alias('Name')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] + [System.String] + # The name of the Redis Enterprise cluster. + ${ClusterName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule[]] + # Optional set of redis modules to enable in this database - modules can only be added at create time. + # To construct, see NOTES section for MODULE properties and create a hash table. + ${Module}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol])] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol] + # Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols - default is Encrypted + # Allowed values: Encrypted, Plaintext + ${ClientProtocol}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [System.Int32] + # TCP port of the database endpoint - defaults to an available port + # Specified at create time. + ${Port}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy])] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy] + # Redis eviction policy - default is VolatileLRU + # Allowed values: AllKeysLFU, AllKeysLRU, AllKeysRandom, VolatileLRU, VolatileLFU, VolatileTTL, VolatileRandom, NoEviction + ${EvictionPolicy}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy])] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy] + # Clustering policy - default is OSSCluster + # Specified at create time. + # Allowed values: EnterpriseCluster, OSSCluster + ${ClusteringPolicy}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [System.Management.Automation.SwitchParameter] + # [Preview] Sets whether AOF persistence is enabled. + # After enabling AOF persistence, you will be unable to disable it. + # Support for disabling AOF persistence after enabling will be added at a later date. + ${AofPersistenceEnabled}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency])] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency] + # [Preview] Sets the frequency at which data is written to disk if AOF persistence is enabled. + # Allowed values: 1s, always + ${AofPersistenceFrequency}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [System.Management.Automation.SwitchParameter] + # [Preview] Sets whether RDB persistence is enabled. + # After enabling RDB persistence, you will be unable to disable it. + # Support for disabling RDB persistence after enabling will be added at a later date. + ${RdbPersistenceEnabled}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency])] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency] + # [Preview] Sets the frequency at which a snapshot of the database is created if RDB persistence is enabled. + # Allowed values: 1h, 6h, 12h + ${RdbPersistenceFrequency}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} + ) + + process { + $null = $PSBoundParameters.Add("DatabaseName", "default") + Az.RedisEnterpriseCache.internal\New-AzRedisEnterpriseCacheDatabase @PSBoundParameters + } +} diff --git a/src/RedisEnterpriseCache/custom/New-AzRedisEnterpriseCacheDatabaseKey.ps1 b/src/RedisEnterpriseCache/custom/New-AzRedisEnterpriseCacheKey.ps1 similarity index 74% rename from src/RedisEnterpriseCache/custom/New-AzRedisEnterpriseCacheDatabaseKey.ps1 rename to src/RedisEnterpriseCache/custom/New-AzRedisEnterpriseCacheKey.ps1 index d9ba6a72898c..6fb38618aa4c 100644 --- a/src/RedisEnterpriseCache/custom/New-AzRedisEnterpriseCacheDatabaseKey.ps1 +++ b/src/RedisEnterpriseCache/custom/New-AzRedisEnterpriseCacheKey.ps1 @@ -1,50 +1,66 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + <# .Synopsis -Regenerates the RedisEnterprise database's access keys. +Regenerates an access key for a Redis Enterprise database. .Description -Regenerates the RedisEnterprise database's access keys. +Regenerates an access key for a Redis Enterprise database. .Example -PS C:\> New-AzRedisEnterpriseCacheDatabaseKey -Name "MyCache" -ResourceGroupName "MyGroup" -KeyType "Primary" +PS C:\> New-AzRedisEnterpriseCacheKey -Name "MyCache" -ResourceGroupName "MyGroup" -KeyType "Primary" PrimaryKey SecondaryKey ---------- ------------ new-primary-key secondary-key .Example -PS C:\> New-AzRedisEnterpriseCacheDatabaseKey -Name "MyCache" -ResourceGroupName "MyGroup" -KeyType "Secondary" +PS C:\> New-AzRedisEnterpriseCacheKey -Name "MyCache" -ResourceGroupName "MyGroup" -KeyType "Secondary" PrimaryKey SecondaryKey ---------- ------------ primary-key new-secondary-key .Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeys +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeys .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/new-azredisenterprisecachedatabasekey +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/new-azredisenterprisecachekey #> -function New-AzRedisEnterpriseCacheDatabaseKey { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeys])] +function New-AzRedisEnterpriseCacheKey { + [Alias('New-AzRedisEnterpriseCacheDatabaseKey', 'New-AzRedisEnterpriseCacheAccessKey')] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeys])] [CmdletBinding(DefaultParameterSetName='RegenerateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Alias('Name')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] - # The name of the RedisEnterprise cluster. + # The name of the Redis Enterprise cluster. ${ClusterName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter(Mandatory)] @@ -116,6 +132,6 @@ function New-AzRedisEnterpriseCacheDatabaseKey { process { $null = $PSBoundParameters.Add("DatabaseName", "default") - Az.RedisEnterpriseCache.internal\New-AzRedisEnterpriseCacheDatabaseKey @PSBoundParameters + Az.RedisEnterpriseCache.internal\New-AzRedisEnterpriseCacheKey @PSBoundParameters } } diff --git a/src/RedisEnterpriseCache/custom/Remove-AzRedisEnterpriseCacheDatabase.ps1 b/src/RedisEnterpriseCache/custom/Remove-AzRedisEnterpriseCacheDatabase.ps1 new file mode 100644 index 000000000000..990cdf2e981f --- /dev/null +++ b/src/RedisEnterpriseCache/custom/Remove-AzRedisEnterpriseCacheDatabase.ps1 @@ -0,0 +1,151 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Deletes a single database in a Redis Enterprise cache. +.Description +Deletes a single database in a Redis Enterprise cache. +.Example +PS C:\> Remove-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -PassThru +True +.Example +PS C:\> Remove-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.IRedisEnterpriseCacheIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ClusterName ]: The name of the Redis Enterprise cluster. + [DatabaseName ]: The name of the database (must be "default"). + [Id ]: Resource identity path + [Location ]: The region the operation is in. + [OperationId ]: The operation's unique identifier. + [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. + +.Link +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/remove-azredisenterprisecachedatabase +#> +function Remove-AzRedisEnterpriseCacheDatabase { + [OutputType([System.Boolean])] + [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] + param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('Name')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] + [System.String] + # The name of the Redis Enterprise cluster. + ${ClusterName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.IRedisEnterpriseCacheIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} + ) + + process { + $null = $PSBoundParameters.Add("DatabaseName", "default") + Az.RedisEnterpriseCache.internal\Remove-AzRedisEnterpriseCacheDatabase @PSBoundParameters + } +} diff --git a/src/RedisEnterpriseCache/custom/Update-AzRedisEnterpriseCacheDatabase.ps1 b/src/RedisEnterpriseCache/custom/Update-AzRedisEnterpriseCacheDatabase.ps1 index a9da71fdaa37..a3d7c3ff8dc5 100644 --- a/src/RedisEnterpriseCache/custom/Update-AzRedisEnterpriseCacheDatabase.ps1 +++ b/src/RedisEnterpriseCache/custom/Update-AzRedisEnterpriseCacheDatabase.ps1 @@ -1,8 +1,23 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + <# .Synopsis -Updates a database +Updates an existing Redis Enterprise database .Description -Updates a database +Updates an existing Redis Enterprise database .Example PS C:\> Update-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -ClientProtocol "Plaintext" @@ -11,7 +26,7 @@ Name Type default Microsoft.Cache/redisEnterprise/databases .Example -PS C:\> Update-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -ClientProtocol "Encrypted" -EvictionPolicy "NoEviction" +PS C:\> Update-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -ClientProtocol "Encrypted" -EvictionPolicy "NoEviction" -RdbPersistenceEnabled:$true -RdbPersistenceFrequency "6h" Name Type ---- ---- @@ -20,51 +35,52 @@ default Microsoft.Cache/redisEnterprise/databases .Inputs Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.IRedisEnterpriseCacheIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [ClusterName ]: The name of the RedisEnterprise cluster. + [ClusterName ]: The name of the Redis Enterprise cluster. [DatabaseName ]: The name of the database (must be "default"). [Id ]: Resource identity path [Location ]: The region the operation is in. [OperationId ]: The operation's unique identifier. [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource - [ResourceGroupName ]: The name of the resource group. - [SubscriptionId ]: Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. MODULE : Optional set of redis modules to enable in this database - modules can only be added at creation time. Name : The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries' [Arg ]: Configuration options for the module, e.g. 'ERROR_RATE 0.00 INITIAL_SIZE 400'. + .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/update-azredisenterprisecachedatabase +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/update-azredisenterprisecachedatabase #> function Update-AzRedisEnterpriseCacheDatabase { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Alias('Name')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] - # The name of the RedisEnterprise cluster. + # The name of the Redis Enterprise cluster. ${ClusterName}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -79,38 +95,48 @@ function Update-AzRedisEnterpriseCacheDatabase { [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol] # Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. - # Default is TLS-encrypted. + # Allowed values: Encrypted, Plaintext ${ClientProtocol}, - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy])] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy] - # Clustering policy - default is OSSCluster. - # Specified at create time. - ${ClusteringPolicy}, - [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy])] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy] - # Redis eviction policy - default is VolatileLRU + # Redis eviction policy. + # Allowed values: AllKeysLFU, AllKeysLRU, AllKeysRandom, VolatileLRU, VolatileLFU, VolatileTTL, VolatileRandom, NoEviction ${EvictionPolicy}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule[]] - # Optional set of redis modules to enable in this database - modules can only be added at creation time. - # To construct, see NOTES section for MODULE properties and create a hash table. - ${Module}, + [System.Management.Automation.SwitchParameter] + # [Preview] Sets whether AOF persistence is enabled. + # After enabling AOF persistence, you will be unable to disable it. + # Support for disabling AOF persistence after enabling will be added at a later date. + ${AofPersistenceEnabled}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency])] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency] + # [Preview] Sets the frequency at which data is written to disk if AOF persistence is enabled. + # Allowed values: 1s, always + ${AofPersistenceFrequency}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [System.Management.Automation.SwitchParameter] + # [Preview] Sets whether RDB persistence is enabled. + # After enabling RDB persistence, you will be unable to disable it. + # Support for disabling RDB persistence after enabling will be added at a later date. + ${RdbPersistenceEnabled}, [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency])] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [System.Int32] - # TCP port of the database endpoint. - # Specified at create time. - # Defaults to an available port. - ${Port}, + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency] + # [Preview] Sets the frequency at which a snapshot of the database is created if RDB persistence is enabled. + # Allowed values: 1h, 6h, 12h + ${RdbPersistenceFrequency}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] diff --git a/src/RedisEnterpriseCache/custom/readme.md b/src/RedisEnterpriseCache/custom/readme.md index 1ca35f183761..bd86feb7608d 100644 --- a/src/RedisEnterpriseCache/custom/readme.md +++ b/src/RedisEnterpriseCache/custom/readme.md @@ -31,11 +31,11 @@ These provide functionality to our HTTP pipeline and other useful features. In s ### Attributes For processing the cmdlets, we've created some additional attributes: -- `Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.DescriptionAttribute` +- `Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.DescriptionAttribute` - Used in C# cmdlets to provide a high-level description of the cmdlet. This is propegated to reference documentation via [help comments](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts. -- `Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.DoNotExportAttribute` +- `Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.DoNotExportAttribute` - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.RedisEnterpriseCache`. -- `Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.InternalExportAttribute` +- `Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.InternalExportAttribute` - Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.RedisEnterpriseCache`. For more information, see [readme.md](..\internal/readme.md) in the `..\internal` folder. -- `Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.ProfileAttribute` +- `Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ProfileAttribute` - Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules. \ No newline at end of file diff --git a/src/RedisEnterpriseCache/examples/Export-AzRedisEnterpriseCache.md b/src/RedisEnterpriseCache/examples/Export-AzRedisEnterpriseCache.md new file mode 100644 index 000000000000..078d5f4f136d --- /dev/null +++ b/src/RedisEnterpriseCache/examples/Export-AzRedisEnterpriseCache.md @@ -0,0 +1,7 @@ +### Example 1: Export database to file +```powershell +PS C:\> Export-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -SasUri "https://mystorageaccount.blob.core.windows.net/mycontainer?sp=signedPermissions&se=signedExpiry&sv=signedVersion&sr=signedResource&sig=signature;mystoragekey" +``` + +This command exports the database of the Redis Enterprise cache named MyCache to a database file. + diff --git a/src/RedisEnterpriseCache/examples/Export-AzRedisEnterpriseCacheDatabase.md b/src/RedisEnterpriseCache/examples/Export-AzRedisEnterpriseCacheDatabase.md deleted file mode 100644 index c3723b14b87a..000000000000 --- a/src/RedisEnterpriseCache/examples/Export-AzRedisEnterpriseCacheDatabase.md +++ /dev/null @@ -1,8 +0,0 @@ -### Example 1: Export database -```powershell -#[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Invalid SAS token")] -PS C:\> Export-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -SasUri "https://mystorageaccount.blob.core.windows.net/mycontainer?sp=rwdl&se=2020-09-02T11:17:15Z&sv=2019-12-12&sr=c&sig=Us%2FGshOUTKCSzTOi8dLtt1to2L32rcDr3Nn0WFFMdDM%3D;mystoragekey" -``` - -This command exports the database of the Redis Enterprise Cache named MyCache to a database file. - diff --git a/src/RedisEnterpriseCache/examples/Get-AzRedisEnterpriseCache.md b/src/RedisEnterpriseCache/examples/Get-AzRedisEnterpriseCache.md index d49a542a31d5..28f14f48fbd6 100644 --- a/src/RedisEnterpriseCache/examples/Get-AzRedisEnterpriseCache.md +++ b/src/RedisEnterpriseCache/examples/Get-AzRedisEnterpriseCache.md @@ -1,4 +1,4 @@ -### Example 1: Get a Redis Enterprise Cache by name +### Example 1: Get a Redis Enterprise cache by name ```powershell PS C:\> Get-AzRedisEnterpriseCache -ResourceGroupName "MyGroup" -Name "MyCache" @@ -8,9 +8,9 @@ West US MyCache Microsoft.Cache/redisEnterprise {default} ``` -This command gets the Redis Enterprise Cache named MyCache. +This command gets information about the Redis Enterprise cache named MyCache. -### Example 2: Get every Redis Enterprise Cache in a resource group +### Example 2: List every Redis Enterprise cache in a resource group ```powershell PS C:\> Get-AzRedisEnterpriseCache -ResourceGroupName "MyGroup" @@ -21,4 +21,19 @@ East US MyCache2 Microsoft.Cache/redisEnterprise {1, 2, 3} {default} ``` -This command gets every Redis Enterprise Cache in the specified resource group. \ No newline at end of file +This command gets information about every Redis Enterprise cache in the specified resource group. + +### Example 3: List every Redis Enterprise cache in a subscription +```powershell +PS C:\> Get-AzRedisEnterpriseCache + +Location Name Type Zone Database +-------- ---- ---- ---- -------- +East US MyCache1 Microsoft.Cache/redisEnterprise {default} +East US MyCache2 Microsoft.Cache/redisEnterprise {1, 2, 3} {default} +West US MyCache3 Microsoft.Cache/redisEnterprise {default} +Central US MyCache4 Microsoft.Cache/redisEnterprise {1, 2, 3} {default} + +``` + +This command gets information about every Redis Enterprise cache in the current subscription. \ No newline at end of file diff --git a/src/RedisEnterpriseCache/examples/Get-AzRedisEnterpriseCacheDatabase.md b/src/RedisEnterpriseCache/examples/Get-AzRedisEnterpriseCacheDatabase.md index 811bd087217f..ea8120837860 100644 --- a/src/RedisEnterpriseCache/examples/Get-AzRedisEnterpriseCacheDatabase.md +++ b/src/RedisEnterpriseCache/examples/Get-AzRedisEnterpriseCacheDatabase.md @@ -1,4 +1,4 @@ -### Example 1: Get database +### Example 1: Get database information ```powershell PS C:\> Get-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" @@ -8,4 +8,4 @@ default Microsoft.Cache/redisEnterprise/databases ``` -This command gets the database for the Redis Enterprise Cache named MyCache. +This command gets information about a database in the Redis Enterprise cache named MyCache. diff --git a/src/RedisEnterpriseCache/examples/Get-AzRedisEnterpriseCacheDatabaseKey.md b/src/RedisEnterpriseCache/examples/Get-AzRedisEnterpriseCacheKey.md similarity index 66% rename from src/RedisEnterpriseCache/examples/Get-AzRedisEnterpriseCacheDatabaseKey.md rename to src/RedisEnterpriseCache/examples/Get-AzRedisEnterpriseCacheKey.md index 4f01ba7f8a7e..72b7eb9de478 100644 --- a/src/RedisEnterpriseCache/examples/Get-AzRedisEnterpriseCacheDatabaseKey.md +++ b/src/RedisEnterpriseCache/examples/Get-AzRedisEnterpriseCacheKey.md @@ -1,6 +1,6 @@ ### Example 1: Get database access keys ```powershell -PS C:\> Get-AzRedisEnterpriseCacheDatabaseKey -Name "MyCache" -ResourceGroupName "MyGroup" +PS C:\> Get-AzRedisEnterpriseCacheKey -Name "MyCache" -ResourceGroupName "MyGroup" PrimaryKey SecondaryKey ---------- ------------ @@ -8,4 +8,4 @@ primary-key secondary-key ``` -This command gets the secret access keys used for authenticating connections to the database of the Redis Enterprise Cache named MyCache. +This command gets the secret access keys used for authenticating connections to the database of the Redis Enterprise cache named MyCache. diff --git a/src/RedisEnterpriseCache/examples/Import-AzRedisEnterpriseCache.md b/src/RedisEnterpriseCache/examples/Import-AzRedisEnterpriseCache.md new file mode 100644 index 000000000000..f419c9d174d4 --- /dev/null +++ b/src/RedisEnterpriseCache/examples/Import-AzRedisEnterpriseCache.md @@ -0,0 +1,7 @@ +### Example 1: Import database from file +```powershell +PS C:\> Import-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -SasUri "https://mystorageaccount.blob.core.windows.net/mycontainer/myfilename?sp=signedPermissions&se=signedExpiry&sv=signedVersion&sr=signedResource&sig=signature;mystoragekey" +``` + +This command imports data from a database file into the database of the Redis Enterprise cache named MyCache. + diff --git a/src/RedisEnterpriseCache/examples/Import-AzRedisEnterpriseCacheDatabase.md b/src/RedisEnterpriseCache/examples/Import-AzRedisEnterpriseCacheDatabase.md deleted file mode 100644 index 8668befb74f5..000000000000 --- a/src/RedisEnterpriseCache/examples/Import-AzRedisEnterpriseCacheDatabase.md +++ /dev/null @@ -1,16 +0,0 @@ -### Example 1: Import database -```powershell -#[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Invalid SAS token")] -PS C:\> Import-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -SasUri "https://mystorageaccount.blob.core.windows.net/mycontainer/myfilename?sp=rwdl&se=2020-09-02T11:17:15Z&sv=2019-12-12&sr=c&sig=Us%2FGshOUTKCSzTOi8dLtt1to2L32rcDr3Nn0WFFMdDM%3D;mystoragekey" -``` - -This command imports a database file into the database of the Redis Enterprise Cache named MyCache. - -### Example 2: Import database (using example filename) -```powershell -#[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Invalid SAS token")] -PS C:\> Import-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -SasUri "https://mystorageaccount.blob.core.windows.net/mycontainer/bk20201130-223654-1-db-1_of_1-2-0-16383.rdb.gz?sp=rwdl&se=2020-09-02T11:17:15Z&sv=2019-12-12&sr=c&sig=Us%2FGshOUTKCSzTOi8dLtt1to2L32rcDr3Nn0WFFMdDM%3D;mystoragekey" -``` - -This command imports a database file into the database of the Redis Enterprise Cache named MyCache. - diff --git a/src/RedisEnterpriseCache/examples/New-AzRedisEnterpriseCache.md b/src/RedisEnterpriseCache/examples/New-AzRedisEnterpriseCache.md index 82ebd3ad83a2..bd1d10496d10 100644 --- a/src/RedisEnterpriseCache/examples/New-AzRedisEnterpriseCache.md +++ b/src/RedisEnterpriseCache/examples/New-AzRedisEnterpriseCache.md @@ -1,4 +1,4 @@ -### Example 1: Create a Redis Enterprise Cache +### Example 1: Create a Redis Enterprise cache ```powershell PS C:\> New-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -Location "West US" -Sku "Enterprise_E10" @@ -8,11 +8,11 @@ West US MyCache Microsoft.Cache/redisEnterprise {default} ``` -This command creates a Redis Enterprise Cache named MyCache. +This command creates a Redis Enterprise cache named MyCache with an associated database named default. -### Example 2: Create a Redis Enterprise Cache using some optional parameters +### Example 2: Create a Redis Enterprise cache using some optional parameters ```powershell -PS C:\> New-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -Location "East US" -Sku "Enterprise_E20" -Capacity 4 -Zone "1","2","3" -Module "{name:RedisBloom, args:`"ERROR_RATE 0.00 INITIAL_SIZE 400`"}","{name:RedisTimeSeries, args:`"RETENTION_POLICY 20`"}","{name:RediSearch}" -ClientProtocol "Plaintext" -EvictionPolicy "NoEviction" -ClusteringPolicy "EnterpriseCluster" -Tag @{"tag" = "value"} +PS C:\> New-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -Location "East US" -Sku "Enterprise_E20" -Capacity 4 -MinimumTlsVersion "1.2" -Zone "1","2","3" -Tag @{"tag1" = "value1"} -Module "{name:RedisBloom, args:`"ERROR_RATE 0.00 INITIAL_SIZE 400`"}","{name:RedisTimeSeries, args:`"RETENTION_POLICY 20`"}","{name:RediSearch}" -ClientProtocol "Plaintext" -EvictionPolicy "NoEviction" -ClusteringPolicy "EnterpriseCluster" -AofPersistenceEnabled -AofPersistenceFrequency "1s" Location Name Type Zone Database -------- ---- ---- ---- -------- @@ -20,4 +20,17 @@ East US MyCache Microsoft.Cache/redisEnterprise {1, 2, 3} {default} ``` -This command creates a Redis Enterprise Cache named MyCache using some optional parameters. \ No newline at end of file +This command creates a Redis Enterprise cache named MyCache with an associated database named default, using some optional parameters. + +### Example 3: Advanced - Create a Redis Enterprise cache cluster without an associated database +```powershell +PS C:\> New-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -Location "East US" -Sku "EnterpriseFlash_F300" -NoDatabase + +Location Name Type Zone Database +-------- ---- ---- ---- -------- +East US MyCache Microsoft.Cache/redisEnterprise {} + +``` + +Warning: This command creates a Redis Enterprise cache cluster named MyCache without any associated database to hold data. + diff --git a/src/RedisEnterpriseCache/examples/New-AzRedisEnterpriseCacheDatabase.md b/src/RedisEnterpriseCache/examples/New-AzRedisEnterpriseCacheDatabase.md new file mode 100644 index 000000000000..38dbc87165f6 --- /dev/null +++ b/src/RedisEnterpriseCache/examples/New-AzRedisEnterpriseCacheDatabase.md @@ -0,0 +1,12 @@ +### Example 1: Create a database for a Redis Enterprise cache +```powershell +PS C:\> New-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -Module "{name:RedisBloom, args:`"ERROR_RATE 0.00 INITIAL_SIZE 400`"}","{name:RedisTimeSeries, args:`"RETENTION_POLICY 20`"}","{name:RediSearch}" -ClientProtocol "Plaintext" -EvictionPolicy "NoEviction" -ClusteringPolicy "EnterpriseCluster" -Port 10000 -AofPersistenceEnabled -AofPersistenceFrequency "always" + +Location Name Type Zone Database +-------- ---- ---- ---- -------- +West US MyCache Microsoft.Cache/redisEnterprise {default} + +``` + +This command creates a database named default for a Redis Enterprise cache named MyCache. + diff --git a/src/RedisEnterpriseCache/examples/New-AzRedisEnterpriseCacheDatabaseKey.md b/src/RedisEnterpriseCache/examples/New-AzRedisEnterpriseCacheKey.md similarity index 73% rename from src/RedisEnterpriseCache/examples/New-AzRedisEnterpriseCacheDatabaseKey.md rename to src/RedisEnterpriseCache/examples/New-AzRedisEnterpriseCacheKey.md index a10f2956d269..b700a64c1fad 100644 --- a/src/RedisEnterpriseCache/examples/New-AzRedisEnterpriseCacheDatabaseKey.md +++ b/src/RedisEnterpriseCache/examples/New-AzRedisEnterpriseCacheKey.md @@ -1,6 +1,6 @@ ### Example 1: Regenerate primary access key ```powershell -PS C:\> New-AzRedisEnterpriseCacheDatabaseKey -Name "MyCache" -ResourceGroupName "MyGroup" -KeyType "Primary" +PS C:\> New-AzRedisEnterpriseCacheKey -Name "MyCache" -ResourceGroupName "MyGroup" -KeyType "Primary" PrimaryKey SecondaryKey ---------- ------------ @@ -8,11 +8,11 @@ new-primary-key secondary-key ``` -This command regenerates the primary secret access key used for authenticating connections to the database of the Redis Enterprise Cache named MyCache. +This command regenerates the primary secret access key used for authenticating connections to the database of the Redis Enterprise cache named MyCache. ### Example 2: Regenerate secondary access key ```powershell -PS C:\> New-AzRedisEnterpriseCacheDatabaseKey -Name "MyCache" -ResourceGroupName "MyGroup" -KeyType "Secondary" +PS C:\> New-AzRedisEnterpriseCacheKey -Name "MyCache" -ResourceGroupName "MyGroup" -KeyType "Secondary" PrimaryKey SecondaryKey ---------- ------------ @@ -20,5 +20,5 @@ primary-key new-secondary-key ``` -This command regenerates the secondary secret access key used for authenticating connections to the database of the Redis Enterprise Cache named MyCache. +This command regenerates the secondary secret access key used for authenticating connections to the database of the Redis Enterprise cache named MyCache. diff --git a/src/RedisEnterpriseCache/examples/Remove-AzRedisEnterpriseCache.md b/src/RedisEnterpriseCache/examples/Remove-AzRedisEnterpriseCache.md index 70a0cbbb99dd..e3159b2210c1 100644 --- a/src/RedisEnterpriseCache/examples/Remove-AzRedisEnterpriseCache.md +++ b/src/RedisEnterpriseCache/examples/Remove-AzRedisEnterpriseCache.md @@ -1,15 +1,15 @@ -### Example 1: Remove a Redis Enterprise Cache and return the result +### Example 1: Remove a Redis Enterprise cache and return the result ```powershell PS C:\> Remove-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -PassThru True ``` -This command removes a Redis Enterprise Cache and displays whether the operation is successful. +This command removes a Redis Enterprise cache and displays whether the operation is successful. -### Example 2: Remove a Redis Enterprise Cache and do not display the result +### Example 2: Remove a Redis Enterprise cache and do not display the result ```powershell PS C:\> Remove-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" ``` -This command removes a Redis Enterprise Cache. Because the PassThru parameter is not specified, the result of the operation is not displayed. +This command removes a Redis Enterprise cache. Because the PassThru parameter is not specified, the result of the operation is not displayed. diff --git a/src/RedisEnterpriseCache/examples/Remove-AzRedisEnterpriseCacheDatabase.md b/src/RedisEnterpriseCache/examples/Remove-AzRedisEnterpriseCacheDatabase.md new file mode 100644 index 000000000000..06a4bfb27969 --- /dev/null +++ b/src/RedisEnterpriseCache/examples/Remove-AzRedisEnterpriseCacheDatabase.md @@ -0,0 +1,15 @@ +### Example 1: Remove a database in a Redis Enterprise cache and return the result +```powershell +PS C:\> Remove-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -PassThru +True +``` + +This command removes a database in a Redis Enterprise cache and displays whether the operation is successful. + +### Example 2: Remove a database in a Redis Enterprise cache and do not display the result +```powershell +PS C:\> Remove-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" +``` + +This command removes a database in a Redis Enterprise cache. Because the PassThru parameter is not specified, the result of the operation is not displayed. + diff --git a/src/RedisEnterpriseCache/examples/Update-AzRedisEnterpriseCache.md b/src/RedisEnterpriseCache/examples/Update-AzRedisEnterpriseCache.md index cc5d53e6e205..688551dcc2d4 100644 --- a/src/RedisEnterpriseCache/examples/Update-AzRedisEnterpriseCache.md +++ b/src/RedisEnterpriseCache/examples/Update-AzRedisEnterpriseCache.md @@ -1,6 +1,6 @@ -### Example 1: Update Redis Enterprise Cache +### Example 1: Update Redis Enterprise cache ```powershell -PS C:\> Update-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -MinimumTlsVersion "1.2" -Tag @{"tag" = "value"} +PS C:\> Update-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -MinimumTlsVersion "1.2" -Tag @{"tag1" = "value1"} Location Name Type Zone Database -------- ---- ---- ---- -------- @@ -8,4 +8,4 @@ West US MyCache Microsoft.Cache/redisEnterprise {default} ``` -This command updates the minimum TLS version and adds a tag to the Redis Enterprise Cache named MyCache. \ No newline at end of file +This command updates the minimum TLS version and adds a tag to the Redis Enterprise cache named MyCache. \ No newline at end of file diff --git a/src/RedisEnterpriseCache/examples/Update-AzRedisEnterpriseCacheDatabase.md b/src/RedisEnterpriseCache/examples/Update-AzRedisEnterpriseCacheDatabase.md index 2eb98f8f8bb6..95025f23f38b 100644 --- a/src/RedisEnterpriseCache/examples/Update-AzRedisEnterpriseCacheDatabase.md +++ b/src/RedisEnterpriseCache/examples/Update-AzRedisEnterpriseCacheDatabase.md @@ -1,4 +1,4 @@ -### Example 1: Update client protocol +### Example 1: Update client protocol property of a database ```powershell PS C:\> Update-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -ClientProtocol "Plaintext" @@ -8,9 +8,9 @@ default Microsoft.Cache/redisEnterprise/databases ``` -This command updates the client protocol of the database for the Redis Enterprise Cache named MyCache. +This command updates the client protocol of the database for the Redis Enterprise cache named MyCache. -### Example 2: Update client protocol and eviction policy +### Example 2: Update client protocol and eviction policy properties of a database ```powershell PS C:\> Update-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -ClientProtocol "Encrypted" -EvictionPolicy "NoEviction" @@ -20,5 +20,5 @@ default Microsoft.Cache/redisEnterprise/databases ``` -This command updates the client protocol and eviction policy of the database for the Redis Enterprise Cache named MyCache. +This command updates the client protocol and eviction policy of the database for the Redis Enterprise cache named MyCache. diff --git a/src/RedisEnterpriseCache/exports/Export-AzRedisEnterpriseCacheDatabase.ps1 b/src/RedisEnterpriseCache/exports/Export-AzRedisEnterpriseCache.ps1 similarity index 86% rename from src/RedisEnterpriseCache/exports/Export-AzRedisEnterpriseCacheDatabase.ps1 rename to src/RedisEnterpriseCache/exports/Export-AzRedisEnterpriseCache.ps1 index f5e10338a137..c64125f3d222 100644 --- a/src/RedisEnterpriseCache/exports/Export-AzRedisEnterpriseCacheDatabase.ps1 +++ b/src/RedisEnterpriseCache/exports/Export-AzRedisEnterpriseCache.ps1 @@ -19,15 +19,15 @@ Exports a database file from target database. .Description Exports a database file from target database. .Example -#[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Invalid SAS token")] -PS C:\> Export-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -SasUri "https://mystorageaccount.blob.core.windows.net/mycontainer?sp=rwdl&se=2020-09-02T11:17:15Z&sv=2019-12-12&sr=c&sig=Us%2FGshOUTKCSzTOi8dLtt1to2L32rcDr3Nn0WFFMdDM%3D;mystoragekey" +PS C:\> Export-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -SasUri "https://mystorageaccount.blob.core.windows.net/mycontainer?sp=signedPermissions&se=signedExpiry&sv=signedVersion&sr=signedResource&sig=signature;mystoragekey" .Outputs System.Boolean .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/export-azredisenterprisecachedatabase +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/export-azredisenterprisecache #> -function Export-AzRedisEnterpriseCacheDatabase { +function Export-AzRedisEnterpriseCache { +[Alias('Export-AzRedisEnterpriseCacheDatabase')] [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='ExportExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( @@ -35,27 +35,27 @@ param( [Alias('Name')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] - # The name of the RedisEnterprise cluster. + # The name of the Redis Enterprise cluster. ${ClusterName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [System.String] - # SAS Uri for the target directory to export to + # SAS URI for the target directory to export to ${SasUri}, [Parameter()] @@ -132,7 +132,7 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - ExportExpanded = 'Az.RedisEnterpriseCache.custom\Export-AzRedisEnterpriseCacheDatabase'; + ExportExpanded = 'Az.RedisEnterpriseCache.custom\Export-AzRedisEnterpriseCache'; } if (('ExportExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id diff --git a/src/RedisEnterpriseCache/exports/Get-AzRedisEnterpriseCache.ps1 b/src/RedisEnterpriseCache/exports/Get-AzRedisEnterpriseCache.ps1 index 64c05ced854a..0f1d95513799 100644 --- a/src/RedisEnterpriseCache/exports/Get-AzRedisEnterpriseCache.ps1 +++ b/src/RedisEnterpriseCache/exports/Get-AzRedisEnterpriseCache.ps1 @@ -15,9 +15,9 @@ <# .Synopsis -Gets information about a RedisEnterprise cluster and its associated database +Gets information about a Redis Enterprise cluster and its associated databases. .Description -Gets information about a RedisEnterprise cluster and its associated database +Gets information about a Redis Enterprise cluster and its associated databases. .Example PS C:\> Get-AzRedisEnterpriseCache -ResourceGroupName "MyGroup" -Name "MyCache" @@ -33,37 +33,48 @@ Location Name Type Zone Database East US MyCache1 Microsoft.Cache/redisEnterprise {default} East US MyCache2 Microsoft.Cache/redisEnterprise {1, 2, 3} {default} +.Example +PS C:\> Get-AzRedisEnterpriseCache + +Location Name Type Zone Database +-------- ---- ---- ---- -------- +East US MyCache1 Microsoft.Cache/redisEnterprise {default} +East US MyCache2 Microsoft.Cache/redisEnterprise {1, 2, 3} {default} +West US MyCache3 Microsoft.Cache/redisEnterprise {default} +Central US MyCache4 Microsoft.Cache/redisEnterprise {1, 2, 3} {default} + .Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/get-azredisenterprisecache +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/get-azredisenterprisecache #> function Get-AzRedisEnterpriseCache { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster])] -[CmdletBinding(PositionalBinding=$false)] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster])] +[CmdletBinding(DefaultParameterSetName='ListBySubscriptionId', PositionalBinding=$false)] param( - [Parameter(Mandatory)] + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='ListByResourceGroup', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, - [Parameter()] + [Parameter(ParameterSetName='Get', Mandatory)] [Alias('Name')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] - # The name of the RedisEnterprise cluster. + # The name of the Redis Enterprise cluster. ${ClusterName}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String[]] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -120,9 +131,11 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - __AllParameterSets = 'Az.RedisEnterpriseCache.custom\Get-AzRedisEnterpriseCache'; + ListBySubscriptionId = 'Az.RedisEnterpriseCache.custom\Get-AzRedisEnterpriseCache'; + ListByResourceGroup = 'Az.RedisEnterpriseCache.custom\Get-AzRedisEnterpriseCache'; + Get = 'Az.RedisEnterpriseCache.custom\Get-AzRedisEnterpriseCache'; } - if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('ListBySubscriptionId', 'ListByResourceGroup', 'Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/RedisEnterpriseCache/exports/Get-AzRedisEnterpriseCacheDatabase.ps1 b/src/RedisEnterpriseCache/exports/Get-AzRedisEnterpriseCacheDatabase.ps1 index 56ed3f9809bb..276d2e917188 100644 --- a/src/RedisEnterpriseCache/exports/Get-AzRedisEnterpriseCacheDatabase.ps1 +++ b/src/RedisEnterpriseCache/exports/Get-AzRedisEnterpriseCacheDatabase.ps1 @@ -15,9 +15,9 @@ <# .Synopsis -Gets information about a database in a RedisEnterprise cluster. +Gets information about a database in a Redis Enterprise cluster. .Description -Gets information about a database in a RedisEnterprise cluster. +Gets information about a database in a Redis Enterprise cluster. .Example PS C:\> Get-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" @@ -27,33 +27,33 @@ default Microsoft.Cache/redisEnterprise/databases .Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/get-azredisenterprisecachedatabase +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/get-azredisenterprisecachedatabase #> function Get-AzRedisEnterpriseCacheDatabase { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Alias('Name')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] - # The name of the RedisEnterprise cluster. + # The name of the Redis Enterprise cluster. ${ClusterName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter()] diff --git a/src/RedisEnterpriseCache/exports/Get-AzRedisEnterpriseCacheDatabaseKey.ps1 b/src/RedisEnterpriseCache/exports/Get-AzRedisEnterpriseCacheKey.ps1 similarity index 87% rename from src/RedisEnterpriseCache/exports/Get-AzRedisEnterpriseCacheDatabaseKey.ps1 rename to src/RedisEnterpriseCache/exports/Get-AzRedisEnterpriseCacheKey.ps1 index 31d2bea0a362..39f17d5c9a70 100644 --- a/src/RedisEnterpriseCache/exports/Get-AzRedisEnterpriseCacheDatabaseKey.ps1 +++ b/src/RedisEnterpriseCache/exports/Get-AzRedisEnterpriseCacheKey.ps1 @@ -15,11 +15,11 @@ <# .Synopsis -Retrieves the access keys for the RedisEnterprise database. +Retrieves all access keys for a Redis Enterprise database. .Description -Retrieves the access keys for the RedisEnterprise database. +Retrieves all access keys for a Redis Enterprise database. .Example -PS C:\> Get-AzRedisEnterpriseCacheDatabaseKey -Name "MyCache" -ResourceGroupName "MyGroup" +PS C:\> Get-AzRedisEnterpriseCacheKey -Name "MyCache" -ResourceGroupName "MyGroup" PrimaryKey SecondaryKey ---------- ------------ @@ -27,33 +27,34 @@ primary-key secondary-key .Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeys +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeys .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/get-azredisenterprisecachedatabasekey +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/get-azredisenterprisecachekey #> -function Get-AzRedisEnterpriseCacheDatabaseKey { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeys])] +function Get-AzRedisEnterpriseCacheKey { +[Alias('Get-AzRedisEnterpriseCacheDatabaseKey', 'Get-AzRedisEnterpriseCacheAccessKey')] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeys])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Alias('Name')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] - # The name of the RedisEnterprise cluster. + # The name of the Redis Enterprise cluster. ${ClusterName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter()] @@ -112,7 +113,7 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - List = 'Az.RedisEnterpriseCache.custom\Get-AzRedisEnterpriseCacheDatabaseKey'; + List = 'Az.RedisEnterpriseCache.custom\Get-AzRedisEnterpriseCacheKey'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id diff --git a/src/RedisEnterpriseCache/exports/Get-AzRedisEnterpriseCacheOperationStatus.ps1 b/src/RedisEnterpriseCache/exports/Get-AzRedisEnterpriseCacheOperationStatus.ps1 index bd68e6850600..c2adf72afddb 100644 --- a/src/RedisEnterpriseCache/exports/Get-AzRedisEnterpriseCacheOperationStatus.ps1 +++ b/src/RedisEnterpriseCache/exports/Get-AzRedisEnterpriseCacheOperationStatus.ps1 @@ -27,13 +27,13 @@ EndTime Name StartTime .Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatus +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatus .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/get-azredisenterprisecacheoperationstatus +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/get-azredisenterprisecacheoperationstatus #> function Get-AzRedisEnterpriseCacheOperationStatus { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatus])] -[CmdletBinding(DefaultParameterSetName='Operation', PositionalBinding=$false)] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatus])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] @@ -51,8 +51,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter()] @@ -111,9 +110,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Operation = 'Az.RedisEnterpriseCache.private\Get-AzRedisEnterpriseCacheOperationStatus_Operation'; + Get = 'Az.RedisEnterpriseCache.private\Get-AzRedisEnterpriseCacheOperationStatus_Get'; } - if (('Operation') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/RedisEnterpriseCache/exports/Import-AzRedisEnterpriseCacheDatabase.ps1 b/src/RedisEnterpriseCache/exports/Import-AzRedisEnterpriseCache.ps1 similarity index 80% rename from src/RedisEnterpriseCache/exports/Import-AzRedisEnterpriseCacheDatabase.ps1 rename to src/RedisEnterpriseCache/exports/Import-AzRedisEnterpriseCache.ps1 index 4a43cfef62a7..0f5908047507 100644 --- a/src/RedisEnterpriseCache/exports/Import-AzRedisEnterpriseCacheDatabase.ps1 +++ b/src/RedisEnterpriseCache/exports/Import-AzRedisEnterpriseCache.ps1 @@ -19,18 +19,15 @@ Imports a database file to target database. .Description Imports a database file to target database. .Example -#[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Invalid SAS token")] -PS C:\> Import-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -SasUri "https://mystorageaccount.blob.core.windows.net/mycontainer/myfilename?sp=rwdl&se=2020-09-02T11:17:15Z&sv=2019-12-12&sr=c&sig=Us%2FGshOUTKCSzTOi8dLtt1to2L32rcDr3Nn0WFFMdDM%3D;mystoragekey" -.Example -#[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Invalid SAS token")] -PS C:\> Import-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -SasUri "https://mystorageaccount.blob.core.windows.net/mycontainer/bk20201130-223654-1-db-1_of_1-2-0-16383.rdb.gz?sp=rwdl&se=2020-09-02T11:17:15Z&sv=2019-12-12&sr=c&sig=Us%2FGshOUTKCSzTOi8dLtt1to2L32rcDr3Nn0WFFMdDM%3D;mystoragekey" +PS C:\> Import-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -SasUri "https://mystorageaccount.blob.core.windows.net/mycontainer/myfilename?sp=signedPermissions&se=signedExpiry&sv=signedVersion&sr=signedResource&sig=signature;mystoragekey" .Outputs System.Boolean .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/import-azredisenterprisecachedatabase +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/import-azredisenterprisecache #> -function Import-AzRedisEnterpriseCacheDatabase { +function Import-AzRedisEnterpriseCache { +[Alias('Import-AzRedisEnterpriseCacheDatabase')] [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='ImportExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( @@ -38,27 +35,27 @@ param( [Alias('Name')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] - # The name of the RedisEnterprise cluster. + # The name of the Redis Enterprise cluster. ${ClusterName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [System.String] - # SAS Uri for the target blob to import from + # SAS URI for the target blob to import from ${SasUri}, [Parameter()] @@ -135,7 +132,7 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - ImportExpanded = 'Az.RedisEnterpriseCache.custom\Import-AzRedisEnterpriseCacheDatabase'; + ImportExpanded = 'Az.RedisEnterpriseCache.custom\Import-AzRedisEnterpriseCache'; } if (('ImportExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id diff --git a/src/RedisEnterpriseCache/exports/New-AzRedisEnterpriseCache.ps1 b/src/RedisEnterpriseCache/exports/New-AzRedisEnterpriseCache.ps1 index 8a51d22d78fb..5a6f0ff529f6 100644 --- a/src/RedisEnterpriseCache/exports/New-AzRedisEnterpriseCache.ps1 +++ b/src/RedisEnterpriseCache/exports/New-AzRedisEnterpriseCache.ps1 @@ -15,9 +15,9 @@ <# .Synopsis -Creates a Redis Enterpise cache cluster and an associated database +Creates a Redis Enterprise cache. .Description -Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster and an associated database named 'default' +Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster with an associated database. .Example PS C:\> New-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -Location "West US" -Sku "Enterprise_E10" @@ -26,55 +26,62 @@ Location Name Type Zone Database West US MyCache Microsoft.Cache/redisEnterprise {default} .Example -PS C:\> New-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -Location "East US" -Sku "Enterprise_E20" -Capacity 4 -Zone "1","2","3" -Module "{name:RedisBloom, args:`"ERROR_RATE 0.00 INITIAL_SIZE 400`"}","{name:RedisTimeSeries, args:`"RETENTION_POLICY 20`"}","{name:RediSearch}" -ClientProtocol "Plaintext" -EvictionPolicy "NoEviction" -ClusteringPolicy "EnterpriseCluster" -Tag @{"tag" = "value"} +PS C:\> New-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -Location "East US" -Sku "Enterprise_E20" -Capacity 4 -MinimumTlsVersion "1.2" -Zone "1","2","3" -Tag @{"tag1" = "value1"} -Module "{name:RedisBloom, args:`"ERROR_RATE 0.00 INITIAL_SIZE 400`"}","{name:RedisTimeSeries, args:`"RETENTION_POLICY 20`"}","{name:RediSearch}" -ClientProtocol "Plaintext" -EvictionPolicy "NoEviction" -ClusteringPolicy "EnterpriseCluster" -AofPersistenceEnabled -AofPersistenceFrequency "1s" Location Name Type Zone Database -------- ---- ---- ---- -------- East US MyCache Microsoft.Cache/redisEnterprise {1, 2, 3} {default} +.Example +PS C:\> New-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -Location "East US" -Sku "EnterpriseFlash_F300" -NoDatabase + +Location Name Type Zone Database +-------- ---- ---- ---- -------- +East US MyCache Microsoft.Cache/redisEnterprise {} + .Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -MODULE : Optional set of redis modules to enable in this database - modules can only be added at creation time. +MODULE : Optional set of redis modules to enable in this database - modules can only be added at create time. Name : The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries' [Arg ]: Configuration options for the module, e.g. 'ERROR_RATE 0.00 INITIAL_SIZE 400'. .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/new-azredisenterprisecache +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/new-azredisenterprisecache #> function New-AzRedisEnterpriseCache { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster])] -[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster])] +[CmdletBinding(DefaultParameterSetName='CreateClusterWithDatabase', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Alias('Name')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] - # The name of the RedisEnterprise cluster. + # The name of the Redis Enterprise cluster. ${ClusterName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [System.String] - # The geo-location where the resource lives + # The geo-location where the resource lives. ${Location}, [Parameter(Mandatory)] @@ -82,76 +89,109 @@ param( [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName])] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName] - # The type of RedisEnterprise cluster to deploy. - # Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.) + # The type of Redis Enterprise cluster to deploy. + # Allowed values: Enterprise_E10, Enterprise_E20, Enterprise_E50, Enterprise_E100, EnterpriseFlash_F300, EnterpriseFlash_F700, EnterpriseFlash_F1500 ${Sku}, [Parameter()] [Alias('SkuCapacity')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [System.Int32] - # The size of the RedisEnterprise cluster. - # Defaults to 2 or 3 depending on SKU. - # Valid values are (2, 4, 6, ...) for Enterprise SKUs and (3, 9, 15, ...) for Flash SKUs. + # The size of the Redis Enterprise cluster - defaults to 2 or 3 depending on SKU. + # Allowed values are (2, 4, 6, ...) for Enterprise SKUs and (3, 9, 15, ...) for Flash SKUs. ${Capacity}, [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion])] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [System.String] - # The minimum TLS version for the cluster to support, e.g. - # 1.2 + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion] + # The minimum TLS version for the cluster to support - default is 1.2 + # Allowed values: 1.0, 1.1, 1.2 ${MinimumTlsVersion}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [System.String[]] - # The zones where this cluster will be deployed. + # The Availability Zones where this cluster will be deployed. ${Zone}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule[]] - # Optional set of redis modules to enable in this database - modules can only be added at creation time. + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceTags]))] + [System.Collections.Hashtable] + # Cluster resource tags. + ${Tag}, + + [Parameter(ParameterSetName='CreateClusterWithDatabase')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule[]] + # Optional set of redis modules to enable in this database - modules can only be added at create time. # To construct, see NOTES section for MODULE properties and create a hash table. ${Module}, - [Parameter()] + [Parameter(ParameterSetName='CreateClusterWithDatabase')] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol])] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol] - # Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. - # Default is TLS-encrypted. + # Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols - default is Encrypted + # Allowed values: Encrypted, Plaintext ${ClientProtocol}, - [Parameter()] + [Parameter(ParameterSetName='CreateClusterWithDatabase')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [System.Int32] - # TCP port of the database endpoint. + # TCP port of the database endpoint - defaults to an available port # Specified at create time. - # Defaults to an available port. ${Port}, - [Parameter()] + [Parameter(ParameterSetName='CreateClusterWithDatabase')] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy])] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy] - # Redis eviction policy - default is VolatileLRU. + # Redis eviction policy - default is VolatileLRU + # Allowed values: AllKeysLFU, AllKeysLRU, AllKeysRandom, VolatileLRU, VolatileLFU, VolatileTTL, VolatileRandom, NoEviction ${EvictionPolicy}, - [Parameter()] + [Parameter(ParameterSetName='CreateClusterWithDatabase')] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy])] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy] - # Clustering policy - default is OSSCluster. + # Clustering policy - default is OSSCluster # Specified at create time. + # Allowed values: EnterpriseCluster, OSSCluster ${ClusteringPolicy}, - [Parameter()] + [Parameter(ParameterSetName='CreateClusterWithDatabase')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, + [System.Management.Automation.SwitchParameter] + # [Preview] Sets whether AOF persistence is enabled. + # After enabling AOF persistence, you will be unable to disable it. + # Support for disabling AOF persistence after enabling will be added at a later date. + ${AofPersistenceEnabled}, + + [Parameter(ParameterSetName='CreateClusterWithDatabase')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency])] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency] + # [Preview] Sets the frequency at which data is written to disk if AOF persistence is enabled. + # Allowed values: 1s, always + ${AofPersistenceFrequency}, + + [Parameter(ParameterSetName='CreateClusterWithDatabase')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [System.Management.Automation.SwitchParameter] + # [Preview] Sets whether RDB persistence is enabled. + # After enabling RDB persistence, you will be unable to disable it. + # Support for disabling RDB persistence after enabling will be added at a later date. + ${RdbPersistenceEnabled}, + + [Parameter(ParameterSetName='CreateClusterWithDatabase')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency])] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency] + # [Preview] Sets the frequency at which a snapshot of the database is created if RDB persistence is enabled. + # Allowed values: 1h, 6h, 12h + ${RdbPersistenceFrequency}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -210,7 +250,14 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} + ${ProxyUseDefaultCredentials}, + + [Parameter(ParameterSetName='CreateClusterOnly', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Advanced - Do not automatically create a default database. + # Warning: The cache will not be usable until you create a database. + ${NoDatabase} ) begin { @@ -221,9 +268,10 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - __AllParameterSets = 'Az.RedisEnterpriseCache.custom\New-AzRedisEnterpriseCache'; + CreateClusterWithDatabase = 'Az.RedisEnterpriseCache.custom\New-AzRedisEnterpriseCache'; + CreateClusterOnly = 'Az.RedisEnterpriseCache.custom\New-AzRedisEnterpriseCache'; } - if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('CreateClusterWithDatabase', 'CreateClusterOnly') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/RedisEnterpriseCache/exports/New-AzRedisEnterpriseCacheDatabase.ps1 b/src/RedisEnterpriseCache/exports/New-AzRedisEnterpriseCacheDatabase.ps1 new file mode 100644 index 000000000000..def3e6c0dc4d --- /dev/null +++ b/src/RedisEnterpriseCache/exports/New-AzRedisEnterpriseCacheDatabase.ps1 @@ -0,0 +1,235 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates a database for a Redis Enterprise cache. +.Description +Creates a database for a Redis Enterprise cache. +.Example +PS C:\> New-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -Module "{name:RedisBloom, args:`"ERROR_RATE 0.00 INITIAL_SIZE 400`"}","{name:RedisTimeSeries, args:`"RETENTION_POLICY 20`"}","{name:RediSearch}" -ClientProtocol "Plaintext" -EvictionPolicy "NoEviction" -ClusteringPolicy "EnterpriseCluster" -Port 10000 -AofPersistenceEnabled -AofPersistenceFrequency "always" + +Location Name Type Zone Database +-------- ---- ---- ---- -------- +West US MyCache Microsoft.Cache/redisEnterprise {default} + + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +MODULE : Optional set of redis modules to enable in this database - modules can only be added at create time. + Name : The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries' + [Arg ]: Configuration options for the module, e.g. 'ERROR_RATE 0.00 INITIAL_SIZE 400'. +.Link +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/new-azredisenterprisecachedatabase +#> +function New-AzRedisEnterpriseCacheDatabase { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase])] +[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('Name')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] + [System.String] + # The name of the Redis Enterprise cluster. + ${ClusterName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule[]] + # Optional set of redis modules to enable in this database - modules can only be added at create time. + # To construct, see NOTES section for MODULE properties and create a hash table. + ${Module}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol])] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol] + # Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols - default is Encrypted + # Allowed values: Encrypted, Plaintext + ${ClientProtocol}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [System.Int32] + # TCP port of the database endpoint - defaults to an available port + # Specified at create time. + ${Port}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy])] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy] + # Redis eviction policy - default is VolatileLRU + # Allowed values: AllKeysLFU, AllKeysLRU, AllKeysRandom, VolatileLRU, VolatileLFU, VolatileTTL, VolatileRandom, NoEviction + ${EvictionPolicy}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy])] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy] + # Clustering policy - default is OSSCluster + # Specified at create time. + # Allowed values: EnterpriseCluster, OSSCluster + ${ClusteringPolicy}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [System.Management.Automation.SwitchParameter] + # [Preview] Sets whether AOF persistence is enabled. + # After enabling AOF persistence, you will be unable to disable it. + # Support for disabling AOF persistence after enabling will be added at a later date. + ${AofPersistenceEnabled}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency])] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency] + # [Preview] Sets the frequency at which data is written to disk if AOF persistence is enabled. + # Allowed values: 1s, always + ${AofPersistenceFrequency}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [System.Management.Automation.SwitchParameter] + # [Preview] Sets whether RDB persistence is enabled. + # After enabling RDB persistence, you will be unable to disable it. + # Support for disabling RDB persistence after enabling will be added at a later date. + ${RdbPersistenceEnabled}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency])] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency] + # [Preview] Sets the frequency at which a snapshot of the database is created if RDB persistence is enabled. + # Allowed values: 1h, 6h, 12h + ${RdbPersistenceFrequency}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + __AllParameterSets = 'Az.RedisEnterpriseCache.custom\New-AzRedisEnterpriseCacheDatabase'; + } + if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/RedisEnterpriseCache/exports/New-AzRedisEnterpriseCacheDatabaseKey.ps1 b/src/RedisEnterpriseCache/exports/New-AzRedisEnterpriseCacheKey.ps1 similarity index 87% rename from src/RedisEnterpriseCache/exports/New-AzRedisEnterpriseCacheDatabaseKey.ps1 rename to src/RedisEnterpriseCache/exports/New-AzRedisEnterpriseCacheKey.ps1 index 4dbce80962d6..ef1cb61eeb55 100644 --- a/src/RedisEnterpriseCache/exports/New-AzRedisEnterpriseCacheDatabaseKey.ps1 +++ b/src/RedisEnterpriseCache/exports/New-AzRedisEnterpriseCacheKey.ps1 @@ -15,18 +15,18 @@ <# .Synopsis -Regenerates the RedisEnterprise database's access keys. +Regenerates an access key for a Redis Enterprise database. .Description -Regenerates the RedisEnterprise database's access keys. +Regenerates an access key for a Redis Enterprise database. .Example -PS C:\> New-AzRedisEnterpriseCacheDatabaseKey -Name "MyCache" -ResourceGroupName "MyGroup" -KeyType "Primary" +PS C:\> New-AzRedisEnterpriseCacheKey -Name "MyCache" -ResourceGroupName "MyGroup" -KeyType "Primary" PrimaryKey SecondaryKey ---------- ------------ new-primary-key secondary-key .Example -PS C:\> New-AzRedisEnterpriseCacheDatabaseKey -Name "MyCache" -ResourceGroupName "MyGroup" -KeyType "Secondary" +PS C:\> New-AzRedisEnterpriseCacheKey -Name "MyCache" -ResourceGroupName "MyGroup" -KeyType "Secondary" PrimaryKey SecondaryKey ---------- ------------ @@ -34,33 +34,34 @@ primary-key new-secondary-key .Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeys +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeys .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/new-azredisenterprisecachedatabasekey +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/new-azredisenterprisecachekey #> -function New-AzRedisEnterpriseCacheDatabaseKey { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeys])] +function New-AzRedisEnterpriseCacheKey { +[Alias('New-AzRedisEnterpriseCacheDatabaseKey', 'New-AzRedisEnterpriseCacheAccessKey')] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeys])] [CmdletBinding(DefaultParameterSetName='RegenerateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Alias('Name')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] - # The name of the RedisEnterprise cluster. + # The name of the Redis Enterprise cluster. ${ClusterName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter(Mandatory)] @@ -138,7 +139,7 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - RegenerateExpanded = 'Az.RedisEnterpriseCache.custom\New-AzRedisEnterpriseCacheDatabaseKey'; + RegenerateExpanded = 'Az.RedisEnterpriseCache.custom\New-AzRedisEnterpriseCacheKey'; } if (('RegenerateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id diff --git a/src/RedisEnterpriseCache/exports/ProxyCmdletDefinitions.ps1 b/src/RedisEnterpriseCache/exports/ProxyCmdletDefinitions.ps1 index a28bb02c7ea7..835b186322a5 100644 --- a/src/RedisEnterpriseCache/exports/ProxyCmdletDefinitions.ps1 +++ b/src/RedisEnterpriseCache/exports/ProxyCmdletDefinitions.ps1 @@ -27,13 +27,13 @@ EndTime Name StartTime .Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatus +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatus .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/get-azredisenterprisecacheoperationstatus +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/get-azredisenterprisecacheoperationstatus #> function Get-AzRedisEnterpriseCacheOperationStatus { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatus])] -[CmdletBinding(DefaultParameterSetName='Operation', PositionalBinding=$false)] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatus])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] @@ -51,8 +51,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter()] @@ -111,9 +110,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Operation = 'Az.RedisEnterpriseCache.private\Get-AzRedisEnterpriseCacheOperationStatus_Operation'; + Get = 'Az.RedisEnterpriseCache.private\Get-AzRedisEnterpriseCacheOperationStatus_Get'; } - if (('Operation') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -183,10 +182,10 @@ INPUTOBJECT : Identity Parameter [Location ]: The region the operation is in. [OperationId ]: The operation's unique identifier. [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource - [ResourceGroupName ]: The name of the resource group. - [SubscriptionId ]: Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/remove-azredisenterprisecache +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/remove-azredisenterprisecache #> function Remove-AzRedisEnterpriseCache { [OutputType([System.Boolean])] @@ -203,14 +202,14 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Delete')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] @@ -346,7 +345,7 @@ Updates an existing RedisEnterprise cluster .Description Updates an existing RedisEnterprise cluster .Example -PS C:\> Update-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -MinimumTlsVersion "1.2" -Tag @{"tag" = "value"} +PS C:\> Update-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -MinimumTlsVersion "1.2" -Tag @{"tag1" = "value1"} Location Name Type Zone Database -------- ---- ---- ---- -------- @@ -356,7 +355,7 @@ West US MyCache Microsoft.Cache/redisEnterprise {default} .Inputs Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.IRedisEnterpriseCacheIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster .Notes COMPLEX PARAMETER PROPERTIES @@ -369,13 +368,13 @@ INPUTOBJECT : Identity Parameter [Location ]: The region the operation is in. [OperationId ]: The operation's unique identifier. [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource - [ResourceGroupName ]: The name of the resource group. - [SubscriptionId ]: Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/update-azredisenterprisecache +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/update-azredisenterprisecache #> function Update-AzRedisEnterpriseCache { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -389,14 +388,14 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -416,8 +415,9 @@ param( ${Capacity}, [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion])] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [System.String] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion] # The minimum TLS version for the cluster to support, e.g. # '1.2' ${MinimumTlsVersion}, @@ -433,7 +433,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -558,15 +558,15 @@ Exports a database file from target database. .Description Exports a database file from target database. .Example -#[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Invalid SAS token")] -PS C:\> Export-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -SasUri "https://mystorageaccount.blob.core.windows.net/mycontainer?sp=rwdl&se=2020-09-02T11:17:15Z&sv=2019-12-12&sr=c&sig=Us%2FGshOUTKCSzTOi8dLtt1to2L32rcDr3Nn0WFFMdDM%3D;mystoragekey" +PS C:\> Export-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -SasUri "https://mystorageaccount.blob.core.windows.net/mycontainer?sp=signedPermissions&se=signedExpiry&sv=signedVersion&sr=signedResource&sig=signature;mystoragekey" .Outputs System.Boolean .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/export-azredisenterprisecachedatabase +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/export-azredisenterprisecache #> -function Export-AzRedisEnterpriseCacheDatabase { +function Export-AzRedisEnterpriseCache { +[Alias('Export-AzRedisEnterpriseCacheDatabase')] [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='ExportExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( @@ -574,27 +574,27 @@ param( [Alias('Name')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] - # The name of the RedisEnterprise cluster. + # The name of the Redis Enterprise cluster. ${ClusterName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [System.String] - # SAS Uri for the target directory to export to + # SAS URI for the target directory to export to ${SasUri}, [Parameter()] @@ -671,7 +671,7 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - ExportExpanded = 'Az.RedisEnterpriseCache.custom\Export-AzRedisEnterpriseCacheDatabase'; + ExportExpanded = 'Az.RedisEnterpriseCache.custom\Export-AzRedisEnterpriseCache'; } if (('ExportExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id @@ -718,9 +718,9 @@ end { <# .Synopsis -Gets information about a RedisEnterprise cluster and its associated database +Gets information about a Redis Enterprise cluster and its associated databases. .Description -Gets information about a RedisEnterprise cluster and its associated database +Gets information about a Redis Enterprise cluster and its associated databases. .Example PS C:\> Get-AzRedisEnterpriseCache -ResourceGroupName "MyGroup" -Name "MyCache" @@ -736,37 +736,48 @@ Location Name Type Zone Database East US MyCache1 Microsoft.Cache/redisEnterprise {default} East US MyCache2 Microsoft.Cache/redisEnterprise {1, 2, 3} {default} +.Example +PS C:\> Get-AzRedisEnterpriseCache + +Location Name Type Zone Database +-------- ---- ---- ---- -------- +East US MyCache1 Microsoft.Cache/redisEnterprise {default} +East US MyCache2 Microsoft.Cache/redisEnterprise {1, 2, 3} {default} +West US MyCache3 Microsoft.Cache/redisEnterprise {default} +Central US MyCache4 Microsoft.Cache/redisEnterprise {1, 2, 3} {default} + .Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/get-azredisenterprisecache +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/get-azredisenterprisecache #> function Get-AzRedisEnterpriseCache { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster])] -[CmdletBinding(PositionalBinding=$false)] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster])] +[CmdletBinding(DefaultParameterSetName='ListBySubscriptionId', PositionalBinding=$false)] param( - [Parameter(Mandatory)] + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='ListByResourceGroup', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, - [Parameter()] + [Parameter(ParameterSetName='Get', Mandatory)] [Alias('Name')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] - # The name of the RedisEnterprise cluster. + # The name of the Redis Enterprise cluster. ${ClusterName}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String[]] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -823,9 +834,11 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - __AllParameterSets = 'Az.RedisEnterpriseCache.custom\Get-AzRedisEnterpriseCache'; + ListBySubscriptionId = 'Az.RedisEnterpriseCache.custom\Get-AzRedisEnterpriseCache'; + ListByResourceGroup = 'Az.RedisEnterpriseCache.custom\Get-AzRedisEnterpriseCache'; + Get = 'Az.RedisEnterpriseCache.custom\Get-AzRedisEnterpriseCache'; } - if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('ListBySubscriptionId', 'ListByResourceGroup', 'Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -870,9 +883,9 @@ end { <# .Synopsis -Gets information about a database in a RedisEnterprise cluster. +Gets information about a database in a Redis Enterprise cluster. .Description -Gets information about a database in a RedisEnterprise cluster. +Gets information about a database in a Redis Enterprise cluster. .Example PS C:\> Get-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" @@ -882,33 +895,33 @@ default Microsoft.Cache/redisEnterprise/databases .Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/get-azredisenterprisecachedatabase +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/get-azredisenterprisecachedatabase #> function Get-AzRedisEnterpriseCacheDatabase { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Alias('Name')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] - # The name of the RedisEnterprise cluster. + # The name of the Redis Enterprise cluster. ${ClusterName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter()] @@ -1014,11 +1027,11 @@ end { <# .Synopsis -Retrieves the access keys for the RedisEnterprise database. +Retrieves all access keys for a Redis Enterprise database. .Description -Retrieves the access keys for the RedisEnterprise database. +Retrieves all access keys for a Redis Enterprise database. .Example -PS C:\> Get-AzRedisEnterpriseCacheDatabaseKey -Name "MyCache" -ResourceGroupName "MyGroup" +PS C:\> Get-AzRedisEnterpriseCacheKey -Name "MyCache" -ResourceGroupName "MyGroup" PrimaryKey SecondaryKey ---------- ------------ @@ -1026,33 +1039,34 @@ primary-key secondary-key .Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeys +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeys .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/get-azredisenterprisecachedatabasekey +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/get-azredisenterprisecachekey #> -function Get-AzRedisEnterpriseCacheDatabaseKey { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeys])] +function Get-AzRedisEnterpriseCacheKey { +[Alias('Get-AzRedisEnterpriseCacheDatabaseKey', 'Get-AzRedisEnterpriseCacheAccessKey')] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeys])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Alias('Name')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] - # The name of the RedisEnterprise cluster. + # The name of the Redis Enterprise cluster. ${ClusterName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter()] @@ -1111,7 +1125,7 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - List = 'Az.RedisEnterpriseCache.custom\Get-AzRedisEnterpriseCacheDatabaseKey'; + List = 'Az.RedisEnterpriseCache.custom\Get-AzRedisEnterpriseCacheKey'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id @@ -1162,18 +1176,15 @@ Imports a database file to target database. .Description Imports a database file to target database. .Example -#[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Invalid SAS token")] -PS C:\> Import-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -SasUri "https://mystorageaccount.blob.core.windows.net/mycontainer/myfilename?sp=rwdl&se=2020-09-02T11:17:15Z&sv=2019-12-12&sr=c&sig=Us%2FGshOUTKCSzTOi8dLtt1to2L32rcDr3Nn0WFFMdDM%3D;mystoragekey" -.Example -#[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Invalid SAS token")] -PS C:\> Import-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -SasUri "https://mystorageaccount.blob.core.windows.net/mycontainer/bk20201130-223654-1-db-1_of_1-2-0-16383.rdb.gz?sp=rwdl&se=2020-09-02T11:17:15Z&sv=2019-12-12&sr=c&sig=Us%2FGshOUTKCSzTOi8dLtt1to2L32rcDr3Nn0WFFMdDM%3D;mystoragekey" +PS C:\> Import-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -SasUri "https://mystorageaccount.blob.core.windows.net/mycontainer/myfilename?sp=signedPermissions&se=signedExpiry&sv=signedVersion&sr=signedResource&sig=signature;mystoragekey" .Outputs System.Boolean .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/import-azredisenterprisecachedatabase +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/import-azredisenterprisecache #> -function Import-AzRedisEnterpriseCacheDatabase { +function Import-AzRedisEnterpriseCache { +[Alias('Import-AzRedisEnterpriseCacheDatabase')] [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='ImportExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( @@ -1181,27 +1192,27 @@ param( [Alias('Name')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] - # The name of the RedisEnterprise cluster. + # The name of the Redis Enterprise cluster. ${ClusterName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [System.String] - # SAS Uri for the target blob to import from + # SAS URI for the target blob to import from ${SasUri}, [Parameter()] @@ -1278,7 +1289,7 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - ImportExpanded = 'Az.RedisEnterpriseCache.custom\Import-AzRedisEnterpriseCacheDatabase'; + ImportExpanded = 'Az.RedisEnterpriseCache.custom\Import-AzRedisEnterpriseCache'; } if (('ImportExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id @@ -1325,9 +1336,9 @@ end { <# .Synopsis -Creates a Redis Enterpise cache cluster and an associated database +Creates a Redis Enterprise cache. .Description -Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster and an associated database named 'default' +Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster with an associated database. .Example PS C:\> New-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -Location "West US" -Sku "Enterprise_E10" @@ -1336,55 +1347,62 @@ Location Name Type Zone Database West US MyCache Microsoft.Cache/redisEnterprise {default} .Example -PS C:\> New-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -Location "East US" -Sku "Enterprise_E20" -Capacity 4 -Zone "1","2","3" -Module "{name:RedisBloom, args:`"ERROR_RATE 0.00 INITIAL_SIZE 400`"}","{name:RedisTimeSeries, args:`"RETENTION_POLICY 20`"}","{name:RediSearch}" -ClientProtocol "Plaintext" -EvictionPolicy "NoEviction" -ClusteringPolicy "EnterpriseCluster" -Tag @{"tag" = "value"} +PS C:\> New-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -Location "East US" -Sku "Enterprise_E20" -Capacity 4 -MinimumTlsVersion "1.2" -Zone "1","2","3" -Tag @{"tag1" = "value1"} -Module "{name:RedisBloom, args:`"ERROR_RATE 0.00 INITIAL_SIZE 400`"}","{name:RedisTimeSeries, args:`"RETENTION_POLICY 20`"}","{name:RediSearch}" -ClientProtocol "Plaintext" -EvictionPolicy "NoEviction" -ClusteringPolicy "EnterpriseCluster" -AofPersistenceEnabled -AofPersistenceFrequency "1s" Location Name Type Zone Database -------- ---- ---- ---- -------- East US MyCache Microsoft.Cache/redisEnterprise {1, 2, 3} {default} +.Example +PS C:\> New-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -Location "East US" -Sku "EnterpriseFlash_F300" -NoDatabase + +Location Name Type Zone Database +-------- ---- ---- ---- -------- +East US MyCache Microsoft.Cache/redisEnterprise {} + .Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -MODULE : Optional set of redis modules to enable in this database - modules can only be added at creation time. +MODULE : Optional set of redis modules to enable in this database - modules can only be added at create time. Name : The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries' [Arg ]: Configuration options for the module, e.g. 'ERROR_RATE 0.00 INITIAL_SIZE 400'. .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/new-azredisenterprisecache +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/new-azredisenterprisecache #> function New-AzRedisEnterpriseCache { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster])] -[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster])] +[CmdletBinding(DefaultParameterSetName='CreateClusterWithDatabase', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Alias('Name')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] - # The name of the RedisEnterprise cluster. + # The name of the Redis Enterprise cluster. ${ClusterName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [System.String] - # The geo-location where the resource lives + # The geo-location where the resource lives. ${Location}, [Parameter(Mandatory)] @@ -1392,36 +1410,286 @@ param( [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName])] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName] - # The type of RedisEnterprise cluster to deploy. - # Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.) + # The type of Redis Enterprise cluster to deploy. + # Allowed values: Enterprise_E10, Enterprise_E20, Enterprise_E50, Enterprise_E100, EnterpriseFlash_F300, EnterpriseFlash_F700, EnterpriseFlash_F1500 ${Sku}, [Parameter()] [Alias('SkuCapacity')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [System.Int32] - # The size of the RedisEnterprise cluster. - # Defaults to 2 or 3 depending on SKU. - # Valid values are (2, 4, 6, ...) for Enterprise SKUs and (3, 9, 15, ...) for Flash SKUs. + # The size of the Redis Enterprise cluster - defaults to 2 or 3 depending on SKU. + # Allowed values are (2, 4, 6, ...) for Enterprise SKUs and (3, 9, 15, ...) for Flash SKUs. ${Capacity}, [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion])] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [System.String] - # The minimum TLS version for the cluster to support, e.g. - # 1.2 + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion] + # The minimum TLS version for the cluster to support - default is 1.2 + # Allowed values: 1.0, 1.1, 1.2 ${MinimumTlsVersion}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [System.String[]] - # The zones where this cluster will be deployed. + # The Availability Zones where this cluster will be deployed. ${Zone}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule[]] - # Optional set of redis modules to enable in this database - modules can only be added at creation time. + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceTags]))] + [System.Collections.Hashtable] + # Cluster resource tags. + ${Tag}, + + [Parameter(ParameterSetName='CreateClusterWithDatabase')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule[]] + # Optional set of redis modules to enable in this database - modules can only be added at create time. + # To construct, see NOTES section for MODULE properties and create a hash table. + ${Module}, + + [Parameter(ParameterSetName='CreateClusterWithDatabase')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol])] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol] + # Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols - default is Encrypted + # Allowed values: Encrypted, Plaintext + ${ClientProtocol}, + + [Parameter(ParameterSetName='CreateClusterWithDatabase')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [System.Int32] + # TCP port of the database endpoint - defaults to an available port + # Specified at create time. + ${Port}, + + [Parameter(ParameterSetName='CreateClusterWithDatabase')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy])] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy] + # Redis eviction policy - default is VolatileLRU + # Allowed values: AllKeysLFU, AllKeysLRU, AllKeysRandom, VolatileLRU, VolatileLFU, VolatileTTL, VolatileRandom, NoEviction + ${EvictionPolicy}, + + [Parameter(ParameterSetName='CreateClusterWithDatabase')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy])] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy] + # Clustering policy - default is OSSCluster + # Specified at create time. + # Allowed values: EnterpriseCluster, OSSCluster + ${ClusteringPolicy}, + + [Parameter(ParameterSetName='CreateClusterWithDatabase')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [System.Management.Automation.SwitchParameter] + # [Preview] Sets whether AOF persistence is enabled. + # After enabling AOF persistence, you will be unable to disable it. + # Support for disabling AOF persistence after enabling will be added at a later date. + ${AofPersistenceEnabled}, + + [Parameter(ParameterSetName='CreateClusterWithDatabase')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency])] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency] + # [Preview] Sets the frequency at which data is written to disk if AOF persistence is enabled. + # Allowed values: 1s, always + ${AofPersistenceFrequency}, + + [Parameter(ParameterSetName='CreateClusterWithDatabase')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [System.Management.Automation.SwitchParameter] + # [Preview] Sets whether RDB persistence is enabled. + # After enabling RDB persistence, you will be unable to disable it. + # Support for disabling RDB persistence after enabling will be added at a later date. + ${RdbPersistenceEnabled}, + + [Parameter(ParameterSetName='CreateClusterWithDatabase')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency])] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency] + # [Preview] Sets the frequency at which a snapshot of the database is created if RDB persistence is enabled. + # Allowed values: 1h, 6h, 12h + ${RdbPersistenceFrequency}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials}, + + [Parameter(ParameterSetName='CreateClusterOnly', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Advanced - Do not automatically create a default database. + # Warning: The cache will not be usable until you create a database. + ${NoDatabase} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + CreateClusterWithDatabase = 'Az.RedisEnterpriseCache.custom\New-AzRedisEnterpriseCache'; + CreateClusterOnly = 'Az.RedisEnterpriseCache.custom\New-AzRedisEnterpriseCache'; + } + if (('CreateClusterWithDatabase', 'CreateClusterOnly') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates a database for a Redis Enterprise cache. +.Description +Creates a database for a Redis Enterprise cache. +.Example +PS C:\> New-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -Module "{name:RedisBloom, args:`"ERROR_RATE 0.00 INITIAL_SIZE 400`"}","{name:RedisTimeSeries, args:`"RETENTION_POLICY 20`"}","{name:RediSearch}" -ClientProtocol "Plaintext" -EvictionPolicy "NoEviction" -ClusteringPolicy "EnterpriseCluster" -Port 10000 -AofPersistenceEnabled -AofPersistenceFrequency "always" + +Location Name Type Zone Database +-------- ---- ---- ---- -------- +West US MyCache Microsoft.Cache/redisEnterprise {default} + + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +MODULE : Optional set of redis modules to enable in this database - modules can only be added at create time. + Name : The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries' + [Arg ]: Configuration options for the module, e.g. 'ERROR_RATE 0.00 INITIAL_SIZE 400'. +.Link +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/new-azredisenterprisecachedatabase +#> +function New-AzRedisEnterpriseCacheDatabase { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase])] +[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('Name')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] + [System.String] + # The name of the Redis Enterprise cluster. + ${ClusterName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule[]] + # Optional set of redis modules to enable in this database - modules can only be added at create time. # To construct, see NOTES section for MODULE properties and create a hash table. ${Module}, @@ -1429,39 +1697,65 @@ param( [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol])] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol] - # Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. - # Default is TLS-encrypted. + # Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols - default is Encrypted + # Allowed values: Encrypted, Plaintext ${ClientProtocol}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [System.Int32] - # TCP port of the database endpoint. + # TCP port of the database endpoint - defaults to an available port # Specified at create time. - # Defaults to an available port. ${Port}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy])] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy] - # Redis eviction policy - default is VolatileLRU. + # Redis eviction policy - default is VolatileLRU + # Allowed values: AllKeysLFU, AllKeysLRU, AllKeysRandom, VolatileLRU, VolatileLFU, VolatileTTL, VolatileRandom, NoEviction ${EvictionPolicy}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy])] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy] - # Clustering policy - default is OSSCluster. + # Clustering policy - default is OSSCluster # Specified at create time. + # Allowed values: EnterpriseCluster, OSSCluster ${ClusteringPolicy}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, + [System.Management.Automation.SwitchParameter] + # [Preview] Sets whether AOF persistence is enabled. + # After enabling AOF persistence, you will be unable to disable it. + # Support for disabling AOF persistence after enabling will be added at a later date. + ${AofPersistenceEnabled}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency])] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency] + # [Preview] Sets the frequency at which data is written to disk if AOF persistence is enabled. + # Allowed values: 1s, always + ${AofPersistenceFrequency}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [System.Management.Automation.SwitchParameter] + # [Preview] Sets whether RDB persistence is enabled. + # After enabling RDB persistence, you will be unable to disable it. + # Support for disabling RDB persistence after enabling will be added at a later date. + ${RdbPersistenceEnabled}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency])] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency] + # [Preview] Sets the frequency at which a snapshot of the database is created if RDB persistence is enabled. + # Allowed values: 1h, 6h, 12h + ${RdbPersistenceFrequency}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -1531,7 +1825,7 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - __AllParameterSets = 'Az.RedisEnterpriseCache.custom\New-AzRedisEnterpriseCache'; + __AllParameterSets = 'Az.RedisEnterpriseCache.custom\New-AzRedisEnterpriseCacheDatabase'; } if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id @@ -1578,18 +1872,18 @@ end { <# .Synopsis -Regenerates the RedisEnterprise database's access keys. +Regenerates an access key for a Redis Enterprise database. .Description -Regenerates the RedisEnterprise database's access keys. +Regenerates an access key for a Redis Enterprise database. .Example -PS C:\> New-AzRedisEnterpriseCacheDatabaseKey -Name "MyCache" -ResourceGroupName "MyGroup" -KeyType "Primary" +PS C:\> New-AzRedisEnterpriseCacheKey -Name "MyCache" -ResourceGroupName "MyGroup" -KeyType "Primary" PrimaryKey SecondaryKey ---------- ------------ new-primary-key secondary-key .Example -PS C:\> New-AzRedisEnterpriseCacheDatabaseKey -Name "MyCache" -ResourceGroupName "MyGroup" -KeyType "Secondary" +PS C:\> New-AzRedisEnterpriseCacheKey -Name "MyCache" -ResourceGroupName "MyGroup" -KeyType "Secondary" PrimaryKey SecondaryKey ---------- ------------ @@ -1597,33 +1891,34 @@ primary-key new-secondary-key .Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeys +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeys .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/new-azredisenterprisecachedatabasekey +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/new-azredisenterprisecachekey #> -function New-AzRedisEnterpriseCacheDatabaseKey { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeys])] +function New-AzRedisEnterpriseCacheKey { +[Alias('New-AzRedisEnterpriseCacheDatabaseKey', 'New-AzRedisEnterpriseCacheAccessKey')] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeys])] [CmdletBinding(DefaultParameterSetName='RegenerateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Alias('Name')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] - # The name of the RedisEnterprise cluster. + # The name of the Redis Enterprise cluster. ${ClusterName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter(Mandatory)] @@ -1701,7 +1996,7 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - RegenerateExpanded = 'Az.RedisEnterpriseCache.custom\New-AzRedisEnterpriseCacheDatabaseKey'; + RegenerateExpanded = 'Az.RedisEnterpriseCache.custom\New-AzRedisEnterpriseCacheKey'; } if (('RegenerateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id @@ -1748,9 +2043,193 @@ end { <# .Synopsis -Updates a database +Deletes a single database in a Redis Enterprise cache. +.Description +Deletes a single database in a Redis Enterprise cache. +.Example +PS C:\> Remove-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -PassThru +True +.Example +PS C:\> Remove-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.IRedisEnterpriseCacheIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ClusterName ]: The name of the RedisEnterprise cluster. + [DatabaseName ]: The name of the database. + [Id ]: Resource identity path + [Location ]: The region the operation is in. + [OperationId ]: The operation's unique identifier. + [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. +.Link +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/remove-azredisenterprisecachedatabase +#> +function Remove-AzRedisEnterpriseCacheDatabase { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('Name')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] + [System.String] + # The name of the Redis Enterprise cluster. + ${ClusterName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.IRedisEnterpriseCacheIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Delete = 'Az.RedisEnterpriseCache.custom\Remove-AzRedisEnterpriseCacheDatabase'; + DeleteViaIdentity = 'Az.RedisEnterpriseCache.custom\Remove-AzRedisEnterpriseCacheDatabase'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Updates an existing Redis Enterprise database .Description -Updates a database +Updates an existing Redis Enterprise database .Example PS C:\> Update-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -ClientProtocol "Plaintext" @@ -1769,7 +2248,7 @@ default Microsoft.Cache/redisEnterprise/databases .Inputs Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.IRedisEnterpriseCacheIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase .Notes COMPLEX PARAMETER PROPERTIES @@ -1782,38 +2261,34 @@ INPUTOBJECT : Identity Parameter [Location ]: The region the operation is in. [OperationId ]: The operation's unique identifier. [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource - [ResourceGroupName ]: The name of the resource group. - [SubscriptionId ]: Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - -MODULE : Optional set of redis modules to enable in this database - modules can only be added at creation time. - Name : The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries' - [Arg ]: Configuration options for the module, e.g. 'ERROR_RATE 0.00 INITIAL_SIZE 400'. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/update-azredisenterprisecachedatabase +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/update-azredisenterprisecachedatabase #> function Update-AzRedisEnterpriseCacheDatabase { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Alias('Name')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] - # The name of the RedisEnterprise cluster. + # The name of the Redis Enterprise cluster. ${ClusterName}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -1828,38 +2303,48 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol] # Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. - # Default is TLS-encrypted. + # Allowed values: Encrypted, Plaintext ${ClientProtocol}, - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy])] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy] - # Clustering policy - default is OSSCluster. - # Specified at create time. - ${ClusteringPolicy}, - [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy])] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy] - # Redis eviction policy - default is VolatileLRU + # Redis eviction policy. + # Allowed values: AllKeysLFU, AllKeysLRU, AllKeysRandom, VolatileLRU, VolatileLFU, VolatileTTL, VolatileRandom, NoEviction ${EvictionPolicy}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule[]] - # Optional set of redis modules to enable in this database - modules can only be added at creation time. - # To construct, see NOTES section for MODULE properties and create a hash table. - ${Module}, + [System.Management.Automation.SwitchParameter] + # [Preview] Sets whether AOF persistence is enabled. + # After enabling AOF persistence, you will be unable to disable it. + # Support for disabling AOF persistence after enabling will be added at a later date. + ${AofPersistenceEnabled}, [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency])] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [System.Int32] - # TCP port of the database endpoint. - # Specified at create time. - # Defaults to an available port. - ${Port}, + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency] + # [Preview] Sets the frequency at which data is written to disk if AOF persistence is enabled. + # Allowed values: 1s, always + ${AofPersistenceFrequency}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [System.Management.Automation.SwitchParameter] + # [Preview] Sets whether RDB persistence is enabled. + # After enabling RDB persistence, you will be unable to disable it. + # Support for disabling RDB persistence after enabling will be added at a later date. + ${RdbPersistenceEnabled}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency])] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency] + # [Preview] Sets the frequency at which a snapshot of the database is created if RDB persistence is enabled. + # Allowed values: 1h, 6h, 12h + ${RdbPersistenceFrequency}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] diff --git a/src/RedisEnterpriseCache/exports/Remove-AzRedisEnterpriseCache.ps1 b/src/RedisEnterpriseCache/exports/Remove-AzRedisEnterpriseCache.ps1 index be721d3bf44b..14804ef0fb98 100644 --- a/src/RedisEnterpriseCache/exports/Remove-AzRedisEnterpriseCache.ps1 +++ b/src/RedisEnterpriseCache/exports/Remove-AzRedisEnterpriseCache.ps1 @@ -40,10 +40,10 @@ INPUTOBJECT : Identity Parameter [Location ]: The region the operation is in. [OperationId ]: The operation's unique identifier. [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource - [ResourceGroupName ]: The name of the resource group. - [SubscriptionId ]: Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/remove-azredisenterprisecache +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/remove-azredisenterprisecache #> function Remove-AzRedisEnterpriseCache { [OutputType([System.Boolean])] @@ -60,14 +60,14 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Delete')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/RedisEnterpriseCache/exports/Remove-AzRedisEnterpriseCacheDatabase.ps1 b/src/RedisEnterpriseCache/exports/Remove-AzRedisEnterpriseCacheDatabase.ps1 new file mode 100644 index 000000000000..0ceaf1b950fa --- /dev/null +++ b/src/RedisEnterpriseCache/exports/Remove-AzRedisEnterpriseCacheDatabase.ps1 @@ -0,0 +1,184 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Deletes a single database in a Redis Enterprise cache. +.Description +Deletes a single database in a Redis Enterprise cache. +.Example +PS C:\> Remove-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -PassThru +True +.Example +PS C:\> Remove-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.IRedisEnterpriseCacheIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ClusterName ]: The name of the RedisEnterprise cluster. + [DatabaseName ]: The name of the database. + [Id ]: Resource identity path + [Location ]: The region the operation is in. + [OperationId ]: The operation's unique identifier. + [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. +.Link +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/remove-azredisenterprisecachedatabase +#> +function Remove-AzRedisEnterpriseCacheDatabase { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('Name')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] + [System.String] + # The name of the Redis Enterprise cluster. + ${ClusterName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.IRedisEnterpriseCacheIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Delete = 'Az.RedisEnterpriseCache.custom\Remove-AzRedisEnterpriseCacheDatabase'; + DeleteViaIdentity = 'Az.RedisEnterpriseCache.custom\Remove-AzRedisEnterpriseCacheDatabase'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/RedisEnterpriseCache/exports/Update-AzRedisEnterpriseCache.ps1 b/src/RedisEnterpriseCache/exports/Update-AzRedisEnterpriseCache.ps1 index a09b6b51712d..14a83ff40d0e 100644 --- a/src/RedisEnterpriseCache/exports/Update-AzRedisEnterpriseCache.ps1 +++ b/src/RedisEnterpriseCache/exports/Update-AzRedisEnterpriseCache.ps1 @@ -19,7 +19,7 @@ Updates an existing RedisEnterprise cluster .Description Updates an existing RedisEnterprise cluster .Example -PS C:\> Update-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -MinimumTlsVersion "1.2" -Tag @{"tag" = "value"} +PS C:\> Update-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -MinimumTlsVersion "1.2" -Tag @{"tag1" = "value1"} Location Name Type Zone Database -------- ---- ---- ---- -------- @@ -29,7 +29,7 @@ West US MyCache Microsoft.Cache/redisEnterprise {default} .Inputs Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.IRedisEnterpriseCacheIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster .Notes COMPLEX PARAMETER PROPERTIES @@ -42,13 +42,13 @@ INPUTOBJECT : Identity Parameter [Location ]: The region the operation is in. [OperationId ]: The operation's unique identifier. [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource - [ResourceGroupName ]: The name of the resource group. - [SubscriptionId ]: Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/update-azredisenterprisecache +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/update-azredisenterprisecache #> function Update-AzRedisEnterpriseCache { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -62,14 +62,14 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -89,8 +89,9 @@ param( ${Capacity}, [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion])] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [System.String] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion] # The minimum TLS version for the cluster to support, e.g. # '1.2' ${MinimumTlsVersion}, @@ -106,7 +107,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, diff --git a/src/RedisEnterpriseCache/exports/Update-AzRedisEnterpriseCacheDatabase.ps1 b/src/RedisEnterpriseCache/exports/Update-AzRedisEnterpriseCacheDatabase.ps1 index f2ffe97e07b6..8240a9a3795b 100644 --- a/src/RedisEnterpriseCache/exports/Update-AzRedisEnterpriseCacheDatabase.ps1 +++ b/src/RedisEnterpriseCache/exports/Update-AzRedisEnterpriseCacheDatabase.ps1 @@ -15,9 +15,9 @@ <# .Synopsis -Updates a database +Updates an existing Redis Enterprise database .Description -Updates a database +Updates an existing Redis Enterprise database .Example PS C:\> Update-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -ClientProtocol "Plaintext" @@ -36,7 +36,7 @@ default Microsoft.Cache/redisEnterprise/databases .Inputs Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.IRedisEnterpriseCacheIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase .Notes COMPLEX PARAMETER PROPERTIES @@ -49,38 +49,34 @@ INPUTOBJECT : Identity Parameter [Location ]: The region the operation is in. [OperationId ]: The operation's unique identifier. [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource - [ResourceGroupName ]: The name of the resource group. - [SubscriptionId ]: Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - -MODULE : Optional set of redis modules to enable in this database - modules can only be added at creation time. - Name : The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries' - [Arg ]: Configuration options for the module, e.g. 'ERROR_RATE 0.00 INITIAL_SIZE 400'. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/update-azredisenterprisecachedatabase +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/update-azredisenterprisecachedatabase #> function Update-AzRedisEnterpriseCacheDatabase { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Alias('Name')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] - # The name of the RedisEnterprise cluster. + # The name of the Redis Enterprise cluster. ${ClusterName}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -95,38 +91,48 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol] # Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. - # Default is TLS-encrypted. + # Allowed values: Encrypted, Plaintext ${ClientProtocol}, - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy])] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy] - # Clustering policy - default is OSSCluster. - # Specified at create time. - ${ClusteringPolicy}, - [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy])] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy] - # Redis eviction policy - default is VolatileLRU + # Redis eviction policy. + # Allowed values: AllKeysLFU, AllKeysLRU, AllKeysRandom, VolatileLRU, VolatileLFU, VolatileTTL, VolatileRandom, NoEviction ${EvictionPolicy}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule[]] - # Optional set of redis modules to enable in this database - modules can only be added at creation time. - # To construct, see NOTES section for MODULE properties and create a hash table. - ${Module}, + [System.Management.Automation.SwitchParameter] + # [Preview] Sets whether AOF persistence is enabled. + # After enabling AOF persistence, you will be unable to disable it. + # Support for disabling AOF persistence after enabling will be added at a later date. + ${AofPersistenceEnabled}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency])] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency] + # [Preview] Sets the frequency at which data is written to disk if AOF persistence is enabled. + # Allowed values: 1s, always + ${AofPersistenceFrequency}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [System.Management.Automation.SwitchParameter] + # [Preview] Sets whether RDB persistence is enabled. + # After enabling RDB persistence, you will be unable to disable it. + # Support for disabling RDB persistence after enabling will be added at a later date. + ${RdbPersistenceEnabled}, [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency])] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [System.Int32] - # TCP port of the database endpoint. - # Specified at create time. - # Defaults to an available port. - ${Port}, + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency] + # [Preview] Sets the frequency at which a snapshot of the database is created if RDB persistence is enabled. + # Allowed values: 1h, 6h, 12h + ${RdbPersistenceFrequency}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] diff --git a/src/RedisEnterpriseCache/generate-info.json b/src/RedisEnterpriseCache/generate-info.json index 5abc5c062635..4fae2a81abd6 100644 --- a/src/RedisEnterpriseCache/generate-info.json +++ b/src/RedisEnterpriseCache/generate-info.json @@ -1,8 +1,8 @@ { + "autorest_core": "3.0.6375", "autorest_modelerfour": "4.15.414", - "swagger_commit": "2562a49a60b96b3080f4fed35f2db4cb7d5243d6", - "autorest_core": "3.0.6338", - "autorest": "`-- (empty)", - "node": "v10.15.3", - "autorest_powershell": "3.0.403" + "autorest_powershell": "3.0.423", + "swagger_commit": "e4904c640c0c1d1c950240d4cdd65bf044cc3056", + "node": "v10.16.3", + "autorest": "3.0.6149" } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api10/PrivateEndpointConnection.cs b/src/RedisEnterpriseCache/generated/api/Models/Api10/PrivateEndpointConnection.cs index 15697ca2b54c..d55893589c42 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api10/PrivateEndpointConnection.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api10/PrivateEndpointConnection.cs @@ -56,17 +56,17 @@ public partial class PrivateEndpointConnection : /// A message indicating if changes on the service provider require any updates on the consumer. /// [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public string PrivateLinkServiceConnectionStateActionsRequired { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionStateActionsRequired; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionStateActionsRequired = value; } + public string PrivateLinkServiceConnectionStateActionsRequired { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionStateActionsRequired; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionStateActionsRequired = value ?? null; } /// The reason for approval/rejection of the connection. [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public string PrivateLinkServiceConnectionStateDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionStateDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionStateDescription = value; } + public string PrivateLinkServiceConnectionStateDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionStateDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionStateDescription = value ?? null; } /// /// Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. /// [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.PrivateEndpointServiceConnectionStatus? PrivateLinkServiceConnectionStateStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionStateStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionStateStatus = value; } + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.PrivateEndpointServiceConnectionStatus? PrivateLinkServiceConnectionStateStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionStateStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionStateStatus = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.PrivateEndpointServiceConnectionStatus)""); } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnectionProperties _property; diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api10/PrivateEndpointConnectionProperties.cs b/src/RedisEnterpriseCache/generated/api/Models/Api10/PrivateEndpointConnectionProperties.cs index d947a5a499fd..8f1769067897 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api10/PrivateEndpointConnectionProperties.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api10/PrivateEndpointConnectionProperties.cs @@ -44,17 +44,17 @@ public partial class PrivateEndpointConnectionProperties : /// A message indicating if changes on the service provider require any updates on the consumer. /// [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public string PrivateLinkServiceConnectionStateActionsRequired { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateLinkServiceConnectionStateInternal)PrivateLinkServiceConnectionState).ActionsRequired; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateLinkServiceConnectionStateInternal)PrivateLinkServiceConnectionState).ActionsRequired = value; } + public string PrivateLinkServiceConnectionStateActionsRequired { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateLinkServiceConnectionStateInternal)PrivateLinkServiceConnectionState).ActionsRequired; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateLinkServiceConnectionStateInternal)PrivateLinkServiceConnectionState).ActionsRequired = value ?? null; } /// The reason for approval/rejection of the connection. [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public string PrivateLinkServiceConnectionStateDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateLinkServiceConnectionStateInternal)PrivateLinkServiceConnectionState).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateLinkServiceConnectionStateInternal)PrivateLinkServiceConnectionState).Description = value; } + public string PrivateLinkServiceConnectionStateDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateLinkServiceConnectionStateInternal)PrivateLinkServiceConnectionState).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateLinkServiceConnectionStateInternal)PrivateLinkServiceConnectionState).Description = value ?? null; } /// /// Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. /// [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.PrivateEndpointServiceConnectionStatus? PrivateLinkServiceConnectionStateStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateLinkServiceConnectionStateInternal)PrivateLinkServiceConnectionState).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateLinkServiceConnectionStateInternal)PrivateLinkServiceConnectionState).Status = value; } + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.PrivateEndpointServiceConnectionStatus? PrivateLinkServiceConnectionStateStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateLinkServiceConnectionStateInternal)PrivateLinkServiceConnectionState).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateLinkServiceConnectionStateInternal)PrivateLinkServiceConnectionState).Status = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.PrivateEndpointServiceConnectionStatus)""); } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.PrivateEndpointConnectionProvisioningState? _provisioningState; diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api10/PrivateLinkResource.cs b/src/RedisEnterpriseCache/generated/api/Models/Api10/PrivateLinkResource.cs index 2afce1f828f0..dd009e46500c 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api10/PrivateLinkResource.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api10/PrivateLinkResource.cs @@ -59,7 +59,7 @@ public partial class PrivateLinkResource : /// The private link resource Private link DNS zone name. [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public string[] RequiredZoneName { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateLinkResourcePropertiesInternal)Property).RequiredZoneName; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateLinkResourcePropertiesInternal)Property).RequiredZoneName = value; } + public string[] RequiredZoneName { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateLinkResourcePropertiesInternal)Property).RequiredZoneName; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateLinkResourcePropertiesInternal)Property).RequiredZoneName = value ?? null /* arrayOf */; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20/ProxyResource.PowerShell.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20/ProxyResource.PowerShell.cs index d5feb1b170bf..26aa941c5727 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20/ProxyResource.PowerShell.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20/ProxyResource.PowerShell.cs @@ -3,8 +3,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20 using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; /// - /// The resource model definition for an Azure Resource Manager proxy resource. It will have everything other than required - /// location and tags + /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location /// [System.ComponentModel.TypeConverter(typeof(ProxyResourceTypeConverter))] public partial class ProxyResource @@ -97,9 +96,9 @@ internal ProxyResource(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); AfterDeserializeDictionary(content); } @@ -117,9 +116,9 @@ internal ProxyResource(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); AfterDeserializePSObject(content); } @@ -128,8 +127,7 @@ internal ProxyResource(global::System.Management.Automation.PSObject content) /// a containing this model serialized to JSON text. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SerializationMode.IncludeAll)?.ToString(); } - /// The resource model definition for an Azure Resource Manager proxy resource. It will have everything other than required - /// location and tags + /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location [System.ComponentModel.TypeConverter(typeof(ProxyResourceTypeConverter))] public partial interface IProxyResource diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20/ProxyResource.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20/ProxyResource.cs index 16503135fa08..6d1d3345a5c3 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20/ProxyResource.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20/ProxyResource.cs @@ -3,8 +3,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20 using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; /// - /// The resource model definition for an Azure Resource Manager proxy resource. It will have everything other than required - /// location and tags + /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location /// public partial class ProxyResource : Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IProxyResource, @@ -12,35 +11,35 @@ public partial class ProxyResource : Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGenerated __resourceAutoGenerated = new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ResourceAutoGenerated(); + private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.Resource(); /// /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__resource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__resource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__resource).Name = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__resource).Type = value; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__resource).Name; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__resource).Type; } /// Creates an new instance. public ProxyResource() @@ -56,22 +55,20 @@ public ProxyResource() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resourceAutoGenerated), __resourceAutoGenerated); - await eventListener.AssertObjectIsValid(nameof(__resourceAutoGenerated), __resourceAutoGenerated); + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); } } - /// The resource model definition for an Azure Resource Manager proxy resource. It will have everything other than required - /// location and tags + /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location public partial interface IProxyResource : Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGenerated + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResource { } - /// The resource model definition for an Azure Resource Manager proxy resource. It will have everything other than required - /// location and tags + /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location internal partial interface IProxyResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal { } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20/ProxyResource.json.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20/ProxyResource.json.cs index 9f3af7ac9392..c18cfc387b8c 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20/ProxyResource.json.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20/ProxyResource.json.cs @@ -3,8 +3,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20 using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; /// - /// The resource model definition for an Azure Resource Manager proxy resource. It will have everything other than required - /// location and tags + /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location /// public partial class ProxyResource { @@ -73,7 +72,7 @@ internal ProxyResource(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.R { return; } - __resourceAutoGenerated = new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ResourceAutoGenerated(json); + __resource = new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.Resource(json); AfterFromJson(json); } @@ -96,7 +95,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.Json { return container; } - __resourceAutoGenerated?.ToJson(container, serializationMode); + __resource?.ToJson(container, serializationMode); AfterToJson(ref container); return container; } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20/ResourceAutoGenerated.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20/ResourceAutoGenerated.cs deleted file mode 100644 index 13a3c65c6d07..000000000000 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20/ResourceAutoGenerated.cs +++ /dev/null @@ -1,103 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; - - /// - /// Common fields that are returned in the response for all Azure Resource Manager resources - /// - public partial class ResourceAutoGenerated : - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGenerated, - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal - { - - /// Backing field for property. - private string _id; - - /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - /// - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Owned)] - public string Id { get => this._id; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal.Id { get => this._id; set { {_id = value;} } } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal.Name { get => this._name; set { {_name = value;} } } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal.Type { get => this._type; set { {_type = value;} } } - - /// Backing field for property. - private string _name; - - /// The name of the resource - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Owned)] - public string Name { get => this._name; } - - /// Backing field for property. - private string _type; - - /// - /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - /// - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Owned)] - public string Type { get => this._type; } - - /// Creates an new instance. - public ResourceAutoGenerated() - { - - } - } - /// Common fields that are returned in the response for all Azure Resource Manager resources - public partial interface IResourceAutoGenerated : - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IJsonSerializable - { - /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - /// - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string Id { get; } - /// The name of the resource - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The name of the resource", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; } - /// - /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - /// - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The type of the resource. E.g. ""Microsoft.Compute/virtualMachines"" or ""Microsoft.Storage/storageAccounts""", - SerializedName = @"type", - PossibleTypes = new [] { typeof(string) })] - string Type { get; } - - } - /// Common fields that are returned in the response for all Azure Resource Manager resources - internal partial interface IResourceAutoGeneratedInternal - - { - /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - /// - string Id { get; set; } - /// The name of the resource - string Name { get; set; } - /// - /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - /// - string Type { get; set; } - - } -} \ No newline at end of file diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20/TrackedResource.PowerShell.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20/TrackedResource.PowerShell.cs index 85cfc9d6dfd4..a03cc380511c 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20/TrackedResource.PowerShell.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20/TrackedResource.PowerShell.cs @@ -3,7 +3,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20 using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; /// - /// The resource model definition for an Azure Resource Manager tracked top level resource + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' /// [System.ComponentModel.TypeConverter(typeof(TrackedResourceTypeConverter))] public partial class TrackedResource @@ -103,9 +103,9 @@ internal TrackedResource(global::System.Collections.IDictionary content) // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.TrackedResourceTagsTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); AfterDeserializeDictionary(content); } @@ -125,13 +125,13 @@ internal TrackedResource(global::System.Management.Automation.PSObject content) // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.TrackedResourceTagsTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); AfterDeserializePSObject(content); } } - /// The resource model definition for an Azure Resource Manager tracked top level resource + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' [System.ComponentModel.TypeConverter(typeof(TrackedResourceTypeConverter))] public partial interface ITrackedResource diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20/TrackedResource.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20/TrackedResource.cs index ef40161017d9..ce2ce1a36107 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20/TrackedResource.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20/TrackedResource.cs @@ -3,7 +3,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20 using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; /// - /// The resource model definition for an Azure Resource Manager tracked top level resource + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' /// public partial class TrackedResource : Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResource, @@ -11,16 +11,16 @@ public partial class TrackedResource : Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGenerated __resourceAutoGenerated = new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ResourceAutoGenerated(); + private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.Resource(); /// /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__resource).Id; } /// Backing field for property. private string _location; @@ -30,17 +30,17 @@ public partial class TrackedResource : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__resource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__resource).Name = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__resource).Type = value; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__resource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceTags _tag; @@ -53,7 +53,7 @@ public partial class TrackedResource : /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__resource).Type; } /// Creates an new instance. public TrackedResource() @@ -69,14 +69,14 @@ public TrackedResource() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resourceAutoGenerated), __resourceAutoGenerated); - await eventListener.AssertObjectIsValid(nameof(__resourceAutoGenerated), __resourceAutoGenerated); + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); } } - /// The resource model definition for an Azure Resource Manager tracked top level resource + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' public partial interface ITrackedResource : Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGenerated + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResource { /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( @@ -96,9 +96,9 @@ public partial interface ITrackedResource : Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceTags Tag { get; set; } } - /// The resource model definition for an Azure Resource Manager tracked top level resource + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' internal partial interface ITrackedResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal { /// The geo-location where the resource lives string Location { get; set; } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20/TrackedResource.json.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20/TrackedResource.json.cs index 1612b1197939..3a5464e8d554 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20/TrackedResource.json.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20/TrackedResource.json.cs @@ -3,7 +3,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20 using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; /// - /// The resource model definition for an Azure Resource Manager tracked top level resource + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' /// public partial class TrackedResource { @@ -79,7 +79,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.Json { return container; } - __resourceAutoGenerated?.ToJson(container, serializationMode); + __resource?.ToJson(container, serializationMode); AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tags" ,container.Add ); AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); AfterToJson(ref container); @@ -98,7 +98,7 @@ internal TrackedResource(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache { return; } - __resourceAutoGenerated = new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ResourceAutoGenerated(json); + __resource = new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.Resource(json); {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.TrackedResourceTags.FromJson(__jsonTags) : Tag;} {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} AfterFromJson(json); diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Cluster.PowerShell.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Cluster.PowerShell.cs deleted file mode 100644 index 970dd9956b81..000000000000 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Cluster.PowerShell.cs +++ /dev/null @@ -1,163 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; - - /// Describes the RedisEnterprise cluster - [System.ComponentModel.TypeConverter(typeof(ClusterTypeConverter))] - public partial class Cluster - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal Cluster(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.SkuTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ClusterPropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).Zone = (string[]) content.GetValueForProperty("Zone",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).Zone, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.TrackedResourceTagsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).ResourceState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState?) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).ResourceState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).MinimumTlsVersion = (string) content.GetValueForProperty("MinimumTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).MinimumTlsVersion, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).HostName = (string) content.GetValueForProperty("HostName",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).HostName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).RedisVersion = (string) content.GetValueForProperty("RedisVersion",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).RedisVersion, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).PrivateEndpointConnection = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnection[]) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.PrivateEndpointConnectionTypeConverter.ConvertFrom)); - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal Cluster(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.SkuTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ClusterPropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).Zone = (string[]) content.GetValueForProperty("Zone",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).Zone, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.TrackedResourceTagsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).ResourceState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState?) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).ResourceState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).MinimumTlsVersion = (string) content.GetValueForProperty("MinimumTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).MinimumTlsVersion, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).HostName = (string) content.GetValueForProperty("HostName",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).HostName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).RedisVersion = (string) content.GetValueForProperty("RedisVersion",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).RedisVersion, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).PrivateEndpointConnection = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnection[]) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.PrivateEndpointConnectionTypeConverter.ConvertFrom)); - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new Cluster(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new Cluster(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Describes the RedisEnterprise cluster - [System.ComponentModel.TypeConverter(typeof(ClusterTypeConverter))] - public partial interface ICluster - - { - - } -} \ No newline at end of file diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterUpdate.PowerShell.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterUpdate.PowerShell.cs deleted file mode 100644 index 4b4bb73ad3e3..000000000000 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterUpdate.PowerShell.cs +++ /dev/null @@ -1,153 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; - - /// A partial update to the RedisEnterprise cluster - [System.ComponentModel.TypeConverter(typeof(ClusterUpdateTypeConverter))] - public partial class ClusterUpdate - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ClusterUpdate(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.SkuTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ClusterPropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ClusterUpdateTagsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).ResourceState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState?) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).ResourceState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).MinimumTlsVersion = (string) content.GetValueForProperty("MinimumTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).MinimumTlsVersion, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).HostName = (string) content.GetValueForProperty("HostName",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).HostName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).RedisVersion = (string) content.GetValueForProperty("RedisVersion",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).RedisVersion, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).PrivateEndpointConnection = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnection[]) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.PrivateEndpointConnectionTypeConverter.ConvertFrom)); - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ClusterUpdate(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.SkuTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ClusterPropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ClusterUpdateTagsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).ResourceState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState?) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).ResourceState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).MinimumTlsVersion = (string) content.GetValueForProperty("MinimumTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).MinimumTlsVersion, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).HostName = (string) content.GetValueForProperty("HostName",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).HostName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).RedisVersion = (string) content.GetValueForProperty("RedisVersion",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).RedisVersion, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).PrivateEndpointConnection = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnection[]) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.PrivateEndpointConnectionTypeConverter.ConvertFrom)); - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ClusterUpdate(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ClusterUpdate(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// A partial update to the RedisEnterprise cluster - [System.ComponentModel.TypeConverter(typeof(ClusterUpdateTypeConverter))] - public partial interface IClusterUpdate - - { - - } -} \ No newline at end of file diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Database.PowerShell.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Database.PowerShell.cs deleted file mode 100644 index 08716686c4ef..000000000000 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Database.PowerShell.cs +++ /dev/null @@ -1,153 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; - - /// Describes a database on the RedisEnterprise cluster - [System.ComponentModel.TypeConverter(typeof(DatabaseTypeConverter))] - public partial class Database - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal Database(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.DatabasePropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal)this).ResourceState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState?) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal)this).ResourceState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal)this).ClusteringPolicy = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy?) content.GetValueForProperty("ClusteringPolicy",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal)this).ClusteringPolicy, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal)this).EvictionPolicy = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy?) content.GetValueForProperty("EvictionPolicy",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal)this).EvictionPolicy, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal)this).ClientProtocol = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol?) content.GetValueForProperty("ClientProtocol",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal)this).ClientProtocol, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal)this).Port = (int?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal)this).Module = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule[]) content.GetValueForProperty("Module",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal)this).Module, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ModuleTypeConverter.ConvertFrom)); - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal Database(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.DatabasePropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal)this).ResourceState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState?) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal)this).ResourceState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal)this).ClusteringPolicy = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy?) content.GetValueForProperty("ClusteringPolicy",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal)this).ClusteringPolicy, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal)this).EvictionPolicy = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy?) content.GetValueForProperty("EvictionPolicy",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal)this).EvictionPolicy, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal)this).ClientProtocol = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol?) content.GetValueForProperty("ClientProtocol",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal)this).ClientProtocol, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal)this).Port = (int?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal)this).Module = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule[]) content.GetValueForProperty("Module",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal)this).Module, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ModuleTypeConverter.ConvertFrom)); - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new Database(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new Database(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Describes a database on the RedisEnterprise cluster - [System.ComponentModel.TypeConverter(typeof(DatabaseTypeConverter))] - public partial interface IDatabase - - { - - } -} \ No newline at end of file diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseProperties.PowerShell.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseProperties.PowerShell.cs deleted file mode 100644 index 62d4818184cb..000000000000 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseProperties.PowerShell.cs +++ /dev/null @@ -1,147 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; - - /// - /// Properties of RedisEnterprise databases, as opposed to general resource properties like location, tags - /// - [System.ComponentModel.TypeConverter(typeof(DatabasePropertiesTypeConverter))] - public partial class DatabaseProperties - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DatabaseProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)this).ClientProtocol = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol?) content.GetValueForProperty("ClientProtocol",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)this).ClientProtocol, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)this).Port = (int?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)this).ResourceState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState?) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)this).ResourceState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)this).ClusteringPolicy = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy?) content.GetValueForProperty("ClusteringPolicy",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)this).ClusteringPolicy, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)this).EvictionPolicy = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy?) content.GetValueForProperty("EvictionPolicy",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)this).EvictionPolicy, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)this).Module = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule[]) content.GetValueForProperty("Module",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)this).Module, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ModuleTypeConverter.ConvertFrom)); - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal DatabaseProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)this).ClientProtocol = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol?) content.GetValueForProperty("ClientProtocol",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)this).ClientProtocol, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)this).Port = (int?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)this).ResourceState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState?) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)this).ResourceState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)this).ClusteringPolicy = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy?) content.GetValueForProperty("ClusteringPolicy",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)this).ClusteringPolicy, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)this).EvictionPolicy = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy?) content.GetValueForProperty("EvictionPolicy",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)this).EvictionPolicy, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)this).Module = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule[]) content.GetValueForProperty("Module",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)this).Module, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ModuleTypeConverter.ConvertFrom)); - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DatabaseProperties(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DatabaseProperties(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Properties of RedisEnterprise databases, as opposed to general resource properties like location, tags - [System.ComponentModel.TypeConverter(typeof(DatabasePropertiesTypeConverter))] - public partial interface IDatabaseProperties - - { - - } -} \ No newline at end of file diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseUpdate.PowerShell.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseUpdate.PowerShell.cs deleted file mode 100644 index ebaa2d5b8714..000000000000 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseUpdate.PowerShell.cs +++ /dev/null @@ -1,147 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; - - /// A partial update to the RedisEnterprise database - [System.ComponentModel.TypeConverter(typeof(DatabaseUpdateTypeConverter))] - public partial class DatabaseUpdate - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DatabaseUpdate(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.DatabasePropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal)this).ResourceState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState?) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal)this).ResourceState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal)this).ClusteringPolicy = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy?) content.GetValueForProperty("ClusteringPolicy",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal)this).ClusteringPolicy, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal)this).EvictionPolicy = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy?) content.GetValueForProperty("EvictionPolicy",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal)this).EvictionPolicy, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal)this).ClientProtocol = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol?) content.GetValueForProperty("ClientProtocol",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal)this).ClientProtocol, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal)this).Port = (int?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal)this).Module = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule[]) content.GetValueForProperty("Module",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal)this).Module, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ModuleTypeConverter.ConvertFrom)); - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal DatabaseUpdate(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.DatabasePropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal)this).ResourceState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState?) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal)this).ResourceState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal)this).ClusteringPolicy = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy?) content.GetValueForProperty("ClusteringPolicy",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal)this).ClusteringPolicy, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal)this).EvictionPolicy = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy?) content.GetValueForProperty("EvictionPolicy",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal)this).EvictionPolicy, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal)this).ClientProtocol = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol?) content.GetValueForProperty("ClientProtocol",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal)this).ClientProtocol, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal)this).Port = (int?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal)this).Module = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule[]) content.GetValueForProperty("Module",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal)this).Module, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ModuleTypeConverter.ConvertFrom)); - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DatabaseUpdate(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DatabaseUpdate(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// A partial update to the RedisEnterprise database - [System.ComponentModel.TypeConverter(typeof(DatabaseUpdateTypeConverter))] - public partial interface IDatabaseUpdate - - { - - } -} \ No newline at end of file diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/OperationStatus.PowerShell.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/OperationStatus.PowerShell.cs deleted file mode 100644 index 57b1ddf43ee1..000000000000 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/OperationStatus.PowerShell.cs +++ /dev/null @@ -1,155 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; - - /// The status of a long-running operation. - [System.ComponentModel.TypeConverter(typeof(OperationStatusTypeConverter))] - public partial class OperationStatus - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatus DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new OperationStatus(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatus DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new OperationStatus(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatus FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal OperationStatus(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorResponse) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ErrorResponseTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).StartTime, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).EndTime = (string) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).EndTime, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).Status, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).ErrorDetailError = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorDetail) content.GetValueForProperty("ErrorDetailError",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).ErrorDetailError, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ErrorDetailTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).Code, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).Message, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).Target, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ErrorDetailTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ErrorAdditionalInfoTypeConverter.ConvertFrom)); - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal OperationStatus(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorResponse) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ErrorResponseTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).StartTime, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).EndTime = (string) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).EndTime, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).Status, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).ErrorDetailError = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorDetail) content.GetValueForProperty("ErrorDetailError",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).ErrorDetailError, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ErrorDetailTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).Code, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).Message, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).Target, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ErrorDetailTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ErrorAdditionalInfoTypeConverter.ConvertFrom)); - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// The status of a long-running operation. - [System.ComponentModel.TypeConverter(typeof(OperationStatusTypeConverter))] - public partial interface IOperationStatus - - { - - } -} \ No newline at end of file diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/AccessKeys.PowerShell.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/AccessKeys.PowerShell.cs similarity index 76% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/AccessKeys.PowerShell.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/AccessKeys.PowerShell.cs index 1cefb1681508..f42bf5409b89 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/AccessKeys.PowerShell.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/AccessKeys.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class AccessKeys partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,13 +61,13 @@ internal AccessKeys(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeysInternal)this).PrimaryKey = (string) content.GetValueForProperty("PrimaryKey",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeysInternal)this).PrimaryKey, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeysInternal)this).SecondaryKey = (string) content.GetValueForProperty("SecondaryKey",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeysInternal)this).SecondaryKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeysInternal)this).PrimaryKey = (string) content.GetValueForProperty("PrimaryKey",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeysInternal)this).PrimaryKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeysInternal)this).SecondaryKey = (string) content.GetValueForProperty("SecondaryKey",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeysInternal)this).SecondaryKey, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -80,35 +80,33 @@ internal AccessKeys(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeysInternal)this).PrimaryKey = (string) content.GetValueForProperty("PrimaryKey",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeysInternal)this).PrimaryKey, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeysInternal)this).SecondaryKey = (string) content.GetValueForProperty("SecondaryKey",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeysInternal)this).SecondaryKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeysInternal)this).PrimaryKey = (string) content.GetValueForProperty("PrimaryKey",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeysInternal)this).PrimaryKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeysInternal)this).SecondaryKey = (string) content.GetValueForProperty("SecondaryKey",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeysInternal)this).SecondaryKey, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeys DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeys DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AccessKeys(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeys DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeys DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AccessKeys(content); } @@ -118,7 +116,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeys FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeys FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/AccessKeys.TypeConverter.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/AccessKeys.TypeConverter.cs similarity index 97% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/AccessKeys.TypeConverter.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/AccessKeys.TypeConverter.cs index e186d388dc72..d14014709586 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/AccessKeys.TypeConverter.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/AccessKeys.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeys ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeys ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeys).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeys).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/AccessKeys.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/AccessKeys.cs similarity index 89% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/AccessKeys.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/AccessKeys.cs index a18c4cc6d085..c733ab5e7703 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/AccessKeys.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/AccessKeys.cs @@ -1,18 +1,18 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; /// The secret access keys used for authenticating connections to redis public partial class AccessKeys : - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeys, - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeysInternal + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeys, + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeysInternal { /// Internal Acessors for PrimaryKey - string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeysInternal.PrimaryKey { get => this._primaryKey; set { {_primaryKey = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeysInternal.PrimaryKey { get => this._primaryKey; set { {_primaryKey = value;} } } /// Internal Acessors for SecondaryKey - string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeysInternal.SecondaryKey { get => this._secondaryKey; set { {_secondaryKey = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeysInternal.SecondaryKey { get => this._secondaryKey; set { {_secondaryKey = value;} } } /// Backing field for property. private string _primaryKey; diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/AccessKeys.json.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/AccessKeys.json.cs similarity index 96% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/AccessKeys.json.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/AccessKeys.json.cs index dac019f6383f..5cb11309d4fd 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/AccessKeys.json.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/AccessKeys.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; @@ -64,13 +64,13 @@ internal AccessKeys(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runt } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeys. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeys. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeys. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeys. /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeys FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeys FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject json ? new AccessKeys(json) : null; } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Cluster.PowerShell.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Cluster.PowerShell.cs new file mode 100644 index 000000000000..5e8cb0aa5d4b --- /dev/null +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Cluster.PowerShell.cs @@ -0,0 +1,161 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; + + /// Describes the RedisEnterprise cluster + [System.ComponentModel.TypeConverter(typeof(ClusterTypeConverter))] + public partial class Cluster + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Cluster(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.SkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ClusterPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).Zone = (string[]) content.GetValueForProperty("Zone",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).Zone, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).ResourceState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState?) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).ResourceState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).MinimumTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion?) content.GetValueForProperty("MinimumTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).MinimumTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).HostName = (string) content.GetValueForProperty("HostName",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).HostName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).RedisVersion = (string) content.GetValueForProperty("RedisVersion",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).RedisVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).PrivateEndpointConnection = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnection[]) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.PrivateEndpointConnectionTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal Cluster(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.SkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ClusterPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).Zone = (string[]) content.GetValueForProperty("Zone",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).Zone, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).ResourceState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState?) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).ResourceState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).MinimumTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion?) content.GetValueForProperty("MinimumTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).MinimumTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).HostName = (string) content.GetValueForProperty("HostName",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).HostName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).RedisVersion = (string) content.GetValueForProperty("RedisVersion",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).RedisVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).PrivateEndpointConnection = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnection[]) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.PrivateEndpointConnectionTypeConverter.ConvertFrom)); + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Cluster(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Cluster(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Describes the RedisEnterprise cluster + [System.ComponentModel.TypeConverter(typeof(ClusterTypeConverter))] + public partial interface ICluster + + { + + } +} \ No newline at end of file diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Cluster.TypeConverter.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Cluster.TypeConverter.cs similarity index 97% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Cluster.TypeConverter.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/Cluster.TypeConverter.cs index e074d2ce7682..38bcb58abf25 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Cluster.TypeConverter.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Cluster.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Cluster.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Cluster.cs similarity index 72% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Cluster.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/Cluster.cs index 91c4ccdcc3d8..4e3a19facc64 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Cluster.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Cluster.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; /// Describes the RedisEnterprise cluster public partial class Cluster : - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster, - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal, + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster, + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IValidates { /// @@ -16,115 +16,115 @@ public partial class Cluster : /// DNS name of the cluster endpoint [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public string HostName { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)Property).HostName; } + public string HostName { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)Property).HostName; } /// /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__trackedResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__trackedResource).Id; } /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal)__trackedResource).Location = value; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal)__trackedResource).Location = value ; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__trackedResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__trackedResource).Name = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__trackedResource).Type = value; } /// Internal Acessors for HostName - string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal.HostName { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)Property).HostName; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)Property).HostName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal.HostName { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)Property).HostName; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)Property).HostName = value; } /// Internal Acessors for PrivateEndpointConnection - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnection[] Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal.PrivateEndpointConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)Property).PrivateEndpointConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)Property).PrivateEndpointConnection = value; } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnection[] Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal.PrivateEndpointConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)Property).PrivateEndpointConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)Property).PrivateEndpointConnection = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterProperties Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ClusterProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterProperties Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ClusterProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for RedisVersion - string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal.RedisVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)Property).RedisVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)Property).RedisVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal.RedisVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)Property).RedisVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)Property).RedisVersion = value; } /// Internal Acessors for ResourceState - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal.ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)Property).ResourceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)Property).ResourceState = value; } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal.ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)Property).ResourceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)Property).ResourceState = value; } /// Internal Acessors for Sku - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISku Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.Sku()); set { {_sku = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISku Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.Sku()); set { {_sku = value;} } } /// The minimum TLS version for the cluster to support, e.g. '1.2' [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public string MinimumTlsVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)Property).MinimumTlsVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)Property).MinimumTlsVersion = value; } + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion? MinimumTlsVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)Property).MinimumTlsVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)Property).MinimumTlsVersion = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion)""); } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__trackedResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__trackedResource).Name; } /// /// List of private endpoint connections associated with the specified RedisEnterprise cluster /// [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnection[] PrivateEndpointConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)Property).PrivateEndpointConnection; } + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnection[] PrivateEndpointConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)Property).PrivateEndpointConnection; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterProperties _property; /// Other properties of the cluster. [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ClusterProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ClusterProperties()); set => this._property = value; } /// Current provisioning status of the cluster [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)Property).ProvisioningState; } /// Version of redis the cluster supports, e.g. '6' [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public string RedisVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)Property).RedisVersion; } + public string RedisVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)Property).RedisVersion; } /// Current resource status of the cluster [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState? ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)Property).ResourceState; } + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState? ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)Property).ResourceState; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISku _sku; + private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISku _sku; /// The SKU to create, which affects price, performance, and features. [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISku Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.Sku()); set => this._sku = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISku Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.Sku()); set => this._sku = value; } /// /// The size of the RedisEnterprise cluster. Defaults to 2 or 3 depending on SKU. Valid values are (2, 4, 6, ...) for Enterprise /// SKUs and (3, 9, 15, ...) for Flash SKUs. /// [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public int? SkuCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISkuInternal)Sku).Capacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISkuInternal)Sku).Capacity = value; } + public int? SkuCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISkuInternal)Sku).Capacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISkuInternal)Sku).Capacity = value ?? default(int); } /// /// The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.) /// [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISkuInternal)Sku).Name = value; } + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISkuInternal)Sku).Name = value ; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal)__trackedResource).Tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__trackedResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__trackedResource).Type; } /// Backing field for property. private string[] _zone; - /// The zones where this cluster will be deployed. + /// The Availability Zones where this cluster will be deployed. [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Owned)] public string[] Zone { get => this._zone; set => this._zone = value; } @@ -165,8 +165,8 @@ public partial interface ICluster : ReadOnly = false, Description = @"The minimum TLS version for the cluster to support, e.g. '1.2'", SerializedName = @"minimumTlsVersion", - PossibleTypes = new [] { typeof(string) })] - string MinimumTlsVersion { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion) })] + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion? MinimumTlsVersion { get; set; } /// /// List of private endpoint connections associated with the specified RedisEnterprise cluster /// @@ -222,11 +222,11 @@ public partial interface ICluster : SerializedName = @"name", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName) })] Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName SkuName { get; set; } - /// The zones where this cluster will be deployed. + /// The Availability Zones where this cluster will be deployed. [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The zones where this cluster will be deployed.", + Description = @"The Availability Zones where this cluster will be deployed.", SerializedName = @"zones", PossibleTypes = new [] { typeof(string) })] string[] Zone { get; set; } @@ -239,13 +239,13 @@ internal partial interface IClusterInternal : /// DNS name of the cluster endpoint string HostName { get; set; } /// The minimum TLS version for the cluster to support, e.g. '1.2' - string MinimumTlsVersion { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion? MinimumTlsVersion { get; set; } /// /// List of private endpoint connections associated with the specified RedisEnterprise cluster /// Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnection[] PrivateEndpointConnection { get; set; } /// Other properties of the cluster. - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterProperties Property { get; set; } /// Current provisioning status of the cluster Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState? ProvisioningState { get; set; } /// Version of redis the cluster supports, e.g. '6' @@ -253,7 +253,7 @@ internal partial interface IClusterInternal : /// Current resource status of the cluster Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState? ResourceState { get; set; } /// The SKU to create, which affects price, performance, and features. - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISku Sku { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISku Sku { get; set; } /// /// The size of the RedisEnterprise cluster. Defaults to 2 or 3 depending on SKU. Valid values are (2, 4, 6, ...) for Enterprise /// SKUs and (3, 9, 15, ...) for Flash SKUs. @@ -263,7 +263,7 @@ internal partial interface IClusterInternal : /// The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.) /// Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName SkuName { get; set; } - /// The zones where this cluster will be deployed. + /// The Availability Zones where this cluster will be deployed. string[] Zone { get; set; } } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Cluster.json.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Cluster.json.cs similarity index 94% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Cluster.json.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/Cluster.json.cs index 4b9af96b65a2..90be3da7e195 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Cluster.json.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Cluster.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; @@ -59,20 +59,20 @@ internal Cluster(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime return; } __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.TrackedResource(json); - {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.Sku.FromJson(__jsonSku) : Sku;} - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ClusterProperties.FromJson(__jsonProperties) : Property;} + {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.Sku.FromJson(__jsonSku) : Sku;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ClusterProperties.FromJson(__jsonProperties) : Property;} {_zone = If( json?.PropertyT("zones"), out var __jsonZones) ? If( __jsonZones as Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : Zone;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster. /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject json ? new Cluster(json) : null; } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterList.PowerShell.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterList.PowerShell.cs similarity index 71% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterList.PowerShell.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterList.PowerShell.cs index cde849e29996..b53ba2470b0f 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterList.PowerShell.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterList.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class ClusterList partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,13 +61,13 @@ internal ClusterList(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ClusterTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ClusterTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterListInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -80,35 +80,33 @@ internal ClusterList(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ClusterTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ClusterTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterListInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterList DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ClusterList(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ClusterList(content); } @@ -118,7 +116,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterList.TypeConverter.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterList.TypeConverter.cs similarity index 97% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterList.TypeConverter.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterList.TypeConverter.cs index 16f43d3a2069..cc7b13e9ebe7 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterList.TypeConverter.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterList.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterList.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterList.cs similarity index 82% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterList.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterList.cs index 1b58dbb75847..1c728622bd6e 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterList.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterList.cs @@ -1,15 +1,15 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; /// The response of a list-all operation. public partial class ClusterList : - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterList, - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterListInternal + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterList, + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterListInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Backing field for property. private string _nextLink; @@ -19,11 +19,11 @@ public partial class ClusterList : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster[] _value; /// List of clusters. [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public ClusterList() @@ -49,8 +49,8 @@ public partial interface IClusterList : ReadOnly = false, Description = @"List of clusters.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster) })] - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster) })] + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster[] Value { get; set; } } /// The response of a list-all operation. @@ -60,7 +60,7 @@ internal partial interface IClusterListInternal /// The URI to fetch the next page of results. string NextLink { get; set; } /// List of clusters. - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster[] Value { get; set; } } } \ No newline at end of file diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterList.json.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterList.json.cs similarity index 91% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterList.json.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterList.json.cs index b17d6f2a9ef4..463712fe4b01 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterList.json.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterList.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; @@ -58,19 +58,19 @@ internal ClusterList(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Run { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster) (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.Cluster.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster) (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.Cluster.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterList FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterList FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject json ? new ClusterList(json) : null; } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterProperties.PowerShell.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterProperties.PowerShell.cs similarity index 55% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterProperties.PowerShell.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterProperties.PowerShell.cs index 660e24933fb2..e269117de879 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterProperties.PowerShell.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterProperties.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; @@ -50,7 +50,7 @@ public partial class ClusterProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -63,17 +63,17 @@ internal ClusterProperties(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)this).MinimumTlsVersion = (string) content.GetValueForProperty("MinimumTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)this).MinimumTlsVersion, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)this).HostName = (string) content.GetValueForProperty("HostName",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)this).HostName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)this).ResourceState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState?) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)this).ResourceState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)this).RedisVersion = (string) content.GetValueForProperty("RedisVersion",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)this).RedisVersion, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)this).PrivateEndpointConnection = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnection[]) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.PrivateEndpointConnectionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)this).MinimumTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion?) content.GetValueForProperty("MinimumTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)this).MinimumTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)this).HostName = (string) content.GetValueForProperty("HostName",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)this).HostName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)this).ResourceState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState?) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)this).ResourceState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)this).RedisVersion = (string) content.GetValueForProperty("RedisVersion",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)this).RedisVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)this).PrivateEndpointConnection = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnection[]) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.PrivateEndpointConnectionTypeConverter.ConvertFrom)); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -86,39 +86,39 @@ internal ClusterProperties(global::System.Management.Automation.PSObject content return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)this).MinimumTlsVersion = (string) content.GetValueForProperty("MinimumTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)this).MinimumTlsVersion, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)this).HostName = (string) content.GetValueForProperty("HostName",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)this).HostName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)this).ResourceState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState?) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)this).ResourceState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)this).RedisVersion = (string) content.GetValueForProperty("RedisVersion",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)this).RedisVersion, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)this).PrivateEndpointConnection = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnection[]) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.PrivateEndpointConnectionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)this).MinimumTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion?) content.GetValueForProperty("MinimumTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)this).MinimumTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)this).HostName = (string) content.GetValueForProperty("HostName",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)this).HostName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)this).ResourceState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState?) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)this).ResourceState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)this).RedisVersion = (string) content.GetValueForProperty("RedisVersion",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)this).RedisVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)this).PrivateEndpointConnection = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnection[]) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.PrivateEndpointConnectionTypeConverter.ConvertFrom)); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ClusterProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ClusterProperties(content); } @@ -128,7 +128,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterProperties.TypeConverter.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterProperties.TypeConverter.cs similarity index 97% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterProperties.TypeConverter.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterProperties.TypeConverter.cs index f5898aaf6bbd..98b1a0883e70 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterProperties.TypeConverter.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterProperties.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterProperties.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterProperties.cs similarity index 85% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterProperties.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterProperties.cs index 03e921de9fc4..38408c5bc832 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterProperties.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterProperties.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; @@ -6,8 +6,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api2020 /// Properties of RedisEnterprise clusters, as opposed to general resource properties like location, tags /// public partial class ClusterProperties : - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterProperties, - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterProperties, + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal { /// Backing field for property. @@ -18,26 +18,26 @@ public partial class ClusterProperties : public string HostName { get => this._hostName; } /// Internal Acessors for HostName - string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal.HostName { get => this._hostName; set { {_hostName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal.HostName { get => this._hostName; set { {_hostName = value;} } } /// Internal Acessors for PrivateEndpointConnection - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnection[] Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal.PrivateEndpointConnection { get => this._privateEndpointConnection; set { {_privateEndpointConnection = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnection[] Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal.PrivateEndpointConnection { get => this._privateEndpointConnection; set { {_privateEndpointConnection = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for RedisVersion - string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal.RedisVersion { get => this._redisVersion; set { {_redisVersion = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal.RedisVersion { get => this._redisVersion; set { {_redisVersion = value;} } } /// Internal Acessors for ResourceState - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal.ResourceState { get => this._resourceState; set { {_resourceState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal.ResourceState { get => this._resourceState; set { {_resourceState = value;} } } /// Backing field for property. - private string _minimumTlsVersion; + private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion? _minimumTlsVersion; /// The minimum TLS version for the cluster to support, e.g. '1.2' [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Owned)] - public string MinimumTlsVersion { get => this._minimumTlsVersion; set => this._minimumTlsVersion = value; } + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion? MinimumTlsVersion { get => this._minimumTlsVersion; set => this._minimumTlsVersion = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnection[] _privateEndpointConnection; @@ -93,8 +93,8 @@ public partial interface IClusterProperties : ReadOnly = false, Description = @"The minimum TLS version for the cluster to support, e.g. '1.2'", SerializedName = @"minimumTlsVersion", - PossibleTypes = new [] { typeof(string) })] - string MinimumTlsVersion { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion) })] + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion? MinimumTlsVersion { get; set; } /// /// List of private endpoint connections associated with the specified RedisEnterprise cluster /// @@ -138,7 +138,7 @@ internal partial interface IClusterPropertiesInternal /// DNS name of the cluster endpoint string HostName { get; set; } /// The minimum TLS version for the cluster to support, e.g. '1.2' - string MinimumTlsVersion { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion? MinimumTlsVersion { get; set; } /// /// List of private endpoint connections associated with the specified RedisEnterprise cluster /// diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterProperties.json.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterProperties.json.cs similarity index 97% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterProperties.json.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterProperties.json.cs index 0db537331db1..c1000e2e9408 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterProperties.json.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterProperties.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; @@ -70,13 +70,13 @@ internal ClusterProperties(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCac } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject json ? new ClusterProperties(json) : null; } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterUpdate.PowerShell.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterUpdate.PowerShell.cs new file mode 100644 index 000000000000..a2b6e2b786c6 --- /dev/null +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterUpdate.PowerShell.cs @@ -0,0 +1,151 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; + + /// A partial update to the RedisEnterprise cluster + [System.ComponentModel.TypeConverter(typeof(ClusterUpdateTypeConverter))] + public partial class ClusterUpdate + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ClusterUpdate(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.SkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ClusterPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ClusterUpdateTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).ResourceState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState?) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).ResourceState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).MinimumTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion?) content.GetValueForProperty("MinimumTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).MinimumTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).HostName = (string) content.GetValueForProperty("HostName",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).HostName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).RedisVersion = (string) content.GetValueForProperty("RedisVersion",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).RedisVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).PrivateEndpointConnection = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnection[]) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.PrivateEndpointConnectionTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ClusterUpdate(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.SkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ClusterPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ClusterUpdateTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).ResourceState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState?) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).ResourceState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).MinimumTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion?) content.GetValueForProperty("MinimumTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).MinimumTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).HostName = (string) content.GetValueForProperty("HostName",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).HostName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).RedisVersion = (string) content.GetValueForProperty("RedisVersion",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).RedisVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).PrivateEndpointConnection = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnection[]) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.PrivateEndpointConnectionTypeConverter.ConvertFrom)); + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ClusterUpdate(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ClusterUpdate(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A partial update to the RedisEnterprise cluster + [System.ComponentModel.TypeConverter(typeof(ClusterUpdateTypeConverter))] + public partial interface IClusterUpdate + + { + + } +} \ No newline at end of file diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterUpdate.TypeConverter.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterUpdate.TypeConverter.cs similarity index 97% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterUpdate.TypeConverter.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterUpdate.TypeConverter.cs index 6d7bcafd27b9..c102d78abaee 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterUpdate.TypeConverter.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterUpdate.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdate ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdate ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdate).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdate).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterUpdate.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterUpdate.cs similarity index 69% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterUpdate.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterUpdate.cs index 6decf0b3779f..e032279f0c6a 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterUpdate.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterUpdate.cs @@ -1,93 +1,93 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; /// A partial update to the RedisEnterprise cluster public partial class ClusterUpdate : - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdate, - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdate, + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal { /// DNS name of the cluster endpoint [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public string HostName { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)Property).HostName; } + public string HostName { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)Property).HostName; } /// Internal Acessors for HostName - string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal.HostName { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)Property).HostName; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)Property).HostName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal.HostName { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)Property).HostName; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)Property).HostName = value; } /// Internal Acessors for PrivateEndpointConnection - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnection[] Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal.PrivateEndpointConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)Property).PrivateEndpointConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)Property).PrivateEndpointConnection = value; } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnection[] Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal.PrivateEndpointConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)Property).PrivateEndpointConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)Property).PrivateEndpointConnection = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterProperties Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ClusterProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterProperties Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ClusterProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for RedisVersion - string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal.RedisVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)Property).RedisVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)Property).RedisVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal.RedisVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)Property).RedisVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)Property).RedisVersion = value; } /// Internal Acessors for ResourceState - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal.ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)Property).ResourceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)Property).ResourceState = value; } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal.ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)Property).ResourceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)Property).ResourceState = value; } /// Internal Acessors for Sku - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISku Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.Sku()); set { {_sku = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISku Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.Sku()); set { {_sku = value;} } } /// The minimum TLS version for the cluster to support, e.g. '1.2' [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public string MinimumTlsVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)Property).MinimumTlsVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)Property).MinimumTlsVersion = value; } + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion? MinimumTlsVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)Property).MinimumTlsVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)Property).MinimumTlsVersion = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion)""); } /// /// List of private endpoint connections associated with the specified RedisEnterprise cluster /// [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnection[] PrivateEndpointConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)Property).PrivateEndpointConnection; } + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnection[] PrivateEndpointConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)Property).PrivateEndpointConnection; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterProperties _property; /// Other properties of the cluster. [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ClusterProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ClusterProperties()); set => this._property = value; } /// Current provisioning status of the cluster [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)Property).ProvisioningState; } /// Version of redis the cluster supports, e.g. '6' [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public string RedisVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)Property).RedisVersion; } + public string RedisVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)Property).RedisVersion; } /// Current resource status of the cluster [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState? ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterPropertiesInternal)Property).ResourceState; } + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState? ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterPropertiesInternal)Property).ResourceState; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISku _sku; + private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISku _sku; /// The SKU to create, which affects price, performance, and features. [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISku Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.Sku()); set => this._sku = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISku Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.Sku()); set => this._sku = value; } /// /// The size of the RedisEnterprise cluster. Defaults to 2 or 3 depending on SKU. Valid values are (2, 4, 6, ...) for Enterprise /// SKUs and (3, 9, 15, ...) for Flash SKUs. /// [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public int? SkuCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISkuInternal)Sku).Capacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISkuInternal)Sku).Capacity = value; } + public int? SkuCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISkuInternal)Sku).Capacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISkuInternal)Sku).Capacity = value ?? default(int); } /// /// The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.) /// [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISkuInternal)Sku).Name = value; } + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName? SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISkuInternal)Sku).Name = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName)""); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateTags _tag; /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ClusterUpdateTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ClusterUpdateTags()); set => this._tag = value; } /// Creates an new instance. public ClusterUpdate() @@ -113,8 +113,8 @@ public partial interface IClusterUpdate : ReadOnly = false, Description = @"The minimum TLS version for the cluster to support, e.g. '1.2'", SerializedName = @"minimumTlsVersion", - PossibleTypes = new [] { typeof(string) })] - string MinimumTlsVersion { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion) })] + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion? MinimumTlsVersion { get; set; } /// /// List of private endpoint connections associated with the specified RedisEnterprise cluster /// @@ -164,20 +164,20 @@ public partial interface IClusterUpdate : /// The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.) /// [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.)", SerializedName = @"name", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName) })] - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName SkuName { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName? SkuName { get; set; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = false, ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateTags) })] - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateTags) })] + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateTags Tag { get; set; } } /// A partial update to the RedisEnterprise cluster @@ -187,13 +187,13 @@ internal partial interface IClusterUpdateInternal /// DNS name of the cluster endpoint string HostName { get; set; } /// The minimum TLS version for the cluster to support, e.g. '1.2' - string MinimumTlsVersion { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion? MinimumTlsVersion { get; set; } /// /// List of private endpoint connections associated with the specified RedisEnterprise cluster /// Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnection[] PrivateEndpointConnection { get; set; } /// Other properties of the cluster. - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterProperties Property { get; set; } /// Current provisioning status of the cluster Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState? ProvisioningState { get; set; } /// Version of redis the cluster supports, e.g. '6' @@ -201,7 +201,7 @@ internal partial interface IClusterUpdateInternal /// Current resource status of the cluster Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState? ResourceState { get; set; } /// The SKU to create, which affects price, performance, and features. - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISku Sku { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISku Sku { get; set; } /// /// The size of the RedisEnterprise cluster. Defaults to 2 or 3 depending on SKU. Valid values are (2, 4, 6, ...) for Enterprise /// SKUs and (3, 9, 15, ...) for Flash SKUs. @@ -210,9 +210,9 @@ internal partial interface IClusterUpdateInternal /// /// The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.) /// - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName SkuName { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName? SkuName { get; set; } /// Resource tags. - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateTags Tag { get; set; } } } \ No newline at end of file diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterUpdate.json.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterUpdate.json.cs similarity index 92% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterUpdate.json.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterUpdate.json.cs index 4ba411fe3757..eb9698528fef 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterUpdate.json.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterUpdate.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; @@ -58,20 +58,20 @@ internal ClusterUpdate(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.R { return; } - {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.Sku.FromJson(__jsonSku) : Sku;} - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ClusterProperties.FromJson(__jsonProperties) : Property;} - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ClusterUpdateTags.FromJson(__jsonTags) : Tag;} + {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.Sku.FromJson(__jsonSku) : Sku;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ClusterProperties.FromJson(__jsonProperties) : Property;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ClusterUpdateTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdate. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdate. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdate. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdate. /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject json ? new ClusterUpdate(json) : null; } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterUpdateTags.PowerShell.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterUpdateTags.PowerShell.cs similarity index 86% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterUpdateTags.PowerShell.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterUpdateTags.PowerShell.cs index 00a00a0f052a..70771b850ab3 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterUpdateTags.PowerShell.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterUpdateTags.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class ClusterUpdateTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -67,7 +67,7 @@ internal ClusterUpdateTags(global::System.Collections.IDictionary content) } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -86,29 +86,29 @@ internal ClusterUpdateTags(global::System.Management.Automation.PSObject content } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ClusterUpdateTags(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ClusterUpdateTags(content); } @@ -118,7 +118,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterUpdateTags.TypeConverter.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterUpdateTags.TypeConverter.cs similarity index 97% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterUpdateTags.TypeConverter.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterUpdateTags.TypeConverter.cs index 69c80ec68a29..5ca01b0a3a61 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterUpdateTags.TypeConverter.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterUpdateTags.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterUpdateTags.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterUpdateTags.cs similarity index 87% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterUpdateTags.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterUpdateTags.cs index c802c0be0b77..73eee9c2ce6a 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterUpdateTags.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterUpdateTags.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; /// Resource tags. public partial class ClusterUpdateTags : - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateTags, - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateTags, + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateTagsInternal { /// Creates an new instance. diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterUpdateTags.dictionary.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterUpdateTags.dictionary.cs similarity index 96% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterUpdateTags.dictionary.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterUpdateTags.dictionary.cs index fba9555d5102..f7eeeaf3dd8f 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterUpdateTags.dictionary.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterUpdateTags.dictionary.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; @@ -65,6 +65,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ClusterUpdateTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ClusterUpdateTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterUpdateTags.json.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterUpdateTags.json.cs similarity index 95% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterUpdateTags.json.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterUpdateTags.json.cs index f8689950b9e3..54dad9270601 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ClusterUpdateTags.json.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ClusterUpdateTags.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; @@ -64,13 +64,13 @@ internal ClusterUpdateTags(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCac } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject json ? new ClusterUpdateTags(json) : null; } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Database.PowerShell.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Database.PowerShell.cs new file mode 100644 index 000000000000..6b7948549d7d --- /dev/null +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Database.PowerShell.cs @@ -0,0 +1,161 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; + + /// Describes a database on the RedisEnterprise cluster + [System.ComponentModel.TypeConverter(typeof(DatabaseTypeConverter))] + public partial class Database + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Database(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.DatabasePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).EvictionPolicy = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy?) content.GetValueForProperty("EvictionPolicy",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).EvictionPolicy, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).Persistence = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistence) content.GetValueForProperty("Persistence",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).Persistence, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.PersistenceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).ClusteringPolicy = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy?) content.GetValueForProperty("ClusteringPolicy",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).ClusteringPolicy, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).ResourceState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState?) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).ResourceState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).Port = (int?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).ClientProtocol = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol?) content.GetValueForProperty("ClientProtocol",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).ClientProtocol, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).Module = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule[]) content.GetValueForProperty("Module",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).Module, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ModuleTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).PersistenceAofFrequency = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency?) content.GetValueForProperty("PersistenceAofFrequency",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).PersistenceAofFrequency, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).PersistenceRdbFrequency = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency?) content.GetValueForProperty("PersistenceRdbFrequency",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).PersistenceRdbFrequency, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).PersistenceAofEnabled = (bool?) content.GetValueForProperty("PersistenceAofEnabled",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).PersistenceAofEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).PersistenceRdbEnabled = (bool?) content.GetValueForProperty("PersistenceRdbEnabled",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).PersistenceRdbEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal Database(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.DatabasePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).EvictionPolicy = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy?) content.GetValueForProperty("EvictionPolicy",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).EvictionPolicy, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).Persistence = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistence) content.GetValueForProperty("Persistence",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).Persistence, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.PersistenceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).ClusteringPolicy = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy?) content.GetValueForProperty("ClusteringPolicy",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).ClusteringPolicy, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).ResourceState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState?) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).ResourceState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).Port = (int?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).ClientProtocol = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol?) content.GetValueForProperty("ClientProtocol",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).ClientProtocol, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).Module = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule[]) content.GetValueForProperty("Module",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).Module, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ModuleTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).PersistenceAofFrequency = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency?) content.GetValueForProperty("PersistenceAofFrequency",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).PersistenceAofFrequency, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).PersistenceRdbFrequency = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency?) content.GetValueForProperty("PersistenceRdbFrequency",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).PersistenceRdbFrequency, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).PersistenceAofEnabled = (bool?) content.GetValueForProperty("PersistenceAofEnabled",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).PersistenceAofEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).PersistenceRdbEnabled = (bool?) content.GetValueForProperty("PersistenceRdbEnabled",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal)this).PersistenceRdbEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Database(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Database(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Describes a database on the RedisEnterprise cluster + [System.ComponentModel.TypeConverter(typeof(DatabaseTypeConverter))] + public partial interface IDatabase + + { + + } +} \ No newline at end of file diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Database.TypeConverter.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Database.TypeConverter.cs similarity index 97% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Database.TypeConverter.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/Database.TypeConverter.cs index 9906170c6dd3..77772fc9d4d2 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Database.TypeConverter.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Database.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Database.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Database.cs similarity index 55% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Database.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/Database.cs index e1977f523eae..e855b04f2374 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Database.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Database.cs @@ -1,93 +1,112 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; /// Describes a database on the RedisEnterprise cluster public partial class Database : - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase, - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal, + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase, + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGenerated __resourceAutoGenerated = new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ResourceAutoGenerated(); + private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.Resource(); /// /// Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted. /// [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol? ClientProtocol { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)Property).ClientProtocol; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)Property).ClientProtocol = value; } + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol? ClientProtocol { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).ClientProtocol; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).ClientProtocol = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol)""); } /// Clustering policy - default is OSSCluster. Specified at create time. [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy? ClusteringPolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)Property).ClusteringPolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)Property).ClusteringPolicy = value; } + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy? ClusteringPolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).ClusteringPolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).ClusteringPolicy = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy)""); } /// Redis eviction policy - default is VolatileLRU [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy? EvictionPolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)Property).EvictionPolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)Property).EvictionPolicy = value; } + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy? EvictionPolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).EvictionPolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).EvictionPolicy = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy)""); } /// /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__resource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__resource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__resource).Name = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__resource).Type = value; } + + /// Internal Acessors for Persistence + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistence Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal.Persistence { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).Persistence; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).Persistence = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseProperties Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.DatabaseProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseProperties Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.DatabaseProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for ResourceState - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseInternal.ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)Property).ResourceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)Property).ResourceState = value; } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseInternal.ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).ResourceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).ResourceState = value; } /// /// Optional set of redis modules to enable in this database - modules can only be added at creation time. /// [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule[] Module { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)Property).Module; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)Property).Module = value; } + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule[] Module { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).Module; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).Module = value ?? null /* arrayOf */; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__resource).Name; } + + /// Sets whether AOF is enabled. + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] + public bool? PersistenceAofEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).PersistenceAofEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).PersistenceAofEnabled = value ?? default(bool); } + + /// Sets the frequency at which data is written to disk. + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency? PersistenceAofFrequency { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).PersistenceAofFrequency; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).PersistenceAofFrequency = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency)""); } + + /// Sets whether RDB is enabled. + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] + public bool? PersistenceRdbEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).PersistenceRdbEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).PersistenceRdbEnabled = value ?? default(bool); } + + /// Sets the frequency at which a snapshot of the database is created. + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency? PersistenceRdbFrequency { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).PersistenceRdbFrequency; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).PersistenceRdbFrequency = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency)""); } /// /// TCP port of the database endpoint. Specified at create time. Defaults to an available port. /// [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public int? Port { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)Property).Port; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)Property).Port = value; } + public int? Port { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).Port; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).Port = value ?? default(int); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseProperties _property; /// Other properties of the database. [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.DatabaseProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.DatabaseProperties()); set => this._property = value; } /// Current provisioning status of the database [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).ProvisioningState; } /// Current resource status of the database [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState? ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)Property).ResourceState; } + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState? ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).ResourceState; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal)__resource).Type; } /// Creates an new instance. public Database() @@ -103,14 +122,14 @@ public Database() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resourceAutoGenerated), __resourceAutoGenerated); - await eventListener.AssertObjectIsValid(nameof(__resourceAutoGenerated), __resourceAutoGenerated); + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); } } /// Describes a database on the RedisEnterprise cluster public partial interface IDatabase : Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGenerated + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResource { /// /// Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted. @@ -146,8 +165,40 @@ public partial interface IDatabase : ReadOnly = false, Description = @"Optional set of redis modules to enable in this database - modules can only be added at creation time.", SerializedName = @"modules", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule) })] - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule[] Module { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule) })] + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule[] Module { get; set; } + /// Sets whether AOF is enabled. + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets whether AOF is enabled.", + SerializedName = @"aofEnabled", + PossibleTypes = new [] { typeof(bool) })] + bool? PersistenceAofEnabled { get; set; } + /// Sets the frequency at which data is written to disk. + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets the frequency at which data is written to disk.", + SerializedName = @"aofFrequency", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency) })] + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency? PersistenceAofFrequency { get; set; } + /// Sets whether RDB is enabled. + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets whether RDB is enabled.", + SerializedName = @"rdbEnabled", + PossibleTypes = new [] { typeof(bool) })] + bool? PersistenceRdbEnabled { get; set; } + /// Sets the frequency at which a snapshot of the database is created. + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets the frequency at which a snapshot of the database is created.", + SerializedName = @"rdbFrequency", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency) })] + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency? PersistenceRdbFrequency { get; set; } /// /// TCP port of the database endpoint. Specified at create time. Defaults to an available port. /// @@ -178,7 +229,7 @@ public partial interface IDatabase : } /// Describes a database on the RedisEnterprise cluster internal partial interface IDatabaseInternal : - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IResourceInternal { /// /// Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted. @@ -191,13 +242,23 @@ internal partial interface IDatabaseInternal : /// /// Optional set of redis modules to enable in this database - modules can only be added at creation time. /// - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule[] Module { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule[] Module { get; set; } + /// Persistence settings + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistence Persistence { get; set; } + /// Sets whether AOF is enabled. + bool? PersistenceAofEnabled { get; set; } + /// Sets the frequency at which data is written to disk. + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency? PersistenceAofFrequency { get; set; } + /// Sets whether RDB is enabled. + bool? PersistenceRdbEnabled { get; set; } + /// Sets the frequency at which a snapshot of the database is created. + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency? PersistenceRdbFrequency { get; set; } /// /// TCP port of the database endpoint. Specified at create time. Defaults to an available port. /// int? Port { get; set; } /// Other properties of the database. - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseProperties Property { get; set; } /// Current provisioning status of the database Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState? ProvisioningState { get; set; } /// Current resource status of the database diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Database.json.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Database.json.cs similarity index 91% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Database.json.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/Database.json.cs index 0ab825e41651..87c9ce3ad614 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Database.json.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Database.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; @@ -58,19 +58,19 @@ internal Database(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtim { return; } - __resourceAutoGenerated = new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ResourceAutoGenerated(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.DatabaseProperties.FromJson(__jsonProperties) : Property;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.DatabaseProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase. /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject json ? new Database(json) : null; } @@ -94,7 +94,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.Json { return container; } - __resourceAutoGenerated?.ToJson(container, serializationMode); + __resource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AfterToJson(ref container); return container; diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseList.PowerShell.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseList.PowerShell.cs similarity index 71% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseList.PowerShell.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseList.PowerShell.cs index f49c0dd22833..b0e7b39ebb31 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseList.PowerShell.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseList.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class DatabaseList partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,13 +61,13 @@ internal DatabaseList(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.DatabaseTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.DatabaseTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseListInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -80,35 +80,33 @@ internal DatabaseList(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.DatabaseTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.DatabaseTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseListInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseList DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DatabaseList(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DatabaseList(content); } @@ -118,7 +116,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseList.TypeConverter.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseList.TypeConverter.cs similarity index 97% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseList.TypeConverter.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseList.TypeConverter.cs index 2df13a9ad338..18892081a393 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseList.TypeConverter.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseList.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseList.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseList.cs similarity index 82% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseList.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseList.cs index 84fc10f6732b..84c2fef5dd71 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseList.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseList.cs @@ -1,15 +1,15 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; /// The response of a list-all operation. public partial class DatabaseList : - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseList, - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseListInternal + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseList, + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseListInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Backing field for property. private string _nextLink; @@ -19,11 +19,11 @@ public partial class DatabaseList : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase[] _value; /// List of databases [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public DatabaseList() @@ -49,8 +49,8 @@ public partial interface IDatabaseList : ReadOnly = false, Description = @"List of databases", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase) })] - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase) })] + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase[] Value { get; set; } } /// The response of a list-all operation. @@ -60,7 +60,7 @@ internal partial interface IDatabaseListInternal /// The URI to fetch the next page of results. string NextLink { get; set; } /// List of databases - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase[] Value { get; set; } } } \ No newline at end of file diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseList.json.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseList.json.cs similarity index 91% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseList.json.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseList.json.cs index b0a87c775ee4..c3cb4c704d8e 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseList.json.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseList.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; @@ -58,19 +58,19 @@ internal DatabaseList(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Ru { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase) (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.Database.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase) (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.Database.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseList FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseList FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject json ? new DatabaseList(json) : null; } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseProperties.PowerShell.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseProperties.PowerShell.cs new file mode 100644 index 000000000000..ceee210518ef --- /dev/null +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseProperties.PowerShell.cs @@ -0,0 +1,157 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; + + /// + /// Properties of RedisEnterprise databases, as opposed to general resource properties like location, tags + /// + [System.ComponentModel.TypeConverter(typeof(DatabasePropertiesTypeConverter))] + public partial class DatabaseProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DatabaseProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).Persistence = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistence) content.GetValueForProperty("Persistence",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).Persistence, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.PersistenceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).ClientProtocol = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol?) content.GetValueForProperty("ClientProtocol",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).ClientProtocol, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).Port = (int?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).ResourceState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState?) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).ResourceState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).ClusteringPolicy = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy?) content.GetValueForProperty("ClusteringPolicy",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).ClusteringPolicy, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).EvictionPolicy = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy?) content.GetValueForProperty("EvictionPolicy",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).EvictionPolicy, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).Module = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule[]) content.GetValueForProperty("Module",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).Module, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ModuleTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).PersistenceAofFrequency = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency?) content.GetValueForProperty("PersistenceAofFrequency",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).PersistenceAofFrequency, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).PersistenceRdbFrequency = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency?) content.GetValueForProperty("PersistenceRdbFrequency",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).PersistenceRdbFrequency, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).PersistenceAofEnabled = (bool?) content.GetValueForProperty("PersistenceAofEnabled",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).PersistenceAofEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).PersistenceRdbEnabled = (bool?) content.GetValueForProperty("PersistenceRdbEnabled",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).PersistenceRdbEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DatabaseProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).Persistence = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistence) content.GetValueForProperty("Persistence",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).Persistence, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.PersistenceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).ClientProtocol = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol?) content.GetValueForProperty("ClientProtocol",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).ClientProtocol, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).Port = (int?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).ResourceState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState?) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).ResourceState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).ClusteringPolicy = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy?) content.GetValueForProperty("ClusteringPolicy",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).ClusteringPolicy, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).EvictionPolicy = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy?) content.GetValueForProperty("EvictionPolicy",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).EvictionPolicy, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).Module = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule[]) content.GetValueForProperty("Module",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).Module, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ModuleTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).PersistenceAofFrequency = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency?) content.GetValueForProperty("PersistenceAofFrequency",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).PersistenceAofFrequency, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).PersistenceRdbFrequency = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency?) content.GetValueForProperty("PersistenceRdbFrequency",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).PersistenceRdbFrequency, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).PersistenceAofEnabled = (bool?) content.GetValueForProperty("PersistenceAofEnabled",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).PersistenceAofEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).PersistenceRdbEnabled = (bool?) content.GetValueForProperty("PersistenceRdbEnabled",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)this).PersistenceRdbEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DatabaseProperties(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DatabaseProperties(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Properties of RedisEnterprise databases, as opposed to general resource properties like location, tags + [System.ComponentModel.TypeConverter(typeof(DatabasePropertiesTypeConverter))] + public partial interface IDatabaseProperties + + { + + } +} \ No newline at end of file diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseProperties.TypeConverter.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseProperties.TypeConverter.cs similarity index 97% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseProperties.TypeConverter.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseProperties.TypeConverter.cs index 3abd924c91ce..e0c74df6f98f 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseProperties.TypeConverter.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseProperties.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseProperties.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseProperties.cs similarity index 60% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseProperties.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseProperties.cs index b1facd052f15..31c8ba632e60 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseProperties.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseProperties.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; @@ -6,8 +6,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api2020 /// Properties of RedisEnterprise databases, as opposed to general resource properties like location, tags /// public partial class DatabaseProperties : - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseProperties, - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseProperties, + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal { /// Backing field for property. @@ -33,20 +33,46 @@ public partial class DatabaseProperties : [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Owned)] public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy? EvictionPolicy { get => this._evictionPolicy; set => this._evictionPolicy = value; } + /// Internal Acessors for Persistence + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistence Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal.Persistence { get => (this._persistence = this._persistence ?? new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.Persistence()); set { {_persistence = value;} } } + /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for ResourceState - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal.ResourceState { get => this._resourceState; set { {_resourceState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal.ResourceState { get => this._resourceState; set { {_resourceState = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule[] _module; + private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule[] _module; /// /// Optional set of redis modules to enable in this database - modules can only be added at creation time. /// [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule[] Module { get => this._module; set => this._module = value; } + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule[] Module { get => this._module; set => this._module = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistence _persistence; + + /// Persistence settings + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistence Persistence { get => (this._persistence = this._persistence ?? new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.Persistence()); set => this._persistence = value; } + + /// Sets whether AOF is enabled. + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] + public bool? PersistenceAofEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistenceInternal)Persistence).AofEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistenceInternal)Persistence).AofEnabled = value ?? default(bool); } + + /// Sets the frequency at which data is written to disk. + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency? PersistenceAofFrequency { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistenceInternal)Persistence).AofFrequency; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistenceInternal)Persistence).AofFrequency = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency)""); } + + /// Sets whether RDB is enabled. + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] + public bool? PersistenceRdbEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistenceInternal)Persistence).RdbEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistenceInternal)Persistence).RdbEnabled = value ?? default(bool); } + + /// Sets the frequency at which a snapshot of the database is created. + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency? PersistenceRdbFrequency { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistenceInternal)Persistence).RdbFrequency; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistenceInternal)Persistence).RdbFrequency = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency)""); } /// Backing field for property. private int? _port; @@ -115,8 +141,40 @@ public partial interface IDatabaseProperties : ReadOnly = false, Description = @"Optional set of redis modules to enable in this database - modules can only be added at creation time.", SerializedName = @"modules", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule) })] - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule[] Module { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule) })] + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule[] Module { get; set; } + /// Sets whether AOF is enabled. + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets whether AOF is enabled.", + SerializedName = @"aofEnabled", + PossibleTypes = new [] { typeof(bool) })] + bool? PersistenceAofEnabled { get; set; } + /// Sets the frequency at which data is written to disk. + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets the frequency at which data is written to disk.", + SerializedName = @"aofFrequency", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency) })] + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency? PersistenceAofFrequency { get; set; } + /// Sets whether RDB is enabled. + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets whether RDB is enabled.", + SerializedName = @"rdbEnabled", + PossibleTypes = new [] { typeof(bool) })] + bool? PersistenceRdbEnabled { get; set; } + /// Sets the frequency at which a snapshot of the database is created. + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets the frequency at which a snapshot of the database is created.", + SerializedName = @"rdbFrequency", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency) })] + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency? PersistenceRdbFrequency { get; set; } /// /// TCP port of the database endpoint. Specified at create time. Defaults to an available port. /// @@ -160,7 +218,17 @@ internal partial interface IDatabasePropertiesInternal /// /// Optional set of redis modules to enable in this database - modules can only be added at creation time. /// - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule[] Module { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule[] Module { get; set; } + /// Persistence settings + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistence Persistence { get; set; } + /// Sets whether AOF is enabled. + bool? PersistenceAofEnabled { get; set; } + /// Sets the frequency at which data is written to disk. + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency? PersistenceAofFrequency { get; set; } + /// Sets whether RDB is enabled. + bool? PersistenceRdbEnabled { get; set; } + /// Sets the frequency at which a snapshot of the database is created. + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency? PersistenceRdbFrequency { get; set; } /// /// TCP port of the database endpoint. Specified at create time. Defaults to an available port. /// diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseProperties.json.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseProperties.json.cs similarity index 90% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseProperties.json.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseProperties.json.cs index 6056bd9c5732..ebc91d0b9628 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseProperties.json.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseProperties.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; @@ -60,24 +60,25 @@ internal DatabaseProperties(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCa { return; } + {_persistence = If( json?.PropertyT("persistence"), out var __jsonPersistence) ? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.Persistence.FromJson(__jsonPersistence) : Persistence;} {_clientProtocol = If( json?.PropertyT("clientProtocol"), out var __jsonClientProtocol) ? (string)__jsonClientProtocol : (string)ClientProtocol;} {_port = If( json?.PropertyT("port"), out var __jsonPort) ? (int?)__jsonPort : Port;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} {_resourceState = If( json?.PropertyT("resourceState"), out var __jsonResourceState) ? (string)__jsonResourceState : (string)ResourceState;} {_clusteringPolicy = If( json?.PropertyT("clusteringPolicy"), out var __jsonClusteringPolicy) ? (string)__jsonClusteringPolicy : (string)ClusteringPolicy;} {_evictionPolicy = If( json?.PropertyT("evictionPolicy"), out var __jsonEvictionPolicy) ? (string)__jsonEvictionPolicy : (string)EvictionPolicy;} - {_module = If( json?.PropertyT("modules"), out var __jsonModules) ? If( __jsonModules as Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule) (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.Module.FromJson(__u) )) ))() : null : Module;} + {_module = If( json?.PropertyT("modules"), out var __jsonModules) ? If( __jsonModules as Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule) (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.Module.FromJson(__u) )) ))() : null : Module;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject json ? new DatabaseProperties(json) : null; } @@ -101,6 +102,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.Json { return container; } + AddIf( null != this._persistence ? (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode) this._persistence.ToJson(null,serializationMode) : null, "persistence" ,container.Add ); AddIf( null != (((object)this._clientProtocol)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonString(this._clientProtocol.ToString()) : null, "clientProtocol" ,container.Add ); AddIf( null != this._port ? (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNumber((int)this._port) : null, "port" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SerializationMode.IncludeReadOnly)) diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseUpdate.PowerShell.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseUpdate.PowerShell.cs new file mode 100644 index 000000000000..0d0e42b5114e --- /dev/null +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseUpdate.PowerShell.cs @@ -0,0 +1,157 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; + + /// A partial update to the RedisEnterprise database + [System.ComponentModel.TypeConverter(typeof(DatabaseUpdateTypeConverter))] + public partial class DatabaseUpdate + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DatabaseUpdate(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.DatabasePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).EvictionPolicy = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy?) content.GetValueForProperty("EvictionPolicy",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).EvictionPolicy, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).Persistence = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistence) content.GetValueForProperty("Persistence",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).Persistence, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.PersistenceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).ClusteringPolicy = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy?) content.GetValueForProperty("ClusteringPolicy",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).ClusteringPolicy, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).ResourceState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState?) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).ResourceState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).Port = (int?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).ClientProtocol = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol?) content.GetValueForProperty("ClientProtocol",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).ClientProtocol, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).Module = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule[]) content.GetValueForProperty("Module",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).Module, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ModuleTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).PersistenceAofFrequency = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency?) content.GetValueForProperty("PersistenceAofFrequency",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).PersistenceAofFrequency, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).PersistenceRdbFrequency = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency?) content.GetValueForProperty("PersistenceRdbFrequency",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).PersistenceRdbFrequency, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).PersistenceAofEnabled = (bool?) content.GetValueForProperty("PersistenceAofEnabled",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).PersistenceAofEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).PersistenceRdbEnabled = (bool?) content.GetValueForProperty("PersistenceRdbEnabled",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).PersistenceRdbEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DatabaseUpdate(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.DatabasePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).EvictionPolicy = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy?) content.GetValueForProperty("EvictionPolicy",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).EvictionPolicy, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).Persistence = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistence) content.GetValueForProperty("Persistence",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).Persistence, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.PersistenceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).ClusteringPolicy = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy?) content.GetValueForProperty("ClusteringPolicy",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).ClusteringPolicy, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).ResourceState = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState?) content.GetValueForProperty("ResourceState",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).ResourceState, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).Port = (int?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).ClientProtocol = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol?) content.GetValueForProperty("ClientProtocol",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).ClientProtocol, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).Module = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule[]) content.GetValueForProperty("Module",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).Module, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ModuleTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).PersistenceAofFrequency = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency?) content.GetValueForProperty("PersistenceAofFrequency",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).PersistenceAofFrequency, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).PersistenceRdbFrequency = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency?) content.GetValueForProperty("PersistenceRdbFrequency",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).PersistenceRdbFrequency, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).PersistenceAofEnabled = (bool?) content.GetValueForProperty("PersistenceAofEnabled",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).PersistenceAofEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).PersistenceRdbEnabled = (bool?) content.GetValueForProperty("PersistenceRdbEnabled",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal)this).PersistenceRdbEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DatabaseUpdate(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DatabaseUpdate(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A partial update to the RedisEnterprise database + [System.ComponentModel.TypeConverter(typeof(DatabaseUpdateTypeConverter))] + public partial interface IDatabaseUpdate + + { + + } +} \ No newline at end of file diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseUpdate.TypeConverter.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseUpdate.TypeConverter.cs similarity index 97% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseUpdate.TypeConverter.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseUpdate.TypeConverter.cs index 745ef6d237c7..001e1f4583fc 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseUpdate.TypeConverter.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseUpdate.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdate ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdate ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdate).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdate).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseUpdate.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseUpdate.cs similarity index 52% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseUpdate.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseUpdate.cs index 221cad7688a3..af51670af9a4 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseUpdate.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseUpdate.cs @@ -1,62 +1,81 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; /// A partial update to the RedisEnterprise database public partial class DatabaseUpdate : - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdate, - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdate, + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal { /// /// Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted. /// [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol? ClientProtocol { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)Property).ClientProtocol; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)Property).ClientProtocol = value; } + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol? ClientProtocol { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).ClientProtocol; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).ClientProtocol = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol)""); } /// Clustering policy - default is OSSCluster. Specified at create time. [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy? ClusteringPolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)Property).ClusteringPolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)Property).ClusteringPolicy = value; } + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy? ClusteringPolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).ClusteringPolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).ClusteringPolicy = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy)""); } /// Redis eviction policy - default is VolatileLRU [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy? EvictionPolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)Property).EvictionPolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)Property).EvictionPolicy = value; } + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy? EvictionPolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).EvictionPolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).EvictionPolicy = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy)""); } + + /// Internal Acessors for Persistence + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistence Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal.Persistence { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).Persistence; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).Persistence = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseProperties Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.DatabaseProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseProperties Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.DatabaseProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for ResourceState - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdateInternal.ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)Property).ResourceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)Property).ResourceState = value; } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdateInternal.ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).ResourceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).ResourceState = value; } /// /// Optional set of redis modules to enable in this database - modules can only be added at creation time. /// [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule[] Module { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)Property).Module; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)Property).Module = value; } + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule[] Module { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).Module; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).Module = value ?? null /* arrayOf */; } + + /// Sets whether AOF is enabled. + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] + public bool? PersistenceAofEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).PersistenceAofEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).PersistenceAofEnabled = value ?? default(bool); } + + /// Sets the frequency at which data is written to disk. + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency? PersistenceAofFrequency { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).PersistenceAofFrequency; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).PersistenceAofFrequency = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency)""); } + + /// Sets whether RDB is enabled. + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] + public bool? PersistenceRdbEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).PersistenceRdbEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).PersistenceRdbEnabled = value ?? default(bool); } + + /// Sets the frequency at which a snapshot of the database is created. + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency? PersistenceRdbFrequency { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).PersistenceRdbFrequency; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).PersistenceRdbFrequency = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency)""); } /// /// TCP port of the database endpoint. Specified at create time. Defaults to an available port. /// [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public int? Port { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)Property).Port; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)Property).Port = value; } + public int? Port { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).Port; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).Port = value ?? default(int); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseProperties _property; /// Properties of the database. [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.DatabaseProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.DatabaseProperties()); set => this._property = value; } /// Current provisioning status of the database [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).ProvisioningState; } /// Current resource status of the database [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState? ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabasePropertiesInternal)Property).ResourceState; } + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ResourceState? ResourceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabasePropertiesInternal)Property).ResourceState; } /// Creates an new instance. public DatabaseUpdate() @@ -102,8 +121,40 @@ public partial interface IDatabaseUpdate : ReadOnly = false, Description = @"Optional set of redis modules to enable in this database - modules can only be added at creation time.", SerializedName = @"modules", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule) })] - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule[] Module { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule) })] + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule[] Module { get; set; } + /// Sets whether AOF is enabled. + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets whether AOF is enabled.", + SerializedName = @"aofEnabled", + PossibleTypes = new [] { typeof(bool) })] + bool? PersistenceAofEnabled { get; set; } + /// Sets the frequency at which data is written to disk. + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets the frequency at which data is written to disk.", + SerializedName = @"aofFrequency", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency) })] + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency? PersistenceAofFrequency { get; set; } + /// Sets whether RDB is enabled. + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets whether RDB is enabled.", + SerializedName = @"rdbEnabled", + PossibleTypes = new [] { typeof(bool) })] + bool? PersistenceRdbEnabled { get; set; } + /// Sets the frequency at which a snapshot of the database is created. + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets the frequency at which a snapshot of the database is created.", + SerializedName = @"rdbFrequency", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency) })] + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency? PersistenceRdbFrequency { get; set; } /// /// TCP port of the database endpoint. Specified at create time. Defaults to an available port. /// @@ -147,13 +198,23 @@ internal partial interface IDatabaseUpdateInternal /// /// Optional set of redis modules to enable in this database - modules can only be added at creation time. /// - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule[] Module { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule[] Module { get; set; } + /// Persistence settings + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistence Persistence { get; set; } + /// Sets whether AOF is enabled. + bool? PersistenceAofEnabled { get; set; } + /// Sets the frequency at which data is written to disk. + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency? PersistenceAofFrequency { get; set; } + /// Sets whether RDB is enabled. + bool? PersistenceRdbEnabled { get; set; } + /// Sets the frequency at which a snapshot of the database is created. + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency? PersistenceRdbFrequency { get; set; } /// /// TCP port of the database endpoint. Specified at create time. Defaults to an available port. /// int? Port { get; set; } /// Properties of the database. - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseProperties Property { get; set; } /// Current provisioning status of the database Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ProvisioningState? ProvisioningState { get; set; } /// Current resource status of the database diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseUpdate.json.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseUpdate.json.cs similarity index 94% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseUpdate.json.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseUpdate.json.cs index 25804ac8e7d7..0200433c70b3 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/DatabaseUpdate.json.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/DatabaseUpdate.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; @@ -58,18 +58,18 @@ internal DatabaseUpdate(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache. { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.DatabaseProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.DatabaseProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdate. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdate. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdate. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdate. /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject json ? new DatabaseUpdate(json) : null; } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ExportClusterParameters.PowerShell.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ExportClusterParameters.PowerShell.cs similarity index 80% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ExportClusterParameters.PowerShell.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/ExportClusterParameters.PowerShell.cs index 9a287a4df5b9..d495853fc115 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ExportClusterParameters.PowerShell.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ExportClusterParameters.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; @@ -48,35 +48,35 @@ public partial class ExportClusterParameters partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IExportClusterParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IExportClusterParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ExportClusterParameters(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IExportClusterParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IExportClusterParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ExportClusterParameters(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -89,12 +89,12 @@ internal ExportClusterParameters(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IExportClusterParametersInternal)this).SasUri = (string) content.GetValueForProperty("SasUri",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IExportClusterParametersInternal)this).SasUri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IExportClusterParametersInternal)this).SasUri = (string) content.GetValueForProperty("SasUri",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IExportClusterParametersInternal)this).SasUri, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -107,7 +107,7 @@ internal ExportClusterParameters(global::System.Management.Automation.PSObject c return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IExportClusterParametersInternal)this).SasUri = (string) content.GetValueForProperty("SasUri",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IExportClusterParametersInternal)this).SasUri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IExportClusterParametersInternal)this).SasUri = (string) content.GetValueForProperty("SasUri",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IExportClusterParametersInternal)this).SasUri, global::System.Convert.ToString); AfterDeserializePSObject(content); } @@ -116,7 +116,7 @@ internal ExportClusterParameters(global::System.Management.Automation.PSObject c /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IExportClusterParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IExportClusterParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ExportClusterParameters.TypeConverter.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ExportClusterParameters.TypeConverter.cs similarity index 97% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ExportClusterParameters.TypeConverter.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/ExportClusterParameters.TypeConverter.cs index f8d9afba3c9b..4fb22cdd0da4 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ExportClusterParameters.TypeConverter.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ExportClusterParameters.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IExportClusterParameters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IExportClusterParameters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IExportClusterParameters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IExportClusterParameters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ExportClusterParameters.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ExportClusterParameters.cs similarity index 80% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ExportClusterParameters.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/ExportClusterParameters.cs index fd4a7f8122c5..2c9a3d5ff9c5 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ExportClusterParameters.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ExportClusterParameters.cs @@ -1,17 +1,17 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; /// Parameters for a Redis Enterprise export operation. public partial class ExportClusterParameters : - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IExportClusterParameters, - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IExportClusterParametersInternal + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IExportClusterParameters, + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IExportClusterParametersInternal { /// Backing field for property. private string _sasUri; - /// SAS Uri for the target directory to export to + /// SAS URI for the target directory to export to [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Owned)] public string SasUri { get => this._sasUri; set => this._sasUri = value; } @@ -25,11 +25,11 @@ public ExportClusterParameters() public partial interface IExportClusterParameters : Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IJsonSerializable { - /// SAS Uri for the target directory to export to + /// SAS URI for the target directory to export to [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"SAS Uri for the target directory to export to", + Description = @"SAS URI for the target directory to export to", SerializedName = @"sasUri", PossibleTypes = new [] { typeof(string) })] string SasUri { get; set; } @@ -39,7 +39,7 @@ public partial interface IExportClusterParameters : internal partial interface IExportClusterParametersInternal { - /// SAS Uri for the target directory to export to + /// SAS URI for the target directory to export to string SasUri { get; set; } } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ExportClusterParameters.json.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ExportClusterParameters.json.cs similarity index 95% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ExportClusterParameters.json.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/ExportClusterParameters.json.cs index c01661a66e7a..5910481b7893 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ExportClusterParameters.json.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ExportClusterParameters.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; @@ -63,13 +63,13 @@ internal ExportClusterParameters(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpr } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IExportClusterParameters. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IExportClusterParameters. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IExportClusterParameters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IExportClusterParameters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IExportClusterParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IExportClusterParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject json ? new ExportClusterParameters(json) : null; } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ImportClusterParameters.PowerShell.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ImportClusterParameters.PowerShell.cs similarity index 80% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ImportClusterParameters.PowerShell.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/ImportClusterParameters.PowerShell.cs index e4d5f1d5669c..434bfc3e722e 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ImportClusterParameters.PowerShell.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ImportClusterParameters.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; @@ -48,29 +48,29 @@ public partial class ImportClusterParameters partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IImportClusterParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IImportClusterParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ImportClusterParameters(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IImportClusterParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IImportClusterParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ImportClusterParameters(content); } @@ -80,10 +80,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IImportClusterParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IImportClusterParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,12 +96,12 @@ internal ImportClusterParameters(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IImportClusterParametersInternal)this).SasUri = (string) content.GetValueForProperty("SasUri",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IImportClusterParametersInternal)this).SasUri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IImportClusterParametersInternal)this).SasUri = (string) content.GetValueForProperty("SasUri",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IImportClusterParametersInternal)this).SasUri, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -114,7 +114,7 @@ internal ImportClusterParameters(global::System.Management.Automation.PSObject c return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IImportClusterParametersInternal)this).SasUri = (string) content.GetValueForProperty("SasUri",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IImportClusterParametersInternal)this).SasUri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IImportClusterParametersInternal)this).SasUri = (string) content.GetValueForProperty("SasUri",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IImportClusterParametersInternal)this).SasUri, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ImportClusterParameters.TypeConverter.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ImportClusterParameters.TypeConverter.cs similarity index 97% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ImportClusterParameters.TypeConverter.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/ImportClusterParameters.TypeConverter.cs index a6a94aeb7e41..f1083f1c2d9e 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ImportClusterParameters.TypeConverter.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ImportClusterParameters.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IImportClusterParameters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IImportClusterParameters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IImportClusterParameters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IImportClusterParameters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ImportClusterParameters.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ImportClusterParameters.cs similarity index 80% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ImportClusterParameters.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/ImportClusterParameters.cs index 35c878e7a4b8..2fba05b1018b 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ImportClusterParameters.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ImportClusterParameters.cs @@ -1,17 +1,17 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; /// Parameters for a Redis Enterprise import operation. public partial class ImportClusterParameters : - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IImportClusterParameters, - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IImportClusterParametersInternal + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IImportClusterParameters, + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IImportClusterParametersInternal { /// Backing field for property. private string _sasUri; - /// SAS Uri for the target blob to import from + /// SAS URI for the target blob to import from [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Owned)] public string SasUri { get => this._sasUri; set => this._sasUri = value; } @@ -25,11 +25,11 @@ public ImportClusterParameters() public partial interface IImportClusterParameters : Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IJsonSerializable { - /// SAS Uri for the target blob to import from + /// SAS URI for the target blob to import from [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"SAS Uri for the target blob to import from", + Description = @"SAS URI for the target blob to import from", SerializedName = @"sasUri", PossibleTypes = new [] { typeof(string) })] string SasUri { get; set; } @@ -39,7 +39,7 @@ public partial interface IImportClusterParameters : internal partial interface IImportClusterParametersInternal { - /// SAS Uri for the target blob to import from + /// SAS URI for the target blob to import from string SasUri { get; set; } } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ImportClusterParameters.json.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ImportClusterParameters.json.cs similarity index 95% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ImportClusterParameters.json.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/ImportClusterParameters.json.cs index 11d358031b38..b3fc621cafe8 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/ImportClusterParameters.json.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/ImportClusterParameters.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class ImportClusterParameters partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IImportClusterParameters. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IImportClusterParameters. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IImportClusterParameters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IImportClusterParameters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IImportClusterParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IImportClusterParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject json ? new ImportClusterParameters(json) : null; } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Module.PowerShell.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Module.PowerShell.cs similarity index 73% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Module.PowerShell.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/Module.PowerShell.cs index 56399403e028..e2ce617a5517 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Module.PowerShell.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Module.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; @@ -48,27 +48,27 @@ public partial class Module partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Module(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Module(content); } @@ -78,10 +78,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -94,14 +94,14 @@ internal Module(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModuleInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModuleInternal)this).Arg = (string) content.GetValueForProperty("Arg",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModuleInternal)this).Arg, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModuleInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModuleInternal)this).Version, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModuleInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModuleInternal)this).Arg = (string) content.GetValueForProperty("Arg",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModuleInternal)this).Arg, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModuleInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModuleInternal)this).Version, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -114,9 +114,9 @@ internal Module(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModuleInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModuleInternal)this).Arg = (string) content.GetValueForProperty("Arg",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModuleInternal)this).Arg, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModuleInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModuleInternal)this).Version, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModuleInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModuleInternal)this).Arg = (string) content.GetValueForProperty("Arg",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModuleInternal)this).Arg, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModuleInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModuleInternal)this).Version, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Module.TypeConverter.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Module.TypeConverter.cs similarity index 97% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Module.TypeConverter.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/Module.TypeConverter.cs index f3e73b49ebf1..220b42ca4502 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Module.TypeConverter.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Module.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Module.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Module.cs similarity index 94% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Module.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/Module.cs index d8aa18043a35..3b3127645b25 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Module.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Module.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; /// Specifies configuration of a redis module public partial class Module : - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule, - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModuleInternal + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule, + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModuleInternal { /// Backing field for property. @@ -16,7 +16,7 @@ public partial class Module : public string Arg { get => this._arg; set => this._arg = value; } /// Internal Acessors for Version - string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModuleInternal.Version { get => this._version; set { {_version = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModuleInternal.Version { get => this._version; set { {_version = value;} } } /// Backing field for property. private string _name; diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Module.json.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Module.json.cs similarity index 96% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Module.json.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/Module.json.cs index 68551de20804..ec1c0cb06f90 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Module.json.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Module.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class Module partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule. /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject json ? new Module(json) : null; } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20210301/OperationStatus.PowerShell.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/OperationStatus.PowerShell.cs new file mode 100644 index 000000000000..4a0c87cb1476 --- /dev/null +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/OperationStatus.PowerShell.cs @@ -0,0 +1,155 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; + + /// The status of a long-running operation. + [System.ComponentModel.TypeConverter(typeof(OperationStatusTypeConverter))] + public partial class OperationStatus + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatus DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new OperationStatus(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatus DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new OperationStatus(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatus FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal OperationStatus(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorResponse) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ErrorResponseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).StartTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).EndTime = (string) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).EndTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).Status, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).ErrorDetailError = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorDetail) content.GetValueForProperty("ErrorDetailError",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).ErrorDetailError, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ErrorDetailTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ErrorDetailTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal OperationStatus(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorResponse) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ErrorResponseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).StartTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).EndTime = (string) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).EndTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).Status, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).ErrorDetailError = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorDetail) content.GetValueForProperty("ErrorDetailError",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).ErrorDetailError, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ErrorDetailTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ErrorDetailTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The status of a long-running operation. + [System.ComponentModel.TypeConverter(typeof(OperationStatusTypeConverter))] + public partial interface IOperationStatus + + { + + } +} \ No newline at end of file diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/OperationStatus.TypeConverter.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/OperationStatus.TypeConverter.cs similarity index 97% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/OperationStatus.TypeConverter.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/OperationStatus.TypeConverter.cs index f62ba1399ddd..b71c733c4c73 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/OperationStatus.TypeConverter.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/OperationStatus.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatus ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatus ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatus).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatus).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/OperationStatus.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/OperationStatus.cs similarity index 84% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/OperationStatus.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/OperationStatus.cs index bfc6c8c54d75..ee0b74f2a6ec 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/OperationStatus.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/OperationStatus.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; /// The status of a long-running operation. public partial class OperationStatus : - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatus, - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatus, + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal { /// The error additional info. @@ -46,25 +46,25 @@ public partial class OperationStatus : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorResponseInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorResponseInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorResponseInternal)Error).AdditionalInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorResponseInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorResponseInternal)Error).AdditionalInfo = value; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorResponseInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorResponseInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorResponseInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorResponseInternal)Error).Code = value; } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorDetail[] Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorResponseInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorResponseInternal)Error).Detail = value; } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorDetail[] Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorResponseInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorResponseInternal)Error).Detail = value; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorResponse Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ErrorResponse()); set { {_error = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorResponse Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ErrorResponse()); set { {_error = value;} } } /// Internal Acessors for ErrorDetailError - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal.ErrorDetailError { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorResponseInternal)Error).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorResponseInternal)Error).Error = value; } + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal.ErrorDetailError { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorResponseInternal)Error).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorResponseInternal)Error).Error = value; } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorResponseInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorResponseInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorResponseInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorResponseInternal)Error).Message = value; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatusInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorResponseInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorResponseInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatusInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorResponseInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IErrorResponseInternal)Error).Target = value; } /// Backing field for property. private string _name; diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/OperationStatus.json.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/OperationStatus.json.cs similarity index 96% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/OperationStatus.json.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/OperationStatus.json.cs index 4149bc038302..9c4fe81b4599 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/OperationStatus.json.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/OperationStatus.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class OperationStatus partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatus. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatus. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatus. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatus. /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatus FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatus FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject json ? new OperationStatus(json) : null; } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20/ResourceAutoGenerated.PowerShell.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Persistence.PowerShell.cs similarity index 57% rename from src/RedisEnterpriseCache/generated/api/Models/Api20/ResourceAutoGenerated.PowerShell.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/Persistence.PowerShell.cs index d7e78d7f4a46..a64e097f5ed5 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20/ResourceAutoGenerated.PowerShell.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Persistence.PowerShell.cs @@ -1,12 +1,10 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; - /// - /// Common fields that are returned in the response for all Azure Resource Manager resources - /// - [System.ComponentModel.TypeConverter(typeof(ResourceAutoGeneratedTypeConverter))] - public partial class ResourceAutoGenerated + /// Persistence-related configuration for the RedisEnterprise database + [System.ComponentModel.TypeConverter(typeof(PersistenceTypeConverter))] + public partial class Persistence { /// @@ -50,46 +48,44 @@ public partial class ResourceAutoGenerated partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistence DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new ResourceAutoGenerated(content); + return new Persistence(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistence DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new ResourceAutoGenerated(content); + return new Persistence(content); } /// - /// Creates a new instance of , deserializing the content from a json string. + /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistence FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal ResourceAutoGenerated(global::System.Collections.IDictionary content) + internal Persistence(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -98,18 +94,19 @@ internal ResourceAutoGenerated(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistenceInternal)this).AofEnabled = (bool?) content.GetValueForProperty("AofEnabled",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistenceInternal)this).AofEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistenceInternal)this).RdbEnabled = (bool?) content.GetValueForProperty("RdbEnabled",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistenceInternal)this).RdbEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistenceInternal)this).AofFrequency = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency?) content.GetValueForProperty("AofFrequency",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistenceInternal)this).AofFrequency, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistenceInternal)this).RdbFrequency = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency?) content.GetValueForProperty("RdbFrequency",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistenceInternal)this).RdbFrequency, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency.CreateFrom); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal ResourceAutoGenerated(global::System.Management.Automation.PSObject content) + internal Persistence(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -118,9 +115,10 @@ internal ResourceAutoGenerated(global::System.Management.Automation.PSObject con return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistenceInternal)this).AofEnabled = (bool?) content.GetValueForProperty("AofEnabled",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistenceInternal)this).AofEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistenceInternal)this).RdbEnabled = (bool?) content.GetValueForProperty("RdbEnabled",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistenceInternal)this).RdbEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistenceInternal)this).AofFrequency = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency?) content.GetValueForProperty("AofFrequency",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistenceInternal)this).AofFrequency, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistenceInternal)this).RdbFrequency = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency?) content.GetValueForProperty("RdbFrequency",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistenceInternal)this).RdbFrequency, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency.CreateFrom); AfterDeserializePSObject(content); } @@ -129,9 +127,9 @@ internal ResourceAutoGenerated(global::System.Management.Automation.PSObject con /// a containing this model serialized to JSON text. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SerializationMode.IncludeAll)?.ToString(); } - /// Common fields that are returned in the response for all Azure Resource Manager resources - [System.ComponentModel.TypeConverter(typeof(ResourceAutoGeneratedTypeConverter))] - public partial interface IResourceAutoGenerated + /// Persistence-related configuration for the RedisEnterprise database + [System.ComponentModel.TypeConverter(typeof(PersistenceTypeConverter))] + public partial interface IPersistence { diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20/ResourceAutoGenerated.TypeConverter.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Persistence.TypeConverter.cs similarity index 85% rename from src/RedisEnterpriseCache/generated/api/Models/Api20/ResourceAutoGenerated.TypeConverter.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/Persistence.TypeConverter.cs index de466af60ba2..c3b4f861bceb 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20/ResourceAutoGenerated.TypeConverter.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Persistence.TypeConverter.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class ResourceAutoGeneratedTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class PersistenceTypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -24,10 +24,10 @@ public partial class ResourceAutoGeneratedTypeConverter : global::System.Managem /// Determines if the converter can convert the parameter to the /// parameter. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -89,7 +89,7 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); @@ -97,24 +97,24 @@ public static bool CanConvertFrom(dynamic sourceValue) /// Converts the parameter to the parameter using and /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGenerated ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistence ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGenerated).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistence).IsAssignableFrom(type)) { return sourceValue; } try { - return ResourceAutoGenerated.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return Persistence.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -122,11 +122,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return ResourceAutoGenerated.DeserializeFromPSObject(sourceValue); + return Persistence.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return ResourceAutoGenerated.DeserializeFromDictionary(sourceValue); + return Persistence.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Persistence.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Persistence.cs new file mode 100644 index 000000000000..d98d4d9d1d3d --- /dev/null +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Persistence.cs @@ -0,0 +1,97 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; + + /// Persistence-related configuration for the RedisEnterprise database + public partial class Persistence : + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistence, + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistenceInternal + { + + /// Backing field for property. + private bool? _aofEnabled; + + /// Sets whether AOF is enabled. + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Owned)] + public bool? AofEnabled { get => this._aofEnabled; set => this._aofEnabled = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency? _aofFrequency; + + /// Sets the frequency at which data is written to disk. + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency? AofFrequency { get => this._aofFrequency; set => this._aofFrequency = value; } + + /// Backing field for property. + private bool? _rdbEnabled; + + /// Sets whether RDB is enabled. + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Owned)] + public bool? RdbEnabled { get => this._rdbEnabled; set => this._rdbEnabled = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency? _rdbFrequency; + + /// Sets the frequency at which a snapshot of the database is created. + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency? RdbFrequency { get => this._rdbFrequency; set => this._rdbFrequency = value; } + + /// Creates an new instance. + public Persistence() + { + + } + } + /// Persistence-related configuration for the RedisEnterprise database + public partial interface IPersistence : + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IJsonSerializable + { + /// Sets whether AOF is enabled. + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets whether AOF is enabled.", + SerializedName = @"aofEnabled", + PossibleTypes = new [] { typeof(bool) })] + bool? AofEnabled { get; set; } + /// Sets the frequency at which data is written to disk. + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets the frequency at which data is written to disk.", + SerializedName = @"aofFrequency", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency) })] + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency? AofFrequency { get; set; } + /// Sets whether RDB is enabled. + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets whether RDB is enabled.", + SerializedName = @"rdbEnabled", + PossibleTypes = new [] { typeof(bool) })] + bool? RdbEnabled { get; set; } + /// Sets the frequency at which a snapshot of the database is created. + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets the frequency at which a snapshot of the database is created.", + SerializedName = @"rdbFrequency", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency) })] + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency? RdbFrequency { get; set; } + + } + /// Persistence-related configuration for the RedisEnterprise database + internal partial interface IPersistenceInternal + + { + /// Sets whether AOF is enabled. + bool? AofEnabled { get; set; } + /// Sets the frequency at which data is written to disk. + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency? AofFrequency { get; set; } + /// Sets whether RDB is enabled. + bool? RdbEnabled { get; set; } + /// Sets the frequency at which a snapshot of the database is created. + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency? RdbFrequency { get; set; } + + } +} \ No newline at end of file diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20/ResourceAutoGenerated.json.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Persistence.json.cs similarity index 64% rename from src/RedisEnterpriseCache/generated/api/Models/Api20/ResourceAutoGenerated.json.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/Persistence.json.cs index e4aeeaa08d31..fa8378921314 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20/ResourceAutoGenerated.json.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Persistence.json.cs @@ -1,11 +1,9 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; - /// - /// Common fields that are returned in the response for all Azure Resource Manager resources - /// - public partial class ResourceAutoGenerated + /// Persistence-related configuration for the RedisEnterprise database + public partial class Persistence { /// @@ -49,22 +47,22 @@ public partial class ResourceAutoGenerated partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGenerated. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistence. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGenerated. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistence. /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IResourceAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IPersistence FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject json ? new ResourceAutoGenerated(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject json ? new Persistence(json) : null; } /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject instance to deserialize from. - internal ResourceAutoGenerated(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject json) + internal Persistence(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); @@ -72,20 +70,21 @@ internal ResourceAutoGenerated(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpris { return; } - {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} - {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} - {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} + {_aofEnabled = If( json?.PropertyT("aofEnabled"), out var __jsonAofEnabled) ? (bool?)__jsonAofEnabled : AofEnabled;} + {_rdbEnabled = If( json?.PropertyT("rdbEnabled"), out var __jsonRdbEnabled) ? (bool?)__jsonRdbEnabled : RdbEnabled;} + {_aofFrequency = If( json?.PropertyT("aofFrequency"), out var __jsonAofFrequency) ? (string)__jsonAofFrequency : (string)AofFrequency;} + {_rdbFrequency = If( json?.PropertyT("rdbFrequency"), out var __jsonRdbFrequency) ? (string)__jsonRdbFrequency : (string)RdbFrequency;} AfterFromJson(json); } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SerializationMode serializationMode) { @@ -97,18 +96,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.Json { return container; } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); - } + AddIf( null != this._aofEnabled ? (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonBoolean((bool)this._aofEnabled) : null, "aofEnabled" ,container.Add ); + AddIf( null != this._rdbEnabled ? (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonBoolean((bool)this._rdbEnabled) : null, "rdbEnabled" ,container.Add ); + AddIf( null != (((object)this._aofFrequency)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonString(this._aofFrequency.ToString()) : null, "aofFrequency" ,container.Add ); + AddIf( null != (((object)this._rdbFrequency)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonString(this._rdbFrequency.ToString()) : null, "rdbFrequency" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/RegenerateKeyParameters.PowerShell.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/RegenerateKeyParameters.PowerShell.cs similarity index 77% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/RegenerateKeyParameters.PowerShell.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/RegenerateKeyParameters.PowerShell.cs index 7bae88fd7c33..d00ce398d3e1 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/RegenerateKeyParameters.PowerShell.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/RegenerateKeyParameters.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; @@ -48,29 +48,29 @@ public partial class RegenerateKeyParameters partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IRegenerateKeyParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IRegenerateKeyParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RegenerateKeyParameters(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IRegenerateKeyParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IRegenerateKeyParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RegenerateKeyParameters(content); } @@ -80,10 +80,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IRegenerateKeyParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IRegenerateKeyParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,12 +96,12 @@ internal RegenerateKeyParameters(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IRegenerateKeyParametersInternal)this).KeyType = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AccessKeyType) content.GetValueForProperty("KeyType",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IRegenerateKeyParametersInternal)this).KeyType, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AccessKeyType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IRegenerateKeyParametersInternal)this).KeyType = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AccessKeyType) content.GetValueForProperty("KeyType",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IRegenerateKeyParametersInternal)this).KeyType, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AccessKeyType.CreateFrom); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -114,7 +114,7 @@ internal RegenerateKeyParameters(global::System.Management.Automation.PSObject c return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IRegenerateKeyParametersInternal)this).KeyType = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AccessKeyType) content.GetValueForProperty("KeyType",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IRegenerateKeyParametersInternal)this).KeyType, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AccessKeyType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IRegenerateKeyParametersInternal)this).KeyType = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AccessKeyType) content.GetValueForProperty("KeyType",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IRegenerateKeyParametersInternal)this).KeyType, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AccessKeyType.CreateFrom); AfterDeserializePSObject(content); } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/RegenerateKeyParameters.TypeConverter.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/RegenerateKeyParameters.TypeConverter.cs similarity index 97% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/RegenerateKeyParameters.TypeConverter.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/RegenerateKeyParameters.TypeConverter.cs index f9c09278f37d..76d53c081664 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/RegenerateKeyParameters.TypeConverter.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/RegenerateKeyParameters.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IRegenerateKeyParameters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IRegenerateKeyParameters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IRegenerateKeyParameters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IRegenerateKeyParameters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/RegenerateKeyParameters.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/RegenerateKeyParameters.cs similarity index 94% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/RegenerateKeyParameters.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/RegenerateKeyParameters.cs index fb6b47840649..333492836127 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/RegenerateKeyParameters.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/RegenerateKeyParameters.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; /// Specifies which access keys to reset to a new random value. public partial class RegenerateKeyParameters : - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IRegenerateKeyParameters, - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IRegenerateKeyParametersInternal + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IRegenerateKeyParameters, + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IRegenerateKeyParametersInternal { /// Backing field for property. diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/RegenerateKeyParameters.json.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/RegenerateKeyParameters.json.cs similarity index 95% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/RegenerateKeyParameters.json.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/RegenerateKeyParameters.json.cs index cc6042ad3b09..5754e75a6e82 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/RegenerateKeyParameters.json.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/RegenerateKeyParameters.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class RegenerateKeyParameters partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IRegenerateKeyParameters. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IRegenerateKeyParameters. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IRegenerateKeyParameters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IRegenerateKeyParameters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IRegenerateKeyParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IRegenerateKeyParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject json ? new RegenerateKeyParameters(json) : null; } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Sku.PowerShell.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Sku.PowerShell.cs similarity index 75% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Sku.PowerShell.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/Sku.PowerShell.cs index 6390fe76fd14..6749609b418b 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Sku.PowerShell.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Sku.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; @@ -48,27 +48,27 @@ public partial class Sku partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISku DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISku DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Sku(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISku DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISku DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Sku(content); } @@ -78,10 +78,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISku FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISku FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -94,13 +94,13 @@ internal Sku(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISkuInternal)this).Name = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISkuInternal)this).Name, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISkuInternal)this).Capacity = (int?) content.GetValueForProperty("Capacity",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISkuInternal)this).Capacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISkuInternal)this).Name = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISkuInternal)this).Name, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISkuInternal)this).Capacity = (int?) content.GetValueForProperty("Capacity",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISkuInternal)this).Capacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -113,8 +113,8 @@ internal Sku(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISkuInternal)this).Name = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISkuInternal)this).Name, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISkuInternal)this).Capacity = (int?) content.GetValueForProperty("Capacity",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISkuInternal)this).Capacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISkuInternal)this).Name = (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISkuInternal)this).Name, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISkuInternal)this).Capacity = (int?) content.GetValueForProperty("Capacity",((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISkuInternal)this).Capacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); AfterDeserializePSObject(content); } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Sku.TypeConverter.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Sku.TypeConverter.cs similarity index 97% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Sku.TypeConverter.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/Sku.TypeConverter.cs index d4cc1906387d..e1be96dc94ce 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Sku.TypeConverter.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Sku.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISku ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISku ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISku).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISku).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Sku.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Sku.cs similarity index 97% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Sku.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/Sku.cs index 8ff64f9eb413..d716226df587 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Sku.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Sku.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; /// SKU parameters supplied to the create RedisEnterprise operation. public partial class Sku : - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISku, - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISkuInternal + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISku, + Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISkuInternal { /// Backing field for property. diff --git a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Sku.json.cs b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Sku.json.cs similarity index 96% rename from src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Sku.json.cs rename to src/RedisEnterpriseCache/generated/api/Models/Api20210301/Sku.json.cs index 68698e20e7b9..12a4fe4b36b8 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/Api20201001Preview/Sku.json.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/Api20210301/Sku.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class Sku partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISku. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISku. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISku. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISku. /// - public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ISku FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ISku FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject json ? new Sku(json) : null; } diff --git a/src/RedisEnterpriseCache/generated/api/Models/RedisEnterpriseCacheIdentity.cs b/src/RedisEnterpriseCache/generated/api/Models/RedisEnterpriseCacheIdentity.cs index da9ce79f2f9d..d7ca5e03ae57 100644 --- a/src/RedisEnterpriseCache/generated/api/Models/RedisEnterpriseCacheIdentity.cs +++ b/src/RedisEnterpriseCache/generated/api/Models/RedisEnterpriseCacheIdentity.cs @@ -57,17 +57,14 @@ public partial class RedisEnterpriseCacheIdentity : /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Owned)] public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } /// Backing field for property. private string _subscriptionId; - /// - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// + /// The ID of the target subscription. [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Origin(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.PropertyOrigin.Owned)] public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } @@ -128,22 +125,19 @@ public partial interface IRedisEnterpriseCacheIdentity : SerializedName = @"privateEndpointConnectionName", PossibleTypes = new [] { typeof(string) })] string PrivateEndpointConnectionName { get; set; } - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The name of the resource group.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] string ResourceGroupName { get; set; } - /// - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// + /// The ID of the target subscription. [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] string SubscriptionId { get; set; } @@ -164,12 +158,9 @@ internal partial interface IRedisEnterpriseCacheIdentityInternal string OperationId { get; set; } /// The name of the private endpoint connection associated with the Azure resource string PrivateEndpointConnectionName { get; set; } - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. string ResourceGroupName { get; set; } - /// - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// + /// The ID of the target subscription. string SubscriptionId { get; set; } } diff --git a/src/RedisEnterpriseCache/generated/api/RedisEnterpriseCache.cs b/src/RedisEnterpriseCache/generated/api/RedisEnterpriseCache.cs index 0b2982c64558..5c8bf7795b87 100644 --- a/src/RedisEnterpriseCache/generated/api/RedisEnterpriseCache.cs +++ b/src/RedisEnterpriseCache/generated/api/RedisEnterpriseCache.cs @@ -15,11 +15,10 @@ public partial class RedisEnterpriseCache { /// Creates a database - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. /// The name of the database. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// Parameters supplied to the create or update database operation. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -29,15 +28,15 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabasesCreate(string resourceGroupName, string clusterName, string databaseName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabasesCreate(string resourceGroupName, string clusterName, string databaseName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -47,19 +46,20 @@ public partial class RedisEnterpriseCache + global::System.Uri.EscapeDataString(databaseName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.DatabasesCreate_Call(request,onOk,onDefault,eventListener,sender); } @@ -76,9 +76,9 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabasesCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabasesCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -96,8 +96,8 @@ public partial class RedisEnterpriseCache var databaseName = _match.Groups["databaseName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -107,19 +107,20 @@ public partial class RedisEnterpriseCache + databaseName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.DatabasesCreate_Call(request,onOk,onDefault,eventListener,sender); } @@ -135,22 +136,23 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabasesCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DatabasesCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: original-uri var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -176,33 +178,35 @@ public partial class RedisEnterpriseCache // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -217,6 +221,9 @@ public partial class RedisEnterpriseCache // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -242,7 +249,7 @@ public partial class RedisEnterpriseCache case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.Database.FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.Database.FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -267,35 +274,37 @@ public partial class RedisEnterpriseCache /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. /// The name of the database. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// Parameters supplied to the create or update database operation. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabasesCreate_Validate(string resourceGroupName, string clusterName, string databaseName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase body, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DatabasesCreate_Validate(string resourceGroupName, string clusterName, string databaseName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase body, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); await eventListener.AssertNotNull(nameof(clusterName),clusterName); await eventListener.AssertNotNull(nameof(databaseName),databaseName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } } /// Deletes a single database - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. /// The name of the database. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled @@ -307,13 +316,13 @@ public partial class RedisEnterpriseCache /// public async global::System.Threading.Tasks.Task DatabasesDelete(string resourceGroupName, string clusterName, string databaseName, string subscriptionId, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -323,15 +332,16 @@ public partial class RedisEnterpriseCache + global::System.Uri.EscapeDataString(databaseName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.DatabasesDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); } @@ -350,7 +360,7 @@ public partial class RedisEnterpriseCache /// public async global::System.Threading.Tasks.Task DatabasesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -368,8 +378,8 @@ public partial class RedisEnterpriseCache var databaseName = _match.Groups["databaseName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -379,15 +389,16 @@ public partial class RedisEnterpriseCache + databaseName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.DatabasesDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); } @@ -411,8 +422,9 @@ public partial class RedisEnterpriseCache global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; @@ -420,7 +432,7 @@ public partial class RedisEnterpriseCache var _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -446,33 +458,35 @@ public partial class RedisEnterpriseCache // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -487,6 +501,9 @@ public partial class RedisEnterpriseCache // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -543,11 +560,10 @@ public partial class RedisEnterpriseCache /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. /// The name of the database. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -557,18 +573,21 @@ public partial class RedisEnterpriseCache using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); await eventListener.AssertNotNull(nameof(clusterName),clusterName); await eventListener.AssertNotNull(nameof(databaseName),databaseName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); } } /// Exports a database file from target database. - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. /// The name of the database. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// Storage information for exporting into the cluster /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -578,15 +597,15 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabasesExport(string resourceGroupName, string clusterName, string databaseName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IExportClusterParameters body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabasesExport(string resourceGroupName, string clusterName, string databaseName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IExportClusterParameters body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -597,19 +616,20 @@ public partial class RedisEnterpriseCache + "/export" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.DatabasesExport_Call(request,onOk,onDefault,eventListener,sender); } @@ -626,9 +646,9 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabasesExportViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IExportClusterParameters body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabasesExportViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IExportClusterParameters body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -646,8 +666,8 @@ public partial class RedisEnterpriseCache var databaseName = _match.Groups["databaseName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -658,19 +678,20 @@ public partial class RedisEnterpriseCache + "/export" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.DatabasesExport_Call(request,onOk,onDefault,eventListener,sender); } @@ -693,8 +714,9 @@ public partial class RedisEnterpriseCache global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; @@ -702,7 +724,7 @@ public partial class RedisEnterpriseCache var _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -728,33 +750,35 @@ public partial class RedisEnterpriseCache // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -769,6 +793,9 @@ public partial class RedisEnterpriseCache // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -819,35 +846,37 @@ public partial class RedisEnterpriseCache /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. /// The name of the database. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// Storage information for exporting into the cluster /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabasesExport_Validate(string resourceGroupName, string clusterName, string databaseName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IExportClusterParameters body, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DatabasesExport_Validate(string resourceGroupName, string clusterName, string databaseName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IExportClusterParameters body, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); await eventListener.AssertNotNull(nameof(clusterName),clusterName); await eventListener.AssertNotNull(nameof(databaseName),databaseName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } } /// Gets information about a database in a RedisEnterprise cluster. - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. /// The name of the database. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -856,15 +885,15 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabasesGet(string resourceGroupName, string clusterName, string databaseName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabasesGet(string resourceGroupName, string clusterName, string databaseName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -874,15 +903,16 @@ public partial class RedisEnterpriseCache + global::System.Uri.EscapeDataString(databaseName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.DatabasesGet_Call(request,onOk,onDefault,eventListener,sender); } @@ -898,9 +928,9 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabasesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabasesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -918,8 +948,8 @@ public partial class RedisEnterpriseCache var databaseName = _match.Groups["databaseName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -929,15 +959,16 @@ public partial class RedisEnterpriseCache + databaseName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.DatabasesGet_Call(request,onOk,onDefault,eventListener,sender); } @@ -953,15 +984,16 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabasesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DatabasesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -970,7 +1002,7 @@ public partial class RedisEnterpriseCache case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.Database.FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.Database.FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -995,11 +1027,10 @@ public partial class RedisEnterpriseCache /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. /// The name of the database. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -1009,18 +1040,21 @@ public partial class RedisEnterpriseCache using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); await eventListener.AssertNotNull(nameof(clusterName),clusterName); await eventListener.AssertNotNull(nameof(databaseName),databaseName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); } } /// Imports a database file to target database. - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. /// The name of the database. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// Storage information for importing into the cluster /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -1030,15 +1064,15 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabasesImport(string resourceGroupName, string clusterName, string databaseName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IImportClusterParameters body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabasesImport(string resourceGroupName, string clusterName, string databaseName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IImportClusterParameters body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -1049,19 +1083,20 @@ public partial class RedisEnterpriseCache + "/import" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.DatabasesImport_Call(request,onOk,onDefault,eventListener,sender); } @@ -1078,9 +1113,9 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabasesImportViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IImportClusterParameters body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabasesImportViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IImportClusterParameters body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1098,8 +1133,8 @@ public partial class RedisEnterpriseCache var databaseName = _match.Groups["databaseName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -1110,19 +1145,20 @@ public partial class RedisEnterpriseCache + "/import" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.DatabasesImport_Call(request,onOk,onDefault,eventListener,sender); } @@ -1145,8 +1181,9 @@ public partial class RedisEnterpriseCache global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; @@ -1154,7 +1191,7 @@ public partial class RedisEnterpriseCache var _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -1180,33 +1217,35 @@ public partial class RedisEnterpriseCache // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -1221,6 +1260,9 @@ public partial class RedisEnterpriseCache // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -1271,33 +1313,35 @@ public partial class RedisEnterpriseCache /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. /// The name of the database. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// Storage information for importing into the cluster /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabasesImport_Validate(string resourceGroupName, string clusterName, string databaseName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IImportClusterParameters body, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DatabasesImport_Validate(string resourceGroupName, string clusterName, string databaseName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IImportClusterParameters body, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); await eventListener.AssertNotNull(nameof(clusterName),clusterName); await eventListener.AssertNotNull(nameof(databaseName),databaseName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } } /// Gets all databases in the specified RedisEnterprise cluster. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// The name of the resource group. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -1307,15 +1351,15 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabasesListByCluster(string subscriptionId, string resourceGroupName, string clusterName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabasesListByCluster(string subscriptionId, string resourceGroupName, string clusterName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -1324,15 +1368,16 @@ public partial class RedisEnterpriseCache + "/databases" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.DatabasesListByCluster_Call(request,onOk,onDefault,eventListener,sender); } @@ -1348,9 +1393,9 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabasesListByClusterViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabasesListByClusterViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1367,8 +1412,8 @@ public partial class RedisEnterpriseCache var resourceGroupName = _match.Groups["resourceGroupName"].Value; var clusterName = _match.Groups["clusterName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -1377,15 +1422,16 @@ public partial class RedisEnterpriseCache + "/databases" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.DatabasesListByCluster_Call(request,onOk,onDefault,eventListener,sender); } @@ -1401,15 +1447,16 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabasesListByCluster_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DatabasesListByCluster_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -1418,7 +1465,7 @@ public partial class RedisEnterpriseCache case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.DatabaseList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.DatabaseList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -1443,9 +1490,8 @@ public partial class RedisEnterpriseCache /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. - /// The name of the resource group. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. /// an instance that will receive events. /// @@ -1456,17 +1502,20 @@ public partial class RedisEnterpriseCache using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); await eventListener.AssertNotNull(nameof(clusterName),clusterName); } } /// Retrieves the access keys for the RedisEnterprise database. - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. /// The name of the database. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -1475,15 +1524,15 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabasesListKeys(string resourceGroupName, string clusterName, string databaseName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabasesListKeys(string resourceGroupName, string clusterName, string databaseName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -1494,15 +1543,16 @@ public partial class RedisEnterpriseCache + "/listKeys" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.DatabasesListKeys_Call(request,onOk,onDefault,eventListener,sender); } @@ -1518,9 +1568,9 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabasesListKeysViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabasesListKeysViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1538,8 +1588,8 @@ public partial class RedisEnterpriseCache var databaseName = _match.Groups["databaseName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -1550,15 +1600,16 @@ public partial class RedisEnterpriseCache + "/listKeys" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.DatabasesListKeys_Call(request,onOk,onDefault,eventListener,sender); } @@ -1574,15 +1625,16 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabasesListKeys_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DatabasesListKeys_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -1591,7 +1643,7 @@ public partial class RedisEnterpriseCache case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.AccessKeys.FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.AccessKeys.FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -1616,11 +1668,10 @@ public partial class RedisEnterpriseCache /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. /// The name of the database. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -1630,18 +1681,21 @@ public partial class RedisEnterpriseCache using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); await eventListener.AssertNotNull(nameof(clusterName),clusterName); await eventListener.AssertNotNull(nameof(databaseName),databaseName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); } } /// Regenerates the RedisEnterprise database's access keys. - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. /// The name of the database. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// Specifies which key to regenerate. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -1651,15 +1705,15 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabasesRegenerateKey(string resourceGroupName, string clusterName, string databaseName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IRegenerateKeyParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabasesRegenerateKey(string resourceGroupName, string clusterName, string databaseName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IRegenerateKeyParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -1670,19 +1724,20 @@ public partial class RedisEnterpriseCache + "/regenerateKey" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.DatabasesRegenerateKey_Call(request,onOk,onDefault,eventListener,sender); } @@ -1699,9 +1754,9 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabasesRegenerateKeyViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IRegenerateKeyParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabasesRegenerateKeyViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IRegenerateKeyParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1719,8 +1774,8 @@ public partial class RedisEnterpriseCache var databaseName = _match.Groups["databaseName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -1731,19 +1786,20 @@ public partial class RedisEnterpriseCache + "/regenerateKey" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.DatabasesRegenerateKey_Call(request,onOk,onDefault,eventListener,sender); } @@ -1759,15 +1815,16 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabasesRegenerateKey_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DatabasesRegenerateKey_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; @@ -1775,7 +1832,7 @@ public partial class RedisEnterpriseCache var _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -1801,33 +1858,35 @@ public partial class RedisEnterpriseCache // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -1842,6 +1901,9 @@ public partial class RedisEnterpriseCache // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -1867,7 +1929,7 @@ public partial class RedisEnterpriseCache case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.AccessKeys.FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.AccessKeys.FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -1892,35 +1954,37 @@ public partial class RedisEnterpriseCache /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. /// The name of the database. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// Specifies which key to regenerate. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabasesRegenerateKey_Validate(string resourceGroupName, string clusterName, string databaseName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IRegenerateKeyParameters body, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DatabasesRegenerateKey_Validate(string resourceGroupName, string clusterName, string databaseName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IRegenerateKeyParameters body, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); await eventListener.AssertNotNull(nameof(clusterName),clusterName); await eventListener.AssertNotNull(nameof(databaseName),databaseName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } } /// Updates a database - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. /// The name of the database. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// Parameters supplied to the create or update database operation. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -1930,15 +1994,15 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabasesUpdate(string resourceGroupName, string clusterName, string databaseName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabasesUpdate(string resourceGroupName, string clusterName, string databaseName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -1948,19 +2012,20 @@ public partial class RedisEnterpriseCache + global::System.Uri.EscapeDataString(databaseName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Patch, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.DatabasesUpdate_Call(request,onOk,onDefault,eventListener,sender); } @@ -1977,9 +2042,9 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabasesUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabasesUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1997,8 +2062,8 @@ public partial class RedisEnterpriseCache var databaseName = _match.Groups["databaseName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -2008,19 +2073,20 @@ public partial class RedisEnterpriseCache + databaseName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Patch, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.DatabasesUpdate_Call(request,onOk,onDefault,eventListener,sender); } @@ -2036,22 +2102,23 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabasesUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DatabasesUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -2077,33 +2144,35 @@ public partial class RedisEnterpriseCache // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -2118,6 +2187,9 @@ public partial class RedisEnterpriseCache // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -2143,7 +2215,7 @@ public partial class RedisEnterpriseCache case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.Database.FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.Database.FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -2168,34 +2240,33 @@ public partial class RedisEnterpriseCache /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. /// The name of the database. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// Parameters supplied to the create or update database operation. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabasesUpdate_Validate(string resourceGroupName, string clusterName, string databaseName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdate body, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DatabasesUpdate_Validate(string resourceGroupName, string clusterName, string databaseName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdate body, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); await eventListener.AssertNotNull(nameof(clusterName),clusterName); await eventListener.AssertNotNull(nameof(databaseName),databaseName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Gets the status of operation. - /// The region the operation is in. - /// The operation's unique identifier. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// Lists all of the available REST API operations of the Microsoft.Cache provider. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -2204,37 +2275,33 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task GetOperationStatus(string location, string operationId, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OperationsList(global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/providers/Microsoft.Cache/locations/" - + global::System.Uri.EscapeDataString(location) - + "/operationsStatus/" - + global::System.Uri.EscapeDataString(operationId) + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/providers/Microsoft.Cache/operations" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.GetOperationStatus_Call(request,onOk,onDefault,eventListener,sender); + await this.OperationsList_Call(request,onOk,onDefault,eventListener,sender); } } - /// Gets the status of operation. + /// Lists all of the available REST API operations of the Microsoft.Cache provider. /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -2244,49 +2311,42 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task GetOperationStatusViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OperationsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Cache/locations/(?[^/]+)/operationsStatus/(?[^/]+)$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/providers/Microsoft.Cache/operations$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/operationsStatus/{operationId}'"); + throw new global::System.Exception("Invalid identity for URI '/providers/Microsoft.Cache/operations'"); } // replace URI parameters with values from identity - var location = _match.Groups["location"].Value; - var operationId = _match.Groups["operationId"].Value; - var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" - + subscriptionId - + "/providers/Microsoft.Cache/locations/" - + location - + "/operationsStatus/" - + operationId + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/providers/Microsoft.Cache/operations" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.GetOperationStatus_Call(request,onOk,onDefault,eventListener,sender); + await this.OperationsList_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -2296,15 +2356,16 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task GetOperationStatus_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task OperationsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -2313,7 +2374,7 @@ public partial class RedisEnterpriseCache case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.OperationStatus.FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.OperationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -2335,28 +2396,25 @@ public partial class RedisEnterpriseCache } /// - /// Validation method for method. Call this like the actual call, but you will get validation + /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The region the operation is in. - /// The operation's unique identifier. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task GetOperationStatus_Validate(string location, string operationId, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task OperationsList_Validate(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { - await eventListener.AssertNotNull(nameof(location),location); - await eventListener.AssertNotNull(nameof(operationId),operationId); - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + } } - /// Lists all of the available REST API operations of the Microsoft.Cache provider. + /// Gets the status of operation. + /// The region the operation is in. + /// The operation's unique identifier. + /// The ID of the target subscription. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -2365,32 +2423,38 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OperationsList(global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OperationsStatusGet(string location, string operationId, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/providers/Microsoft.Cache/operations" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/providers/Microsoft.Cache/locations/" + + global::System.Uri.EscapeDataString(location) + + "/operationsStatus/" + + global::System.Uri.EscapeDataString(operationId) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.OperationsList_Call(request,onOk,onDefault,eventListener,sender); + await this.OperationsStatusGet_Call(request,onOk,onDefault,eventListener,sender); } } - /// Lists all of the available REST API operations of the Microsoft.Cache provider. + /// Gets the status of operation. /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -2400,41 +2464,50 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OperationsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OperationsStatusGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/providers/Microsoft.Cache/operations$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Cache/locations/(?[^/]+)/operationsStatus/(?[^/]+)$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/providers/Microsoft.Cache/operations'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/operationsStatus/{operationId}'"); } // replace URI parameters with values from identity + var location = _match.Groups["location"].Value; + var operationId = _match.Groups["operationId"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/providers/Microsoft.Cache/operations" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/providers/Microsoft.Cache/locations/" + + location + + "/operationsStatus/" + + operationId + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.OperationsList_Call(request,onOk,onDefault,eventListener,sender); + await this.OperationsStatusGet_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -2444,15 +2517,16 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task OperationsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task OperationsStatusGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -2461,7 +2535,7 @@ public partial class RedisEnterpriseCache case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.OperationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.OperationStatus.FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -2483,28 +2557,33 @@ public partial class RedisEnterpriseCache } /// - /// Validation method for method. Call this like the actual call, but you will get validation + /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// + /// The region the operation is in. + /// The operation's unique identifier. + /// The ID of the target subscription. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task OperationsList_Validate(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task OperationsStatusGet_Validate(string location, string operationId, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { - + await eventListener.AssertNotNull(nameof(location),location); + await eventListener.AssertNotNull(nameof(operationId),operationId); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); } } /// /// Deletes the specified private endpoint connection associated with the RedisEnterprise cluster. /// - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// The name of the private endpoint connection associated with the Azure resource /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). @@ -2517,13 +2596,13 @@ public partial class RedisEnterpriseCache /// public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsDelete(string resourceGroupName, string clusterName, string subscriptionId, string privateEndpointConnectionName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -2533,15 +2612,16 @@ public partial class RedisEnterpriseCache + global::System.Uri.EscapeDataString(privateEndpointConnectionName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.PrivateEndpointConnectionsDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); } @@ -2562,7 +2642,7 @@ public partial class RedisEnterpriseCache /// public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2580,8 +2660,8 @@ public partial class RedisEnterpriseCache var subscriptionId = _match.Groups["subscriptionId"].Value; var privateEndpointConnectionName = _match.Groups["privateEndpointConnectionName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -2591,15 +2671,16 @@ public partial class RedisEnterpriseCache + privateEndpointConnectionName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.PrivateEndpointConnectionsDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); } @@ -2623,8 +2704,9 @@ public partial class RedisEnterpriseCache global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -2664,10 +2746,9 @@ public partial class RedisEnterpriseCache /// Validation method for method. Call this like the actual call, but you /// will get validation events back. /// - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// The name of the private endpoint connection associated with the Azure resource /// an instance that will receive events. /// @@ -2678,8 +2759,12 @@ public partial class RedisEnterpriseCache using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); await eventListener.AssertNotNull(nameof(clusterName),clusterName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); await eventListener.AssertNotNull(nameof(privateEndpointConnectionName),privateEndpointConnectionName); } } @@ -2687,11 +2772,10 @@ public partial class RedisEnterpriseCache /// /// Gets the specified private endpoint connection associated with the RedisEnterprise cluster. /// - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. /// The name of the private endpoint connection associated with the Azure resource - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -2702,13 +2786,13 @@ public partial class RedisEnterpriseCache /// public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsGet(string resourceGroupName, string clusterName, string privateEndpointConnectionName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -2718,15 +2802,16 @@ public partial class RedisEnterpriseCache + global::System.Uri.EscapeDataString(privateEndpointConnectionName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.PrivateEndpointConnectionsGet_Call(request,onOk,onDefault,eventListener,sender); } @@ -2746,7 +2831,7 @@ public partial class RedisEnterpriseCache /// public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2764,8 +2849,8 @@ public partial class RedisEnterpriseCache var privateEndpointConnectionName = _match.Groups["privateEndpointConnectionName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -2775,15 +2860,16 @@ public partial class RedisEnterpriseCache + privateEndpointConnectionName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.PrivateEndpointConnectionsGet_Call(request,onOk,onDefault,eventListener,sender); } @@ -2806,8 +2892,9 @@ public partial class RedisEnterpriseCache global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -2841,11 +2928,10 @@ public partial class RedisEnterpriseCache /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. /// The name of the private endpoint connection associated with the Azure resource - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -2855,19 +2941,22 @@ public partial class RedisEnterpriseCache using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); await eventListener.AssertNotNull(nameof(clusterName),clusterName); await eventListener.AssertNotNull(nameof(privateEndpointConnectionName),privateEndpointConnectionName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); } } /// /// Lists all the private endpoint connections associated with the RedisEnterprise cluster. /// - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -2878,13 +2967,13 @@ public partial class RedisEnterpriseCache /// public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsList(string resourceGroupName, string clusterName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -2893,15 +2982,16 @@ public partial class RedisEnterpriseCache + "/privateEndpointConnections" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.PrivateEndpointConnectionsList_Call(request,onOk,onDefault,eventListener,sender); } @@ -2921,7 +3011,7 @@ public partial class RedisEnterpriseCache /// public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2938,8 +3028,8 @@ public partial class RedisEnterpriseCache var clusterName = _match.Groups["clusterName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -2948,15 +3038,16 @@ public partial class RedisEnterpriseCache + "/privateEndpointConnections" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.PrivateEndpointConnectionsList_Call(request,onOk,onDefault,eventListener,sender); } @@ -2979,8 +3070,9 @@ public partial class RedisEnterpriseCache global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -3014,10 +3106,9 @@ public partial class RedisEnterpriseCache /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -3027,18 +3118,21 @@ public partial class RedisEnterpriseCache using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); await eventListener.AssertNotNull(nameof(clusterName),clusterName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); } } /// /// Updates the state of the specified private endpoint connection associated with the RedisEnterprise cluster. /// - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// The name of the private endpoint connection associated with the Azure resource /// The private endpoint connection properties. /// a delegate that is called when the remote service returns default (any response code not handled @@ -3050,13 +3144,13 @@ public partial class RedisEnterpriseCache /// public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsPut(string resourceGroupName, string clusterName, string subscriptionId, string privateEndpointConnectionName, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnection body, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -3066,19 +3160,20 @@ public partial class RedisEnterpriseCache + global::System.Uri.EscapeDataString(privateEndpointConnectionName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.PrivateEndpointConnectionsPut_Call(request,onDefault,eventListener,sender); } @@ -3098,7 +3193,7 @@ public partial class RedisEnterpriseCache /// public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsPutViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnection body, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3116,8 +3211,8 @@ public partial class RedisEnterpriseCache var subscriptionId = _match.Groups["subscriptionId"].Value; var privateEndpointConnectionName = _match.Groups["privateEndpointConnectionName"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -3127,19 +3222,20 @@ public partial class RedisEnterpriseCache + privateEndpointConnectionName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.PrivateEndpointConnectionsPut_Call(request,onDefault,eventListener,sender); } @@ -3161,15 +3257,16 @@ public partial class RedisEnterpriseCache global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: default var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -3195,33 +3292,35 @@ public partial class RedisEnterpriseCache // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -3236,6 +3335,9 @@ public partial class RedisEnterpriseCache // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -3283,10 +3385,9 @@ public partial class RedisEnterpriseCache /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// The name of the private endpoint connection associated with the Azure resource /// The private endpoint connection properties. /// an instance that will receive events. @@ -3298,8 +3399,12 @@ public partial class RedisEnterpriseCache using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); await eventListener.AssertNotNull(nameof(clusterName),clusterName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); await eventListener.AssertNotNull(nameof(privateEndpointConnectionName),privateEndpointConnectionName); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); @@ -3309,10 +3414,9 @@ public partial class RedisEnterpriseCache /// /// Gets the private link resources that need to be created for a RedisEnterprise cluster. /// - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -3321,15 +3425,15 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateLinkResourcesListByRedisEnterpriseCache(string resourceGroupName, string clusterName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PrivateLinkResourcesListByCluster(string resourceGroupName, string clusterName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -3338,17 +3442,18 @@ public partial class RedisEnterpriseCache + "/privateLinkResources" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.PrivateLinkResourcesListByRedisEnterpriseCache_Call(request,onOk,onDefault,eventListener,sender); + await this.PrivateLinkResourcesListByCluster_Call(request,onOk,onDefault,eventListener,sender); } } @@ -3364,9 +3469,9 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateLinkResourcesListByRedisEnterpriseCacheViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PrivateLinkResourcesListByClusterViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3383,8 +3488,8 @@ public partial class RedisEnterpriseCache var clusterName = _match.Groups["clusterName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -3393,23 +3498,22 @@ public partial class RedisEnterpriseCache + "/privateLinkResources" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.PrivateLinkResourcesListByRedisEnterpriseCache_Call(request,onOk,onDefault,eventListener,sender); + await this.PrivateLinkResourcesListByCluster_Call(request,onOk,onDefault,eventListener,sender); } } - /// - /// Actual wire call for method. - /// + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -3419,15 +3523,16 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PrivateLinkResourcesListByRedisEnterpriseCache_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PrivateLinkResourcesListByCluster_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -3458,34 +3563,36 @@ public partial class RedisEnterpriseCache } /// - /// Validation method for method. Call this like the actual - /// call, but you will get validation events back. + /// Validation method for method. Call this like the actual call, but you + /// will get validation events back. /// - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PrivateLinkResourcesListByRedisEnterpriseCache_Validate(string resourceGroupName, string clusterName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task PrivateLinkResourcesListByCluster_Validate(string resourceGroupName, string clusterName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); await eventListener.AssertNotNull(nameof(clusterName),clusterName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); } } /// /// Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster /// - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// Parameters supplied to the Create RedisEnterprise operation. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -3495,15 +3602,15 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task RedisEnterpriseCreate(string resourceGroupName, string clusterName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task RedisEnterpriseCreate(string resourceGroupName, string clusterName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -3511,19 +3618,20 @@ public partial class RedisEnterpriseCache + global::System.Uri.EscapeDataString(clusterName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.RedisEnterpriseCreate_Call(request,onOk,onDefault,eventListener,sender); } @@ -3542,9 +3650,9 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task RedisEnterpriseCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task RedisEnterpriseCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3561,8 +3669,8 @@ public partial class RedisEnterpriseCache var clusterName = _match.Groups["clusterName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -3570,19 +3678,20 @@ public partial class RedisEnterpriseCache + clusterName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.RedisEnterpriseCreate_Call(request,onOk,onDefault,eventListener,sender); } @@ -3598,22 +3707,23 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task RedisEnterpriseCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task RedisEnterpriseCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: original-uri var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -3639,33 +3749,35 @@ public partial class RedisEnterpriseCache // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -3680,6 +3792,9 @@ public partial class RedisEnterpriseCache // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -3705,7 +3820,7 @@ public partial class RedisEnterpriseCache case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.Cluster.FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.Cluster.FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -3730,32 +3845,34 @@ public partial class RedisEnterpriseCache /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// Parameters supplied to the Create RedisEnterprise operation. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task RedisEnterpriseCreate_Validate(string resourceGroupName, string clusterName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster body, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task RedisEnterpriseCreate_Validate(string resourceGroupName, string clusterName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster body, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); await eventListener.AssertNotNull(nameof(clusterName),clusterName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } } /// Deletes a RedisEnterprise cache cluster. - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled @@ -3767,13 +3884,13 @@ public partial class RedisEnterpriseCache /// public async global::System.Threading.Tasks.Task RedisEnterpriseDelete(string resourceGroupName, string clusterName, string subscriptionId, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -3781,15 +3898,16 @@ public partial class RedisEnterpriseCache + global::System.Uri.EscapeDataString(clusterName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.RedisEnterpriseDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); } @@ -3808,7 +3926,7 @@ public partial class RedisEnterpriseCache /// public async global::System.Threading.Tasks.Task RedisEnterpriseDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3825,8 +3943,8 @@ public partial class RedisEnterpriseCache var clusterName = _match.Groups["clusterName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -3834,15 +3952,16 @@ public partial class RedisEnterpriseCache + clusterName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.RedisEnterpriseDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); } @@ -3866,8 +3985,9 @@ public partial class RedisEnterpriseCache global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; @@ -3875,7 +3995,7 @@ public partial class RedisEnterpriseCache var _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -3901,33 +4021,35 @@ public partial class RedisEnterpriseCache // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -3942,6 +4064,9 @@ public partial class RedisEnterpriseCache // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -3998,10 +4123,9 @@ public partial class RedisEnterpriseCache /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -4011,16 +4135,19 @@ public partial class RedisEnterpriseCache using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); await eventListener.AssertNotNull(nameof(clusterName),clusterName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); } } /// Gets information about a RedisEnterprise cluster - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -4029,15 +4156,15 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task RedisEnterpriseGet(string resourceGroupName, string clusterName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task RedisEnterpriseGet(string resourceGroupName, string clusterName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -4045,15 +4172,16 @@ public partial class RedisEnterpriseCache + global::System.Uri.EscapeDataString(clusterName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.RedisEnterpriseGet_Call(request,onOk,onDefault,eventListener,sender); } @@ -4069,9 +4197,9 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task RedisEnterpriseGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task RedisEnterpriseGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4088,8 +4216,8 @@ public partial class RedisEnterpriseCache var clusterName = _match.Groups["clusterName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -4097,15 +4225,16 @@ public partial class RedisEnterpriseCache + clusterName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.RedisEnterpriseGet_Call(request,onOk,onDefault,eventListener,sender); } @@ -4121,15 +4250,16 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task RedisEnterpriseGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task RedisEnterpriseGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -4138,7 +4268,7 @@ public partial class RedisEnterpriseCache case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.Cluster.FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.Cluster.FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -4163,10 +4293,9 @@ public partial class RedisEnterpriseCache /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -4176,14 +4305,17 @@ public partial class RedisEnterpriseCache using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); await eventListener.AssertNotNull(nameof(clusterName),clusterName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); } } /// Gets all RedisEnterprise clusters in the specified subscription. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -4192,37 +4324,37 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task RedisEnterpriseList(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task RedisEnterpriseList(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/providers/Microsoft.Cache/redisEnterprise" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.RedisEnterpriseList_Call(request,onOk,onDefault,eventListener,sender); } } /// Lists all RedisEnterprise clusters in a resource group. - /// The name of the resource group. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -4231,30 +4363,31 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task RedisEnterpriseListByResourceGroup(string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task RedisEnterpriseListByResourceGroup(string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.Cache/redisEnterprise" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.RedisEnterpriseListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); } @@ -4270,9 +4403,9 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task RedisEnterpriseListByResourceGroupViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task RedisEnterpriseListByResourceGroupViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4288,23 +4421,24 @@ public partial class RedisEnterpriseCache var resourceGroupName = _match.Groups["resourceGroupName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName + "/providers/Microsoft.Cache/redisEnterprise" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.RedisEnterpriseListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); } @@ -4320,15 +4454,16 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task RedisEnterpriseListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task RedisEnterpriseListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -4337,7 +4472,7 @@ public partial class RedisEnterpriseCache case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ClusterList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ClusterList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -4362,9 +4497,8 @@ public partial class RedisEnterpriseCache /// Validation method for method. Call this like the actual call, but you /// will get validation events back. /// - /// The name of the resource group. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -4374,7 +4508,11 @@ public partial class RedisEnterpriseCache using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); } } @@ -4388,9 +4526,9 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task RedisEnterpriseListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task RedisEnterpriseListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4405,21 +4543,22 @@ public partial class RedisEnterpriseCache // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/providers/Microsoft.Cache/redisEnterprise" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.RedisEnterpriseList_Call(request,onOk,onDefault,eventListener,sender); } @@ -4435,15 +4574,16 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task RedisEnterpriseList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task RedisEnterpriseList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -4452,7 +4592,7 @@ public partial class RedisEnterpriseCache case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ClusterList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ClusterList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -4477,8 +4617,7 @@ public partial class RedisEnterpriseCache /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -4488,14 +4627,14 @@ public partial class RedisEnterpriseCache using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); } } /// Updates an existing RedisEnterprise cluster - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// Parameters supplied to the Update RedisEnterprise operation. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -4505,15 +4644,15 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task RedisEnterpriseUpdate(string resourceGroupName, string clusterName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task RedisEnterpriseUpdate(string resourceGroupName, string clusterName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) @@ -4521,19 +4660,20 @@ public partial class RedisEnterpriseCache + global::System.Uri.EscapeDataString(clusterName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Patch, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.RedisEnterpriseUpdate_Call(request,onOk,onDefault,eventListener,sender); } @@ -4550,9 +4690,9 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task RedisEnterpriseUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task RedisEnterpriseUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4569,8 +4709,8 @@ public partial class RedisEnterpriseCache var clusterName = _match.Groups["clusterName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName @@ -4578,19 +4718,20 @@ public partial class RedisEnterpriseCache + clusterName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Method.Patch, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call await this.RedisEnterpriseUpdate_Call(request,onOk,onDefault,eventListener,sender); } @@ -4606,22 +4747,23 @@ public partial class RedisEnterpriseCache /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task RedisEnterpriseUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task RedisEnterpriseUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { global::System.Net.Http.HttpResponseMessage _response = null; try { + var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); + _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); - while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // get the delay before polling. (default to 30 seconds if not present) @@ -4647,33 +4789,35 @@ public partial class RedisEnterpriseCache // check for cancellation if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { + var error = false; try { if( Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject json) { var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); if( state is null ) { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } switch( state?.ToString()?.ToLower() ) { - case "succeeded": case "failed": + error = true; + break; + case "succeeded": case "canceled": // we're done polling. break; @@ -4688,6 +4832,9 @@ public partial class RedisEnterpriseCache // if we run into a problem peeking into the result, // we really don't want to do anything special. } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.UndeclaredResponseException(_response); + } } // check for terminal status code @@ -4713,7 +4860,7 @@ public partial class RedisEnterpriseCache case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.Cluster.FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.Cluster.FromJson(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -4738,22 +4885,25 @@ public partial class RedisEnterpriseCache /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The name of the resource group. + /// The name of the resource group. The name is case insensitive. /// The name of the RedisEnterprise cluster. - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// Parameters supplied to the Update RedisEnterprise operation. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task RedisEnterpriseUpdate_Validate(string resourceGroupName, string clusterName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdate body, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task RedisEnterpriseUpdate_Validate(string resourceGroupName, string clusterName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdate body, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); await eventListener.AssertNotNull(nameof(clusterName),clusterName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } diff --git a/src/RedisEnterpriseCache/generated/api/Support/AccessKeyType.cs b/src/RedisEnterpriseCache/generated/api/Support/AccessKeyType.cs index 80f74b9aa679..259c1303b0be 100644 --- a/src/RedisEnterpriseCache/generated/api/Support/AccessKeyType.cs +++ b/src/RedisEnterpriseCache/generated/api/Support/AccessKeyType.cs @@ -28,7 +28,7 @@ private AccessKeyType(string underlyingValue) /// the value to convert to an instance of . internal static object CreateFrom(object value) { - return new AccessKeyType(System.Convert.ToString(value)); + return new AccessKeyType(global::System.Convert.ToString(value)); } /// Compares values of enum type AccessKeyType diff --git a/src/RedisEnterpriseCache/generated/api/Support/ActionType.cs b/src/RedisEnterpriseCache/generated/api/Support/ActionType.cs index 4df5e27a8f0c..7b5ef3a71eb5 100644 --- a/src/RedisEnterpriseCache/generated/api/Support/ActionType.cs +++ b/src/RedisEnterpriseCache/generated/api/Support/ActionType.cs @@ -28,7 +28,7 @@ private ActionType(string underlyingValue) /// the value to convert to an instance of . internal static object CreateFrom(object value) { - return new ActionType(System.Convert.ToString(value)); + return new ActionType(global::System.Convert.ToString(value)); } /// Compares values of enum type ActionType diff --git a/src/RedisEnterpriseCache/generated/api/Support/AofFrequency.Completer.cs b/src/RedisEnterpriseCache/generated/api/Support/AofFrequency.Completer.cs new file mode 100644 index 000000000000..bbd4ef2f9c86 --- /dev/null +++ b/src/RedisEnterpriseCache/generated/api/Support/AofFrequency.Completer.cs @@ -0,0 +1,39 @@ +// 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.PowerShell.Cmdlets.RedisEnterpriseCache.Support +{ + + /// Sets the frequency at which data is written to disk. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequencyTypeConverter))] + public partial struct AofFrequency : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "1s".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("1s", "1s", global::System.Management.Automation.CompletionResultType.ParameterValue, "1s"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "always".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("always", "always", global::System.Management.Automation.CompletionResultType.ParameterValue, "always"); + } + } + } +} \ No newline at end of file diff --git a/src/RedisEnterpriseCache/generated/api/Support/AofFrequency.TypeConverter.cs b/src/RedisEnterpriseCache/generated/api/Support/AofFrequency.TypeConverter.cs new file mode 100644 index 000000000000..4511ed73bfd9 --- /dev/null +++ b/src/RedisEnterpriseCache/generated/api/Support/AofFrequency.TypeConverter.cs @@ -0,0 +1,59 @@ +// 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.PowerShell.Cmdlets.RedisEnterpriseCache.Support +{ + + /// Sets the frequency at which data is written to disk. + public partial class AofFrequencyTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => AofFrequency.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/RedisEnterpriseCache/generated/api/Support/AofFrequency.cs b/src/RedisEnterpriseCache/generated/api/Support/AofFrequency.cs new file mode 100644 index 000000000000..cb28cf3ae8bc --- /dev/null +++ b/src/RedisEnterpriseCache/generated/api/Support/AofFrequency.cs @@ -0,0 +1,98 @@ +// 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.PowerShell.Cmdlets.RedisEnterpriseCache.Support +{ + + /// Sets the frequency at which data is written to disk. + public partial struct AofFrequency : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency Always = @"always"; + + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency OneS = @"1s"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Creates an instance of the + /// the value to create an instance for. + private AofFrequency(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Conversion from arbitrary object to AofFrequency + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new AofFrequency(global::System.Convert.ToString(value)); + } + + /// Compares values of enum type AofFrequency + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type AofFrequency (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is AofFrequency && Equals((AofFrequency)obj); + } + + /// Returns hashCode for enum AofFrequency + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for AofFrequency + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to AofFrequency + /// the value to convert to an instance of . + + public static implicit operator AofFrequency(string value) + { + return new AofFrequency(value); + } + + /// Implicit operator to convert AofFrequency to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency e) + { + return e._value; + } + + /// Overriding != operator for enum AofFrequency + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency e1, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum AofFrequency + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency e1, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/RedisEnterpriseCache/generated/api/Support/ClusteringPolicy.cs b/src/RedisEnterpriseCache/generated/api/Support/ClusteringPolicy.cs index 067052b128eb..7c7bfb937123 100644 --- a/src/RedisEnterpriseCache/generated/api/Support/ClusteringPolicy.cs +++ b/src/RedisEnterpriseCache/generated/api/Support/ClusteringPolicy.cs @@ -28,7 +28,7 @@ private ClusteringPolicy(string underlyingValue) /// the value to convert to an instance of . internal static object CreateFrom(object value) { - return new ClusteringPolicy(System.Convert.ToString(value)); + return new ClusteringPolicy(global::System.Convert.ToString(value)); } /// Compares values of enum type ClusteringPolicy diff --git a/src/RedisEnterpriseCache/generated/api/Support/EvictionPolicy.cs b/src/RedisEnterpriseCache/generated/api/Support/EvictionPolicy.cs index 436fe1c0ce23..891b615e12e8 100644 --- a/src/RedisEnterpriseCache/generated/api/Support/EvictionPolicy.cs +++ b/src/RedisEnterpriseCache/generated/api/Support/EvictionPolicy.cs @@ -33,7 +33,7 @@ public partial struct EvictionPolicy : /// the value to convert to an instance of . internal static object CreateFrom(object value) { - return new EvictionPolicy(System.Convert.ToString(value)); + return new EvictionPolicy(global::System.Convert.ToString(value)); } /// Compares values of enum type EvictionPolicy diff --git a/src/RedisEnterpriseCache/generated/api/Support/PrivateEndpointConnectionProvisioningState.cs b/src/RedisEnterpriseCache/generated/api/Support/PrivateEndpointConnectionProvisioningState.cs index 49c403599469..b349c3906d9b 100644 --- a/src/RedisEnterpriseCache/generated/api/Support/PrivateEndpointConnectionProvisioningState.cs +++ b/src/RedisEnterpriseCache/generated/api/Support/PrivateEndpointConnectionProvisioningState.cs @@ -27,7 +27,7 @@ public partial struct PrivateEndpointConnectionProvisioningState : /// the value to convert to an instance of . internal static object CreateFrom(object value) { - return new PrivateEndpointConnectionProvisioningState(System.Convert.ToString(value)); + return new PrivateEndpointConnectionProvisioningState(global::System.Convert.ToString(value)); } /// Compares values of enum type PrivateEndpointConnectionProvisioningState diff --git a/src/RedisEnterpriseCache/generated/api/Support/PrivateEndpointServiceConnectionStatus.cs b/src/RedisEnterpriseCache/generated/api/Support/PrivateEndpointServiceConnectionStatus.cs index 40697784a776..e56989d2e2a7 100644 --- a/src/RedisEnterpriseCache/generated/api/Support/PrivateEndpointServiceConnectionStatus.cs +++ b/src/RedisEnterpriseCache/generated/api/Support/PrivateEndpointServiceConnectionStatus.cs @@ -25,7 +25,7 @@ public partial struct PrivateEndpointServiceConnectionStatus : /// the value to convert to an instance of . internal static object CreateFrom(object value) { - return new PrivateEndpointServiceConnectionStatus(System.Convert.ToString(value)); + return new PrivateEndpointServiceConnectionStatus(global::System.Convert.ToString(value)); } /// Compares values of enum type PrivateEndpointServiceConnectionStatus diff --git a/src/RedisEnterpriseCache/generated/api/Support/Protocol.cs b/src/RedisEnterpriseCache/generated/api/Support/Protocol.cs index d1b3d1fa69ea..e28d82ad1064 100644 --- a/src/RedisEnterpriseCache/generated/api/Support/Protocol.cs +++ b/src/RedisEnterpriseCache/generated/api/Support/Protocol.cs @@ -23,7 +23,7 @@ public partial struct Protocol : /// the value to convert to an instance of . internal static object CreateFrom(object value) { - return new Protocol(System.Convert.ToString(value)); + return new Protocol(global::System.Convert.ToString(value)); } /// Compares values of enum type Protocol diff --git a/src/RedisEnterpriseCache/generated/api/Support/ProvisioningState.cs b/src/RedisEnterpriseCache/generated/api/Support/ProvisioningState.cs index 3d643d4c3376..a7bf09ed3d07 100644 --- a/src/RedisEnterpriseCache/generated/api/Support/ProvisioningState.cs +++ b/src/RedisEnterpriseCache/generated/api/Support/ProvisioningState.cs @@ -29,7 +29,7 @@ public partial struct ProvisioningState : /// the value to convert to an instance of . internal static object CreateFrom(object value) { - return new ProvisioningState(System.Convert.ToString(value)); + return new ProvisioningState(global::System.Convert.ToString(value)); } /// Compares values of enum type ProvisioningState diff --git a/src/RedisEnterpriseCache/generated/api/Support/RdbFrequency.Completer.cs b/src/RedisEnterpriseCache/generated/api/Support/RdbFrequency.Completer.cs new file mode 100644 index 000000000000..24468416f4c1 --- /dev/null +++ b/src/RedisEnterpriseCache/generated/api/Support/RdbFrequency.Completer.cs @@ -0,0 +1,43 @@ +// 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.PowerShell.Cmdlets.RedisEnterpriseCache.Support +{ + + /// Sets the frequency at which a snapshot of the database is created. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequencyTypeConverter))] + public partial struct RdbFrequency : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "1h".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("1h", "1h", global::System.Management.Automation.CompletionResultType.ParameterValue, "1h"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "6h".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("6h", "6h", global::System.Management.Automation.CompletionResultType.ParameterValue, "6h"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "12h".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("12h", "12h", global::System.Management.Automation.CompletionResultType.ParameterValue, "12h"); + } + } + } +} \ No newline at end of file diff --git a/src/RedisEnterpriseCache/generated/api/Support/RdbFrequency.TypeConverter.cs b/src/RedisEnterpriseCache/generated/api/Support/RdbFrequency.TypeConverter.cs new file mode 100644 index 000000000000..a20bc1b5f8bf --- /dev/null +++ b/src/RedisEnterpriseCache/generated/api/Support/RdbFrequency.TypeConverter.cs @@ -0,0 +1,59 @@ +// 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.PowerShell.Cmdlets.RedisEnterpriseCache.Support +{ + + /// Sets the frequency at which a snapshot of the database is created. + public partial class RdbFrequencyTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => RdbFrequency.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/RedisEnterpriseCache/generated/api/Support/RdbFrequency.cs b/src/RedisEnterpriseCache/generated/api/Support/RdbFrequency.cs new file mode 100644 index 000000000000..7e688c6643ae --- /dev/null +++ b/src/RedisEnterpriseCache/generated/api/Support/RdbFrequency.cs @@ -0,0 +1,100 @@ +// 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.PowerShell.Cmdlets.RedisEnterpriseCache.Support +{ + + /// Sets the frequency at which a snapshot of the database is created. + public partial struct RdbFrequency : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency OneH = @"1h"; + + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency SixH = @"6h"; + + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency TwelveH = @"12h"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to RdbFrequency + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new RdbFrequency(global::System.Convert.ToString(value)); + } + + /// Compares values of enum type RdbFrequency + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type RdbFrequency (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is RdbFrequency && Equals((RdbFrequency)obj); + } + + /// Returns hashCode for enum RdbFrequency + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Creates an instance of the + /// the value to create an instance for. + private RdbFrequency(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for RdbFrequency + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to RdbFrequency + /// the value to convert to an instance of . + + public static implicit operator RdbFrequency(string value) + { + return new RdbFrequency(value); + } + + /// Implicit operator to convert RdbFrequency to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency e) + { + return e._value; + } + + /// Overriding != operator for enum RdbFrequency + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency e1, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum RdbFrequency + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency e1, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/RedisEnterpriseCache/generated/api/Support/ResourceState.cs b/src/RedisEnterpriseCache/generated/api/Support/ResourceState.cs index b425dbab6e06..8c4b27b387fe 100644 --- a/src/RedisEnterpriseCache/generated/api/Support/ResourceState.cs +++ b/src/RedisEnterpriseCache/generated/api/Support/ResourceState.cs @@ -41,7 +41,7 @@ public partial struct ResourceState : /// the value to convert to an instance of . internal static object CreateFrom(object value) { - return new ResourceState(System.Convert.ToString(value)); + return new ResourceState(global::System.Convert.ToString(value)); } /// Compares values of enum type ResourceState diff --git a/src/RedisEnterpriseCache/generated/api/Support/SkuName.cs b/src/RedisEnterpriseCache/generated/api/Support/SkuName.cs index 562bcf3fdb3b..f8f860fdbbd5 100644 --- a/src/RedisEnterpriseCache/generated/api/Support/SkuName.cs +++ b/src/RedisEnterpriseCache/generated/api/Support/SkuName.cs @@ -33,7 +33,7 @@ public partial struct SkuName : /// the value to convert to an instance of . internal static object CreateFrom(object value) { - return new SkuName(System.Convert.ToString(value)); + return new SkuName(global::System.Convert.ToString(value)); } /// Compares values of enum type SkuName diff --git a/src/RedisEnterpriseCache/generated/api/Support/TlsVersion.Completer.cs b/src/RedisEnterpriseCache/generated/api/Support/TlsVersion.Completer.cs new file mode 100644 index 000000000000..fce5cf75d089 --- /dev/null +++ b/src/RedisEnterpriseCache/generated/api/Support/TlsVersion.Completer.cs @@ -0,0 +1,43 @@ +// 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.PowerShell.Cmdlets.RedisEnterpriseCache.Support +{ + + /// The minimum TLS version for the cluster to support, e.g. '1.2' + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersionTypeConverter))] + public partial struct TlsVersion : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "1.0".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("1.0", "1.0", global::System.Management.Automation.CompletionResultType.ParameterValue, "1.0"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "1.1".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("1.1", "1.1", global::System.Management.Automation.CompletionResultType.ParameterValue, "1.1"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "1.2".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("1.2", "1.2", global::System.Management.Automation.CompletionResultType.ParameterValue, "1.2"); + } + } + } +} \ No newline at end of file diff --git a/src/RedisEnterpriseCache/generated/api/Support/TlsVersion.TypeConverter.cs b/src/RedisEnterpriseCache/generated/api/Support/TlsVersion.TypeConverter.cs new file mode 100644 index 000000000000..7c52775b4a90 --- /dev/null +++ b/src/RedisEnterpriseCache/generated/api/Support/TlsVersion.TypeConverter.cs @@ -0,0 +1,59 @@ +// 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.PowerShell.Cmdlets.RedisEnterpriseCache.Support +{ + + /// The minimum TLS version for the cluster to support, e.g. '1.2' + public partial class TlsVersionTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => TlsVersion.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/RedisEnterpriseCache/generated/api/Support/TlsVersion.cs b/src/RedisEnterpriseCache/generated/api/Support/TlsVersion.cs new file mode 100644 index 000000000000..b6ec6f8e527c --- /dev/null +++ b/src/RedisEnterpriseCache/generated/api/Support/TlsVersion.cs @@ -0,0 +1,100 @@ +// 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.PowerShell.Cmdlets.RedisEnterpriseCache.Support +{ + + /// The minimum TLS version for the cluster to support, e.g. '1.2' + public partial struct TlsVersion : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion One0 = @"1.0"; + + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion One1 = @"1.1"; + + public static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion One2 = @"1.2"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to TlsVersion + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new TlsVersion(global::System.Convert.ToString(value)); + } + + /// Compares values of enum type TlsVersion + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type TlsVersion (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is TlsVersion && Equals((TlsVersion)obj); + } + + /// Returns hashCode for enum TlsVersion + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Creates an instance of the + /// the value to create an instance for. + private TlsVersion(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for TlsVersion + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to TlsVersion + /// the value to convert to an instance of . + + public static implicit operator TlsVersion(string value) + { + return new TlsVersion(value); + } + + /// Implicit operator to convert TlsVersion to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion e) + { + return e._value; + } + + /// Overriding != operator for enum TlsVersion + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion e1, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum TlsVersion + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion e1, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/RedisEnterpriseCache/generated/cmdlets/ExportAzRedisEnterpriseCacheDatabase_ExportExpanded.cs b/src/RedisEnterpriseCache/generated/cmdlets/ExportAzRedisEnterpriseCache_ExportExpanded.cs similarity index 95% rename from src/RedisEnterpriseCache/generated/cmdlets/ExportAzRedisEnterpriseCacheDatabase_ExportExpanded.cs rename to src/RedisEnterpriseCache/generated/cmdlets/ExportAzRedisEnterpriseCache_ExportExpanded.cs index 2055a25c2e25..c892c9fb57ef 100644 --- a/src/RedisEnterpriseCache/generated/cmdlets/ExportAzRedisEnterpriseCacheDatabase_ExportExpanded.cs +++ b/src/RedisEnterpriseCache/generated/cmdlets/ExportAzRedisEnterpriseCache_ExportExpanded.cs @@ -12,11 +12,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Cmdlets /// [OpenAPI] Export=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/export" /// [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Export, @"AzRedisEnterpriseCacheDatabase_ExportExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Export, @"AzRedisEnterpriseCache_ExportExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.Alias("Export-AzRedisEnterpriseCacheDatabase")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Description(@"Exports a database file from target database.")] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Generated] - public partial class ExportAzRedisEnterpriseCacheDatabase_ExportExpanded : global::System.Management.Automation.PSCmdlet, + public partial class ExportAzRedisEnterpriseCache_ExportExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener { /// A unique id generatd for the this cmdlet when it is instantiated. @@ -116,10 +117,10 @@ public partial class ExportAzRedisEnterpriseCacheDatabase_ExportExpanded : globa public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IExportClusterParameters _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ExportClusterParameters(); + private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IExportClusterParameters _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ExportClusterParameters(); /// Parameters for a Redis Enterprise export operation. - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IExportClusterParameters ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IExportClusterParameters ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } /// /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. @@ -152,24 +153,24 @@ public partial class ExportAzRedisEnterpriseCacheDatabase_ExportExpanded : globa /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Path)] public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - /// SAS Uri for the target directory to export to - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "SAS Uri for the target directory to export to")] + /// SAS URI for the target directory to export to + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "SAS URI for the target directory to export to")] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"SAS Uri for the target directory to export to", + Description = @"SAS URI for the target directory to export to", SerializedName = @"sasUri", PossibleTypes = new [] { typeof(string) })] public string SasUri { get => ParametersBody.SasUri ?? null; set => ParametersBody.SasUri = value; } @@ -177,15 +178,12 @@ public partial class ExportAzRedisEnterpriseCacheDatabase_ExportExpanded : globa /// Backing field for property. private string _subscriptionId; - /// - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo( @@ -231,10 +229,10 @@ protected override void BeginProcessing() } /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of ExportAzRedisEnterpriseCacheDatabase_ExportExpanded - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Cmdlets.ExportAzRedisEnterpriseCacheDatabase_ExportExpanded Clone() + /// a duplicate instance of ExportAzRedisEnterpriseCache_ExportExpanded + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Cmdlets.ExportAzRedisEnterpriseCache_ExportExpanded Clone() { - var clone = new ExportAzRedisEnterpriseCacheDatabase_ExportExpanded(); + var clone = new ExportAzRedisEnterpriseCache_ExportExpanded(); clone.__correlationId = this.__correlationId; clone.__processRecordId = this.__processRecordId; clone.DefaultProfile = this.DefaultProfile; @@ -262,9 +260,9 @@ protected override void EndProcessing() } /// - /// Intializes a new instance of the cmdlet class. + /// Intializes a new instance of the cmdlet class. /// - public ExportAzRedisEnterpriseCacheDatabase_ExportExpanded() + public ExportAzRedisEnterpriseCache_ExportExpanded() { } diff --git a/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCacheDatabase_Get.cs b/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCacheDatabase_Get.cs index d9830d68044c..bbab08a473bd 100644 --- a/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCacheDatabase_Get.cs +++ b/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCacheDatabase_Get.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzRedisEnterpriseCacheDatabase_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase))] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Description(@"Gets information about a database in a RedisEnterprise cluster.")] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Generated] public partial class GetAzRedisEnterpriseCacheDatabase_Get : global::System.Management.Automation.PSCmdlet, @@ -126,12 +126,12 @@ public partial class GetAzRedisEnterpriseCacheDatabase_Get : global::System.Mana /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Path)] @@ -140,15 +140,12 @@ public partial class GetAzRedisEnterpriseCacheDatabase_Get : global::System.Mana /// Backing field for property. private string[] _subscriptionId; - /// - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo( @@ -175,12 +172,12 @@ public partial class GetAzRedisEnterpriseCacheDatabase_Get : global::System.Mana /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -392,12 +389,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -409,7 +406,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase WriteObject((await response)); } } diff --git a/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCacheDatabase_List.cs b/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCacheDatabase_List.cs index 13d2bcd5bf7d..8c2109a169b5 100644 --- a/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCacheDatabase_List.cs +++ b/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCacheDatabase_List.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzRedisEnterpriseCacheDatabase_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase))] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Description(@"Gets all databases in the specified RedisEnterprise cluster.")] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Generated] public partial class GetAzRedisEnterpriseCacheDatabase_List : global::System.Management.Automation.PSCmdlet, @@ -111,12 +111,12 @@ public partial class GetAzRedisEnterpriseCacheDatabase_List : global::System.Man /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Path)] @@ -125,15 +125,12 @@ public partial class GetAzRedisEnterpriseCacheDatabase_List : global::System.Man /// Backing field for property. private string[] _subscriptionId; - /// - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo( @@ -160,12 +157,12 @@ public partial class GetAzRedisEnterpriseCacheDatabase_List : global::System.Man /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -377,12 +374,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCacheDatabaseKey_List.cs b/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCacheKey_List.cs similarity index 95% rename from src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCacheDatabaseKey_List.cs rename to src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCacheKey_List.cs index ccf3ab7c74c4..3a2b8a910ffc 100644 --- a/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCacheDatabaseKey_List.cs +++ b/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCacheKey_List.cs @@ -12,11 +12,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Cmdlets /// [OpenAPI] ListKeys=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/listKeys" /// [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzRedisEnterpriseCacheDatabaseKey_List", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeys))] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzRedisEnterpriseCacheKey_List", SupportsShouldProcess = true)] + [global::System.Management.Automation.Alias("Get-AzRedisEnterpriseCacheDatabaseKey", "Get-AzRedisEnterpriseCacheAccessKey")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeys))] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Description(@"Retrieves the access keys for the RedisEnterprise database.")] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Generated] - public partial class GetAzRedisEnterpriseCacheDatabaseKey_List : global::System.Management.Automation.PSCmdlet, + public partial class GetAzRedisEnterpriseCacheKey_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener { /// A unique id generatd for the this cmdlet when it is instantiated. @@ -125,12 +126,12 @@ public partial class GetAzRedisEnterpriseCacheDatabaseKey_List : global::System. /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Path)] @@ -139,15 +140,12 @@ public partial class GetAzRedisEnterpriseCacheDatabaseKey_List : global::System. /// Backing field for property. private string[] _subscriptionId; - /// - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo( @@ -174,12 +172,12 @@ public partial class GetAzRedisEnterpriseCacheDatabaseKey_List : global::System. /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -201,9 +199,9 @@ protected override void EndProcessing() } /// - /// Intializes a new instance of the cmdlet class. + /// Intializes a new instance of the cmdlet class. /// - public GetAzRedisEnterpriseCacheDatabaseKey_List() + public GetAzRedisEnterpriseCacheKey_List() { } @@ -394,12 +392,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -411,7 +409,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeys + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeys WriteObject((await response)); } } diff --git a/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCacheOperationStatus_Operation.cs b/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCacheOperationStatus_Get.cs similarity index 95% rename from src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCacheOperationStatus_Operation.cs rename to src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCacheOperationStatus_Get.cs index f1199e5a3bc4..8295f5b269bb 100644 --- a/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCacheOperationStatus_Operation.cs +++ b/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCacheOperationStatus_Get.cs @@ -9,13 +9,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Cmdlets /// Gets the status of operation. /// - /// [OpenAPI] OperationStatus=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/operationsStatus/{operationId}" + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/operationsStatus/{operationId}" /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzRedisEnterpriseCacheOperationStatus_Operation")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatus))] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzRedisEnterpriseCacheOperationStatus_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatus))] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Description(@"Gets the status of operation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Generated] - public partial class GetAzRedisEnterpriseCacheOperationStatus_Operation : global::System.Management.Automation.PSCmdlet, + public partial class GetAzRedisEnterpriseCacheOperationStatus_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener { /// A unique id generatd for the this cmdlet when it is instantiated. @@ -124,15 +124,12 @@ public partial class GetAzRedisEnterpriseCacheOperationStatus_Operation : global /// Backing field for property. private string[] _subscriptionId; - /// - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo( @@ -159,12 +156,12 @@ public partial class GetAzRedisEnterpriseCacheOperationStatus_Operation : global /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -186,9 +183,9 @@ protected override void EndProcessing() } /// - /// Intializes a new instance of the cmdlet class. + /// Intializes a new instance of the cmdlet class. /// - public GetAzRedisEnterpriseCacheOperationStatus_Operation() + public GetAzRedisEnterpriseCacheOperationStatus_Get() { } @@ -307,7 +304,7 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.GetOperationStatus(Location, OperationId, SubscriptionId, onOk, onDefault, this, Pipeline); + await this.Client.OperationsStatusGet(Location, OperationId, SubscriptionId, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } @@ -376,12 +373,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -393,7 +390,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatus + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatus WriteObject((await response)); } } diff --git a/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCachePrivateEndpointConnection_Get.cs b/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCachePrivateEndpointConnection_Get.cs index 74f8bf1aa9f1..5ab57c1df745 100644 --- a/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCachePrivateEndpointConnection_Get.cs +++ b/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCachePrivateEndpointConnection_Get.cs @@ -128,12 +128,12 @@ public partial class GetAzRedisEnterpriseCachePrivateEndpointConnection_Get : gl /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Path)] @@ -142,15 +142,12 @@ public partial class GetAzRedisEnterpriseCachePrivateEndpointConnection_Get : gl /// Backing field for property. private string[] _subscriptionId; - /// - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo( diff --git a/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCachePrivateEndpointConnection_List.cs b/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCachePrivateEndpointConnection_List.cs index ffe1716e6578..d94c961197d5 100644 --- a/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCachePrivateEndpointConnection_List.cs +++ b/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCachePrivateEndpointConnection_List.cs @@ -113,12 +113,12 @@ public partial class GetAzRedisEnterpriseCachePrivateEndpointConnection_List : g /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Path)] @@ -127,15 +127,12 @@ public partial class GetAzRedisEnterpriseCachePrivateEndpointConnection_List : g /// Backing field for property. private string[] _subscriptionId; - /// - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo( diff --git a/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCachePrivateLinkResource_List.cs b/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCachePrivateLinkResource_List.cs index 1e790b9467be..38bfe65dd9ba 100644 --- a/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCachePrivateLinkResource_List.cs +++ b/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCachePrivateLinkResource_List.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Cmdlets /// Gets the private link resources that need to be created for a RedisEnterprise cluster. /// /// - /// [OpenAPI] ListByRedisEnterpriseCache=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateLinkResources" + /// [OpenAPI] ListByCluster=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateLinkResources" /// [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzRedisEnterpriseCachePrivateLinkResource_List")] @@ -113,12 +113,12 @@ public partial class GetAzRedisEnterpriseCachePrivateLinkResource_List : global: /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Path)] @@ -127,15 +127,12 @@ public partial class GetAzRedisEnterpriseCachePrivateLinkResource_List : global: /// Backing field for property. private string[] _subscriptionId; - /// - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo( @@ -310,7 +307,7 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.PrivateLinkResourcesListByRedisEnterpriseCache(ResourceGroupName, ClusterName, SubscriptionId, onOk, onDefault, this, Pipeline); + await this.Client.PrivateLinkResourcesListByCluster(ResourceGroupName, ClusterName, SubscriptionId, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } diff --git a/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCache_Get.cs b/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCache_Get.cs index c9fc88fa09d0..8136752bd3e4 100644 --- a/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCache_Get.cs +++ b/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCache_Get.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzRedisEnterpriseCache_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster))] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Description(@"Gets information about a RedisEnterprise cluster")] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Generated] public partial class GetAzRedisEnterpriseCache_Get : global::System.Management.Automation.PSCmdlet, @@ -112,12 +112,12 @@ public partial class GetAzRedisEnterpriseCache_Get : global::System.Management.A /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Path)] @@ -126,15 +126,12 @@ public partial class GetAzRedisEnterpriseCache_Get : global::System.Management.A /// Backing field for property. private string[] _subscriptionId; - /// - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo( @@ -161,12 +158,12 @@ public partial class GetAzRedisEnterpriseCache_Get : global::System.Management.A /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -378,12 +375,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -395,7 +392,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster WriteObject((await response)); } } diff --git a/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCache_List.cs b/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCache_List.cs index 92f3a24c4291..8c503b77900e 100644 --- a/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCache_List.cs +++ b/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCache_List.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzRedisEnterpriseCache_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster))] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Description(@"Lists all RedisEnterprise clusters in a resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Generated] public partial class GetAzRedisEnterpriseCache_List : global::System.Management.Automation.PSCmdlet, @@ -97,12 +97,12 @@ public partial class GetAzRedisEnterpriseCache_List : global::System.Management. /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Path)] @@ -111,15 +111,12 @@ public partial class GetAzRedisEnterpriseCache_List : global::System.Management. /// Backing field for property. private string[] _subscriptionId; - /// - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo( @@ -146,12 +143,12 @@ public partial class GetAzRedisEnterpriseCache_List : global::System.Management. /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -363,12 +360,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCache_List1.cs b/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCache_List1.cs index 464b6f8a4419..544f52a7a5da 100644 --- a/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCache_List1.cs +++ b/src/RedisEnterpriseCache/generated/cmdlets/GetAzRedisEnterpriseCache_List1.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzRedisEnterpriseCache_List1")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster))] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Description(@"Gets all RedisEnterprise clusters in the specified subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Generated] public partial class GetAzRedisEnterpriseCache_List1 : global::System.Management.Automation.PSCmdlet, @@ -97,15 +97,12 @@ public partial class GetAzRedisEnterpriseCache_List1 : global::System.Management /// Backing field for property. private string[] _subscriptionId; - /// - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo( @@ -132,12 +129,12 @@ public partial class GetAzRedisEnterpriseCache_List1 : global::System.Management /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -349,12 +346,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/RedisEnterpriseCache/generated/cmdlets/ImportAzRedisEnterpriseCacheDatabase_ImportExpanded.cs b/src/RedisEnterpriseCache/generated/cmdlets/ImportAzRedisEnterpriseCache_ImportExpanded.cs similarity index 95% rename from src/RedisEnterpriseCache/generated/cmdlets/ImportAzRedisEnterpriseCacheDatabase_ImportExpanded.cs rename to src/RedisEnterpriseCache/generated/cmdlets/ImportAzRedisEnterpriseCache_ImportExpanded.cs index 9295240718a2..3543558cd83d 100644 --- a/src/RedisEnterpriseCache/generated/cmdlets/ImportAzRedisEnterpriseCacheDatabase_ImportExpanded.cs +++ b/src/RedisEnterpriseCache/generated/cmdlets/ImportAzRedisEnterpriseCache_ImportExpanded.cs @@ -12,11 +12,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Cmdlets /// [OpenAPI] Import=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/import" /// [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Import, @"AzRedisEnterpriseCacheDatabase_ImportExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Import, @"AzRedisEnterpriseCache_ImportExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.Alias("Import-AzRedisEnterpriseCacheDatabase")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Description(@"Imports a database file to target database.")] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Generated] - public partial class ImportAzRedisEnterpriseCacheDatabase_ImportExpanded : global::System.Management.Automation.PSCmdlet, + public partial class ImportAzRedisEnterpriseCache_ImportExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener { /// A unique id generatd for the this cmdlet when it is instantiated. @@ -116,10 +117,10 @@ public partial class ImportAzRedisEnterpriseCacheDatabase_ImportExpanded : globa public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IImportClusterParameters _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ImportClusterParameters(); + private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IImportClusterParameters _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ImportClusterParameters(); /// Parameters for a Redis Enterprise import operation. - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IImportClusterParameters ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IImportClusterParameters ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } /// /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. @@ -152,24 +153,24 @@ public partial class ImportAzRedisEnterpriseCacheDatabase_ImportExpanded : globa /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Path)] public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - /// SAS Uri for the target blob to import from - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "SAS Uri for the target blob to import from")] + /// SAS URI for the target blob to import from + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "SAS URI for the target blob to import from")] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"SAS Uri for the target blob to import from", + Description = @"SAS URI for the target blob to import from", SerializedName = @"sasUri", PossibleTypes = new [] { typeof(string) })] public string SasUri { get => ParametersBody.SasUri ?? null; set => ParametersBody.SasUri = value; } @@ -177,15 +178,12 @@ public partial class ImportAzRedisEnterpriseCacheDatabase_ImportExpanded : globa /// Backing field for property. private string _subscriptionId; - /// - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo( @@ -231,10 +229,10 @@ protected override void BeginProcessing() } /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of ImportAzRedisEnterpriseCacheDatabase_ImportExpanded - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Cmdlets.ImportAzRedisEnterpriseCacheDatabase_ImportExpanded Clone() + /// a duplicate instance of ImportAzRedisEnterpriseCache_ImportExpanded + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Cmdlets.ImportAzRedisEnterpriseCache_ImportExpanded Clone() { - var clone = new ImportAzRedisEnterpriseCacheDatabase_ImportExpanded(); + var clone = new ImportAzRedisEnterpriseCache_ImportExpanded(); clone.__correlationId = this.__correlationId; clone.__processRecordId = this.__processRecordId; clone.DefaultProfile = this.DefaultProfile; @@ -262,9 +260,9 @@ protected override void EndProcessing() } /// - /// Intializes a new instance of the cmdlet class. + /// Intializes a new instance of the cmdlet class. /// - public ImportAzRedisEnterpriseCacheDatabase_ImportExpanded() + public ImportAzRedisEnterpriseCache_ImportExpanded() { } diff --git a/src/RedisEnterpriseCache/generated/cmdlets/NewAzRedisEnterpriseCacheDatabase_Create.cs b/src/RedisEnterpriseCache/generated/cmdlets/NewAzRedisEnterpriseCacheDatabase_Create.cs deleted file mode 100644 index ea84216d7859..000000000000 --- a/src/RedisEnterpriseCache/generated/cmdlets/NewAzRedisEnterpriseCacheDatabase_Create.cs +++ /dev/null @@ -1,498 +0,0 @@ -// 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.PowerShell.Cmdlets.RedisEnterpriseCache.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; - - /// Creates a database - /// - /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzRedisEnterpriseCacheDatabase_Create", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase))] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Description(@"Creates a database")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Generated] - public partial class NewAzRedisEnterpriseCacheDatabase_Create : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.RedisEnterpriseCache Client => Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Module.Instance.ClientAPI; - - /// Backing field for property. - private string _clusterName; - - /// The name of the RedisEnterprise cluster. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the RedisEnterprise cluster.")] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the RedisEnterprise cluster.", - SerializedName = @"clusterName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Path)] - public string ClusterName { get => this._clusterName; set => this._clusterName = value; } - - /// - /// The credentials, account, tenant, and subscription used for communication with Azure - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// Backing field for property. - private string _name; - - /// The name of the database. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the database.")] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the database.", - SerializedName = @"databaseName", - PossibleTypes = new [] { typeof(string) })] - [global::System.Management.Automation.Alias("DatabaseName")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Path)] - public string Name { get => this._name; set => this._name = value; } - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase _parameter; - - /// Describes a database on the RedisEnterprise cluster - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Describes a database on the RedisEnterprise cluster", ValueFromPipeline = true)] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Describes a database on the RedisEnterprise cluster", - SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase) })] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase Parameter { get => this._parameter; set => this._parameter = value; } - - /// - /// The instance of the that the remote call will use. - /// - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// The name of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group.")] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the resource group.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of NewAzRedisEnterpriseCacheDatabase_Create - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Cmdlets.NewAzRedisEnterpriseCacheDatabase_Create Clone() - { - var clone = new NewAzRedisEnterpriseCacheDatabase_Create(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ResourceGroupName = this.ResourceGroupName; - clone.ClusterName = this.ClusterName; - clone.Name = this.Name; - clone.SubscriptionId = this.SubscriptionId; - clone.Parameter = this.Parameter; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.DelayBeforePolling: - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - var data = messageData(); - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// - /// Intializes a new instance of the cmdlet class. - /// - public NewAzRedisEnterpriseCacheDatabase_Create() - { - - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'DatabasesCreate' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DatabasesCreate(ResourceGroupName, ClusterName, Name, SubscriptionId, Parameter, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,ClusterName=ClusterName,Name=Name,SubscriptionId=SubscriptionId,body=Parameter}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, ClusterName=ClusterName, Name=Name, SubscriptionId=SubscriptionId, body=Parameter }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, ClusterName=ClusterName, Name=Name, SubscriptionId=SubscriptionId, body=Parameter }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase - WriteObject((await response)); - } - } - } -} \ No newline at end of file diff --git a/src/RedisEnterpriseCache/generated/cmdlets/NewAzRedisEnterpriseCacheDatabase_CreateExpanded.cs b/src/RedisEnterpriseCache/generated/cmdlets/NewAzRedisEnterpriseCacheDatabase_CreateExpanded.cs index b942e243e967..1223cef3c4e5 100644 --- a/src/RedisEnterpriseCache/generated/cmdlets/NewAzRedisEnterpriseCacheDatabase_CreateExpanded.cs +++ b/src/RedisEnterpriseCache/generated/cmdlets/NewAzRedisEnterpriseCacheDatabase_CreateExpanded.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzRedisEnterpriseCacheDatabase_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase))] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Description(@"Creates a database")] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Generated] public partial class NewAzRedisEnterpriseCacheDatabase_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -33,6 +33,29 @@ public partial class NewAzRedisEnterpriseCacheDatabase_CreateExpanded : global:: /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// Sets whether AOF is enabled. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Sets whether AOF is enabled.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets whether AOF is enabled.", + SerializedName = @"aofEnabled", + PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] + public global::System.Management.Automation.SwitchParameter AofPersistenceEnabled { get => ParametersBody.PersistenceAofEnabled ?? default(global::System.Management.Automation.SwitchParameter); set => ParametersBody.PersistenceAofEnabled = value; } + + /// Sets the frequency at which data is written to disk. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Sets the frequency at which data is written to disk.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets the frequency at which data is written to disk.", + SerializedName = @"aofFrequency", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency))] + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency AofPersistenceFrequency { get => ParametersBody.PersistenceAofFrequency ?? ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency)""); set => ParametersBody.PersistenceAofFrequency = value; } + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] @@ -141,8 +164,8 @@ public partial class NewAzRedisEnterpriseCacheDatabase_CreateExpanded : global:: ReadOnly = false, Description = @"Optional set of redis modules to enable in this database - modules can only be added at creation time.", SerializedName = @"modules", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule) })] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule[] Module { get => ParametersBody.Module ?? null /* arrayOf */; set => ParametersBody.Module = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule) })] + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule[] Module { get => ParametersBody.Module ?? null /* arrayOf */; set => ParametersBody.Module = value; } /// Backing field for property. private string _name; @@ -168,10 +191,10 @@ public partial class NewAzRedisEnterpriseCacheDatabase_CreateExpanded : global:: public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.Database(); + private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.Database(); /// Describes a database on the RedisEnterprise cluster - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } /// /// The instance of the that the remote call will use. @@ -207,15 +230,38 @@ public partial class NewAzRedisEnterpriseCacheDatabase_CreateExpanded : global:: [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + /// Sets whether RDB is enabled. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Sets whether RDB is enabled.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets whether RDB is enabled.", + SerializedName = @"rdbEnabled", + PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] + public global::System.Management.Automation.SwitchParameter RdbPersistenceEnabled { get => ParametersBody.PersistenceRdbEnabled ?? default(global::System.Management.Automation.SwitchParameter); set => ParametersBody.PersistenceRdbEnabled = value; } + + /// Sets the frequency at which a snapshot of the database is created. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Sets the frequency at which a snapshot of the database is created.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets the frequency at which a snapshot of the database is created.", + SerializedName = @"rdbFrequency", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency))] + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency RdbPersistenceFrequency { get => ParametersBody.PersistenceRdbFrequency ?? ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency)""); set => ParametersBody.PersistenceRdbFrequency = value; } + /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Path)] @@ -224,15 +270,12 @@ public partial class NewAzRedisEnterpriseCacheDatabase_CreateExpanded : global:: /// Backing field for property. private string _subscriptionId; - /// - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo( @@ -259,12 +302,12 @@ public partial class NewAzRedisEnterpriseCacheDatabase_CreateExpanded : global:: /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -531,12 +574,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -548,7 +591,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase WriteObject((await response)); } } diff --git a/src/RedisEnterpriseCache/generated/cmdlets/NewAzRedisEnterpriseCacheDatabase_CreateViaIdentity.cs b/src/RedisEnterpriseCache/generated/cmdlets/NewAzRedisEnterpriseCacheDatabase_CreateViaIdentity.cs deleted file mode 100644 index 5c875d441a43..000000000000 --- a/src/RedisEnterpriseCache/generated/cmdlets/NewAzRedisEnterpriseCacheDatabase_CreateViaIdentity.cs +++ /dev/null @@ -1,462 +0,0 @@ -// 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.PowerShell.Cmdlets.RedisEnterpriseCache.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; - - /// Creates a database - /// - /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzRedisEnterpriseCacheDatabase_CreateViaIdentity", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase))] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Description(@"Creates a database")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Generated] - public partial class NewAzRedisEnterpriseCacheDatabase_CreateViaIdentity : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.RedisEnterpriseCache Client => Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Module.Instance.ClientAPI; - - /// - /// The credentials, account, tenant, and subscription used for communication with Azure - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.IRedisEnterpriseCacheIdentity _inputObject; - - /// Identity Parameter - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Path)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.IRedisEnterpriseCacheIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase _parameter; - - /// Describes a database on the RedisEnterprise cluster - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Describes a database on the RedisEnterprise cluster", ValueFromPipeline = true)] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Describes a database on the RedisEnterprise cluster", - SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase) })] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase Parameter { get => this._parameter; set => this._parameter = value; } - - /// - /// The instance of the that the remote call will use. - /// - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of NewAzRedisEnterpriseCacheDatabase_CreateViaIdentity - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Cmdlets.NewAzRedisEnterpriseCacheDatabase_CreateViaIdentity Clone() - { - var clone = new NewAzRedisEnterpriseCacheDatabase_CreateViaIdentity(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.Parameter = this.Parameter; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.DelayBeforePolling: - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - var data = messageData(); - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// - /// Intializes a new instance of the cmdlet class. - /// - public NewAzRedisEnterpriseCacheDatabase_CreateViaIdentity() - { - - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'DatabasesCreate' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - if (InputObject?.Id != null) - { - await this.Client.DatabasesCreateViaIdentity(InputObject.Id, Parameter, onOk, onDefault, this, Pipeline); - } - else - { - // try to call with PATH parameters from Input Object - if (null == InputObject.ResourceGroupName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.ClusterName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ClusterName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.DatabaseName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DatabaseName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.SubscriptionId) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - await this.Client.DatabasesCreate(InputObject.ResourceGroupName ?? null, InputObject.ClusterName ?? null, InputObject.DatabaseName ?? null, InputObject.SubscriptionId ?? null, Parameter, onOk, onDefault, this, Pipeline); - } - await ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase - WriteObject((await response)); - } - } - } -} \ No newline at end of file diff --git a/src/RedisEnterpriseCache/generated/cmdlets/NewAzRedisEnterpriseCacheDatabase_CreateViaIdentityExpanded.cs b/src/RedisEnterpriseCache/generated/cmdlets/NewAzRedisEnterpriseCacheDatabase_CreateViaIdentityExpanded.cs deleted file mode 100644 index 863f6bd09ca6..000000000000 --- a/src/RedisEnterpriseCache/generated/cmdlets/NewAzRedisEnterpriseCacheDatabase_CreateViaIdentityExpanded.cs +++ /dev/null @@ -1,522 +0,0 @@ -// 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.PowerShell.Cmdlets.RedisEnterpriseCache.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; - - /// Creates a database - /// - /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzRedisEnterpriseCacheDatabase_CreateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase))] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Description(@"Creates a database")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Generated] - public partial class NewAzRedisEnterpriseCacheDatabase_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.RedisEnterpriseCache Client => Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Module.Instance.ClientAPI; - - /// - /// Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted.", - SerializedName = @"clientProtocol", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol) })] - [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol))] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol ClientProtocol { get => ParametersBody.ClientProtocol ?? ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol)""); set => ParametersBody.ClientProtocol = value; } - - /// Clustering policy - default is OSSCluster. Specified at create time. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Clustering policy - default is OSSCluster. Specified at create time.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Clustering policy - default is OSSCluster. Specified at create time.", - SerializedName = @"clusteringPolicy", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy) })] - [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy))] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy ClusteringPolicy { get => ParametersBody.ClusteringPolicy ?? ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy)""); set => ParametersBody.ClusteringPolicy = value; } - - /// - /// The credentials, account, tenant, and subscription used for communication with Azure - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// Redis eviction policy - default is VolatileLRU - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Redis eviction policy - default is VolatileLRU")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Redis eviction policy - default is VolatileLRU", - SerializedName = @"evictionPolicy", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy) })] - [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy))] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy EvictionPolicy { get => ParametersBody.EvictionPolicy ?? ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy)""); set => ParametersBody.EvictionPolicy = value; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.IRedisEnterpriseCacheIdentity _inputObject; - - /// Identity Parameter - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Path)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.IRedisEnterpriseCacheIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// Optional set of redis modules to enable in this database - modules can only be added at creation time. - /// - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Optional set of redis modules to enable in this database - modules can only be added at creation time.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Optional set of redis modules to enable in this database - modules can only be added at creation time.", - SerializedName = @"modules", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule) })] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule[] Module { get => ParametersBody.Module ?? null /* arrayOf */; set => ParametersBody.Module = value; } - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.Database(); - - /// Describes a database on the RedisEnterprise cluster - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } - - /// - /// The instance of the that the remote call will use. - /// - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.HttpPipeline Pipeline { get; set; } - - /// - /// TCP port of the database endpoint. Specified at create time. Defaults to an available port. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "TCP port of the database endpoint. Specified at create time. Defaults to an available port.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"TCP port of the database endpoint. Specified at create time. Defaults to an available port.", - SerializedName = @"port", - PossibleTypes = new [] { typeof(int) })] - public int Port { get => ParametersBody.Port ?? default(int); set => ParametersBody.Port = value; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// - /// a duplicate instance of NewAzRedisEnterpriseCacheDatabase_CreateViaIdentityExpanded - /// - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Cmdlets.NewAzRedisEnterpriseCacheDatabase_CreateViaIdentityExpanded Clone() - { - var clone = new NewAzRedisEnterpriseCacheDatabase_CreateViaIdentityExpanded(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.DelayBeforePolling: - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - var data = messageData(); - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// - /// Intializes a new instance of the cmdlet class. - /// - public NewAzRedisEnterpriseCacheDatabase_CreateViaIdentityExpanded() - { - - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'DatabasesCreate' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - if (InputObject?.Id != null) - { - await this.Client.DatabasesCreateViaIdentity(InputObject.Id, ParametersBody, onOk, onDefault, this, Pipeline); - } - else - { - // try to call with PATH parameters from Input Object - if (null == InputObject.ResourceGroupName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.ClusterName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ClusterName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.DatabaseName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DatabaseName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.SubscriptionId) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - await this.Client.DatabasesCreate(InputObject.ResourceGroupName ?? null, InputObject.ClusterName ?? null, InputObject.DatabaseName ?? null, InputObject.SubscriptionId ?? null, ParametersBody, onOk, onDefault, this, Pipeline); - } - await ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase - WriteObject((await response)); - } - } - } -} \ No newline at end of file diff --git a/src/RedisEnterpriseCache/generated/cmdlets/NewAzRedisEnterpriseCacheDatabaseKey_RegenerateExpanded.cs b/src/RedisEnterpriseCache/generated/cmdlets/NewAzRedisEnterpriseCacheKey_RegenerateExpanded.cs similarity index 94% rename from src/RedisEnterpriseCache/generated/cmdlets/NewAzRedisEnterpriseCacheDatabaseKey_RegenerateExpanded.cs rename to src/RedisEnterpriseCache/generated/cmdlets/NewAzRedisEnterpriseCacheKey_RegenerateExpanded.cs index f43d8992952f..190a30715d81 100644 --- a/src/RedisEnterpriseCache/generated/cmdlets/NewAzRedisEnterpriseCacheDatabaseKey_RegenerateExpanded.cs +++ b/src/RedisEnterpriseCache/generated/cmdlets/NewAzRedisEnterpriseCacheKey_RegenerateExpanded.cs @@ -12,11 +12,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Cmdlets /// [OpenAPI] RegenerateKey=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/regenerateKey" /// [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzRedisEnterpriseCacheDatabaseKey_RegenerateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeys))] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzRedisEnterpriseCacheKey_RegenerateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.Alias("New-AzRedisEnterpriseCacheDatabaseKey", "New-AzRedisEnterpriseCacheAccessKey")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeys))] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Description(@"Regenerates the RedisEnterprise database's access keys.")] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Generated] - public partial class NewAzRedisEnterpriseCacheDatabaseKey_RegenerateExpanded : global::System.Management.Automation.PSCmdlet, + public partial class NewAzRedisEnterpriseCacheKey_RegenerateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener { /// A unique id generatd for the this cmdlet when it is instantiated. @@ -127,10 +128,10 @@ public partial class NewAzRedisEnterpriseCacheDatabaseKey_RegenerateExpanded : g public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IRegenerateKeyParameters _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.RegenerateKeyParameters(); + private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IRegenerateKeyParameters _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.RegenerateKeyParameters(); /// Specifies which access keys to reset to a new random value. - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IRegenerateKeyParameters ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IRegenerateKeyParameters ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } /// /// The instance of the that the remote call will use. @@ -156,12 +157,12 @@ public partial class NewAzRedisEnterpriseCacheDatabaseKey_RegenerateExpanded : g /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Path)] @@ -170,15 +171,12 @@ public partial class NewAzRedisEnterpriseCacheDatabaseKey_RegenerateExpanded : g /// Backing field for property. private string _subscriptionId; - /// - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo( @@ -205,12 +203,12 @@ public partial class NewAzRedisEnterpriseCacheDatabaseKey_RegenerateExpanded : g /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -226,10 +224,10 @@ protected override void BeginProcessing() } /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of NewAzRedisEnterpriseCacheDatabaseKey_RegenerateExpanded - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Cmdlets.NewAzRedisEnterpriseCacheDatabaseKey_RegenerateExpanded Clone() + /// a duplicate instance of NewAzRedisEnterpriseCacheKey_RegenerateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Cmdlets.NewAzRedisEnterpriseCacheKey_RegenerateExpanded Clone() { - var clone = new NewAzRedisEnterpriseCacheDatabaseKey_RegenerateExpanded(); + var clone = new NewAzRedisEnterpriseCacheKey_RegenerateExpanded(); clone.__correlationId = this.__correlationId; clone.__processRecordId = this.__processRecordId; clone.DefaultProfile = this.DefaultProfile; @@ -329,9 +327,9 @@ protected override void EndProcessing() } /// - /// Intializes a new instance of the cmdlet class. + /// Intializes a new instance of the cmdlet class. /// - public NewAzRedisEnterpriseCacheDatabaseKey_RegenerateExpanded() + public NewAzRedisEnterpriseCacheKey_RegenerateExpanded() { } @@ -477,12 +475,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -494,7 +492,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeys + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeys WriteObject((await response)); } } diff --git a/src/RedisEnterpriseCache/generated/cmdlets/NewAzRedisEnterpriseCache_Create.cs b/src/RedisEnterpriseCache/generated/cmdlets/NewAzRedisEnterpriseCache_Create.cs deleted file mode 100644 index 5d90e48f5fea..000000000000 --- a/src/RedisEnterpriseCache/generated/cmdlets/NewAzRedisEnterpriseCache_Create.cs +++ /dev/null @@ -1,484 +0,0 @@ -// 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.PowerShell.Cmdlets.RedisEnterpriseCache.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; - - /// - /// Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster - /// - /// - /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzRedisEnterpriseCache_Create", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster))] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Description(@"Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Generated] - public partial class NewAzRedisEnterpriseCache_Create : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.RedisEnterpriseCache Client => Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Module.Instance.ClientAPI; - - /// Backing field for property. - private string _clusterName; - - /// The name of the RedisEnterprise cluster. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the RedisEnterprise cluster.")] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the RedisEnterprise cluster.", - SerializedName = @"clusterName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Path)] - public string ClusterName { get => this._clusterName; set => this._clusterName = value; } - - /// - /// The credentials, account, tenant, and subscription used for communication with Azure - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster _parameter; - - /// Describes the RedisEnterprise cluster - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Describes the RedisEnterprise cluster", ValueFromPipeline = true)] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Describes the RedisEnterprise cluster", - SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster) })] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster Parameter { get => this._parameter; set => this._parameter = value; } - - /// - /// The instance of the that the remote call will use. - /// - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Backing field for property. - private string _resourceGroupName; - - /// The name of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group.")] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the resource group.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - - /// Backing field for property. - private string _subscriptionId; - - /// - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo( - Name = @"", - Description =@"", - Script = @"(Get-AzContext).Subscription.Id")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Path)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of NewAzRedisEnterpriseCache_Create - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Cmdlets.NewAzRedisEnterpriseCache_Create Clone() - { - var clone = new NewAzRedisEnterpriseCache_Create(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ResourceGroupName = this.ResourceGroupName; - clone.ClusterName = this.ClusterName; - clone.SubscriptionId = this.SubscriptionId; - clone.Parameter = this.Parameter; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.DelayBeforePolling: - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - var data = messageData(); - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// - /// Intializes a new instance of the cmdlet class. - /// - public NewAzRedisEnterpriseCache_Create() - { - - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'RedisEnterpriseCreate' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.RedisEnterpriseCreate(ResourceGroupName, ClusterName, SubscriptionId, Parameter, onOk, onDefault, this, Pipeline); - await ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,ClusterName=ClusterName,SubscriptionId=SubscriptionId,body=Parameter}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, ClusterName=ClusterName, SubscriptionId=SubscriptionId, body=Parameter }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, ClusterName=ClusterName, SubscriptionId=SubscriptionId, body=Parameter }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster - WriteObject((await response)); - } - } - } -} \ No newline at end of file diff --git a/src/RedisEnterpriseCache/generated/cmdlets/NewAzRedisEnterpriseCache_CreateExpanded.cs b/src/RedisEnterpriseCache/generated/cmdlets/NewAzRedisEnterpriseCache_CreateExpanded.cs index 8c7f0c41e46f..1628f717cb8c 100644 --- a/src/RedisEnterpriseCache/generated/cmdlets/NewAzRedisEnterpriseCache_CreateExpanded.cs +++ b/src/RedisEnterpriseCache/generated/cmdlets/NewAzRedisEnterpriseCache_CreateExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzRedisEnterpriseCache_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster))] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Description(@"Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster")] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Generated] public partial class NewAzRedisEnterpriseCache_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -128,8 +128,9 @@ public partial class NewAzRedisEnterpriseCache_CreateExpanded : global::System.M ReadOnly = false, Description = @"The minimum TLS version for the cluster to support, e.g. '1.2'", SerializedName = @"minimumTlsVersion", - PossibleTypes = new [] { typeof(string) })] - public string MinimumTlsVersion { get => ParametersBody.MinimumTlsVersion ?? null; set => ParametersBody.MinimumTlsVersion = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion))] + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion MinimumTlsVersion { get => ParametersBody.MinimumTlsVersion ?? ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion)""); set => ParametersBody.MinimumTlsVersion = value; } /// /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue @@ -140,10 +141,10 @@ public partial class NewAzRedisEnterpriseCache_CreateExpanded : global::System.M public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.Cluster(); + private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.Cluster(); /// Describes the RedisEnterprise cluster - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } /// /// The instance of the that the remote call will use. @@ -169,12 +170,12 @@ public partial class NewAzRedisEnterpriseCache_CreateExpanded : global::System.M /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Path)] @@ -198,15 +199,12 @@ public partial class NewAzRedisEnterpriseCache_CreateExpanded : global::System.M /// Backing field for property. private string _subscriptionId; - /// - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo( @@ -228,14 +226,14 @@ public partial class NewAzRedisEnterpriseCache_CreateExpanded : global::System.M PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceTags) })] public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } - /// The zones where this cluster will be deployed. + /// The Availability Zones where this cluster will be deployed. [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The zones where this cluster will be deployed.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The Availability Zones where this cluster will be deployed.")] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The zones where this cluster will be deployed.", + Description = @"The Availability Zones where this cluster will be deployed.", SerializedName = @"zones", PossibleTypes = new [] { typeof(string) })] public string[] Zone { get => ParametersBody.Zone ?? null /* arrayOf */; set => ParametersBody.Zone = value; } @@ -257,12 +255,12 @@ public partial class NewAzRedisEnterpriseCache_CreateExpanded : global::System.M /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -528,12 +526,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -545,7 +543,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster WriteObject((await response)); } } diff --git a/src/RedisEnterpriseCache/generated/cmdlets/NewAzRedisEnterpriseCache_CreateViaIdentity.cs b/src/RedisEnterpriseCache/generated/cmdlets/NewAzRedisEnterpriseCache_CreateViaIdentity.cs deleted file mode 100644 index 9bf43e35ea3a..000000000000 --- a/src/RedisEnterpriseCache/generated/cmdlets/NewAzRedisEnterpriseCache_CreateViaIdentity.cs +++ /dev/null @@ -1,460 +0,0 @@ -// 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.PowerShell.Cmdlets.RedisEnterpriseCache.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; - - /// - /// Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster - /// - /// - /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzRedisEnterpriseCache_CreateViaIdentity", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster))] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Description(@"Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Generated] - public partial class NewAzRedisEnterpriseCache_CreateViaIdentity : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.RedisEnterpriseCache Client => Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Module.Instance.ClientAPI; - - /// - /// The credentials, account, tenant, and subscription used for communication with Azure - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.IRedisEnterpriseCacheIdentity _inputObject; - - /// Identity Parameter - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Path)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.IRedisEnterpriseCacheIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster _parameter; - - /// Describes the RedisEnterprise cluster - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Describes the RedisEnterprise cluster", ValueFromPipeline = true)] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Describes the RedisEnterprise cluster", - SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster) })] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster Parameter { get => this._parameter; set => this._parameter = value; } - - /// - /// The instance of the that the remote call will use. - /// - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of NewAzRedisEnterpriseCache_CreateViaIdentity - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Cmdlets.NewAzRedisEnterpriseCache_CreateViaIdentity Clone() - { - var clone = new NewAzRedisEnterpriseCache_CreateViaIdentity(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.Parameter = this.Parameter; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.DelayBeforePolling: - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - var data = messageData(); - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// - /// Intializes a new instance of the cmdlet class. - /// - public NewAzRedisEnterpriseCache_CreateViaIdentity() - { - - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'RedisEnterpriseCreate' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - if (InputObject?.Id != null) - { - await this.Client.RedisEnterpriseCreateViaIdentity(InputObject.Id, Parameter, onOk, onDefault, this, Pipeline); - } - else - { - // try to call with PATH parameters from Input Object - if (null == InputObject.ResourceGroupName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.ClusterName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ClusterName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.SubscriptionId) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - await this.Client.RedisEnterpriseCreate(InputObject.ResourceGroupName ?? null, InputObject.ClusterName ?? null, InputObject.SubscriptionId ?? null, Parameter, onOk, onDefault, this, Pipeline); - } - await ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster - WriteObject((await response)); - } - } - } -} \ No newline at end of file diff --git a/src/RedisEnterpriseCache/generated/cmdlets/NewAzRedisEnterpriseCache_CreateViaIdentityExpanded.cs b/src/RedisEnterpriseCache/generated/cmdlets/NewAzRedisEnterpriseCache_CreateViaIdentityExpanded.cs deleted file mode 100644 index 37c965313c72..000000000000 --- a/src/RedisEnterpriseCache/generated/cmdlets/NewAzRedisEnterpriseCache_CreateViaIdentityExpanded.cs +++ /dev/null @@ -1,529 +0,0 @@ -// 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.PowerShell.Cmdlets.RedisEnterpriseCache.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Extensions; - - /// - /// Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster - /// - /// - /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}" - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzRedisEnterpriseCache_CreateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster))] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Description(@"Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Generated] - public partial class NewAzRedisEnterpriseCache_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// when specified, runs this cmdlet as a PowerShell job - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// - /// The size of the RedisEnterprise cluster. Defaults to 2 or 3 depending on SKU. Valid values are (2, 4, 6, ...) for Enterprise - /// SKUs and (3, 9, 15, ...) for Flash SKUs. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The size of the RedisEnterprise cluster. Defaults to 2 or 3 depending on SKU. Valid values are (2, 4, 6, ...) for Enterprise SKUs and (3, 9, 15, ...) for Flash SKUs.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The size of the RedisEnterprise cluster. Defaults to 2 or 3 depending on SKU. Valid values are (2, 4, 6, ...) for Enterprise SKUs and (3, 9, 15, ...) for Flash SKUs.", - SerializedName = @"capacity", - PossibleTypes = new [] { typeof(int) })] - [global::System.Management.Automation.Alias("SkuCapacity")] - public int Capacity { get => ParametersBody.SkuCapacity ?? default(int); set => ParametersBody.SkuCapacity = value; } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.RedisEnterpriseCache Client => Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Module.Instance.ClientAPI; - - /// - /// The credentials, account, tenant, and subscription used for communication with Azure - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.IRedisEnterpriseCacheIdentity _inputObject; - - /// Identity Parameter - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Path)] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.IRedisEnterpriseCacheIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// The geo-location where the resource lives - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The geo-location where the resource lives")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The geo-location where the resource lives", - SerializedName = @"location", - PossibleTypes = new [] { typeof(string) })] - public string Location { get => ParametersBody.Location ?? null; set => ParametersBody.Location = value; } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// The minimum TLS version for the cluster to support, e.g. '1.2' - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The minimum TLS version for the cluster to support, e.g. '1.2'")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The minimum TLS version for the cluster to support, e.g. '1.2'", - SerializedName = @"minimumTlsVersion", - PossibleTypes = new [] { typeof(string) })] - public string MinimumTlsVersion { get => ParametersBody.MinimumTlsVersion ?? null; set => ParametersBody.MinimumTlsVersion = value; } - - /// - /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue - /// asynchronously. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.Cluster(); - - /// Describes the RedisEnterprise cluster - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } - - /// - /// The instance of the that the remote call will use. - /// - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// - /// The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.) - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.)")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.)", - SerializedName = @"name", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName) })] - [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName))] - [global::System.Management.Automation.Alias("SkuName")] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName Sku { get => ParametersBody.SkuName; set => ParametersBody.SkuName = value; } - - /// Resource tags. - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ExportAs(typeof(global::System.Collections.Hashtable))] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource tags.", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } - - /// The zones where this cluster will be deployed. - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The zones where this cluster will be deployed.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The zones where this cluster will be deployed.", - SerializedName = @"zones", - PossibleTypes = new [] { typeof(string) })] - public string[] Zone { get => ParametersBody.Zone ?? null /* arrayOf */; set => ParametersBody.Zone = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of NewAzRedisEnterpriseCache_CreateViaIdentityExpanded - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Cmdlets.NewAzRedisEnterpriseCache_CreateViaIdentityExpanded Clone() - { - var clone = new NewAzRedisEnterpriseCache_CreateViaIdentityExpanded(); - clone.__correlationId = this.__correlationId; - clone.__processRecordId = this.__processRecordId; - clone.DefaultProfile = this.DefaultProfile; - clone.InvocationInformation = this.InvocationInformation; - clone.Proxy = this.Proxy; - clone.Pipeline = this.Pipeline; - clone.AsJob = this.AsJob; - clone.Break = this.Break; - clone.ProxyCredential = this.ProxyCredential; - clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; - clone.HttpPipelinePrepend = this.HttpPipelinePrepend; - clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; - return clone; - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Information: - { - // When an operation supports asjob, Information messages must go thru verbose. - WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.DelayBeforePolling: - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) - { - var data = messageData(); - if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) - { - var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = response.GetFirstHeader(@"Location"); - var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; - WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); - // do nothing more. - data.Cancel(); - return; - } - } - break; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// - /// Intializes a new instance of the cmdlet class. - /// - public NewAzRedisEnterpriseCache_CreateViaIdentityExpanded() - { - - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'RedisEnterpriseCreate' operation")) - { - if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) - { - var instance = this.Clone(); - var job = new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); - JobRepository.Add(job); - var task = instance.ProcessRecordAsync(); - job.Monitor(task); - WriteObject(job); - } - else - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token); - } - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - if (InputObject?.Id != null) - { - await this.Client.RedisEnterpriseCreateViaIdentity(InputObject.Id, ParametersBody, onOk, onDefault, this, Pipeline); - } - else - { - // try to call with PATH parameters from Input Object - if (null == InputObject.ResourceGroupName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.ClusterName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ClusterName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.SubscriptionId) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - await this.Client.RedisEnterpriseCreate(InputObject.ResourceGroupName ?? null, InputObject.ClusterName ?? null, InputObject.SubscriptionId ?? null, ParametersBody, onOk, onDefault, this, Pipeline); - } - await ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster - WriteObject((await response)); - } - } - } -} \ No newline at end of file diff --git a/src/RedisEnterpriseCache/generated/cmdlets/RemoveAzRedisEnterpriseCacheDatabase_Delete.cs b/src/RedisEnterpriseCache/generated/cmdlets/RemoveAzRedisEnterpriseCacheDatabase_Delete.cs index d022c3180553..d96e2a41f79a 100644 --- a/src/RedisEnterpriseCache/generated/cmdlets/RemoveAzRedisEnterpriseCacheDatabase_Delete.cs +++ b/src/RedisEnterpriseCache/generated/cmdlets/RemoveAzRedisEnterpriseCacheDatabase_Delete.cs @@ -146,12 +146,12 @@ public partial class RemoveAzRedisEnterpriseCacheDatabase_Delete : global::Syste /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Path)] @@ -160,15 +160,12 @@ public partial class RemoveAzRedisEnterpriseCacheDatabase_Delete : global::Syste /// Backing field for property. private string _subscriptionId; - /// - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo( diff --git a/src/RedisEnterpriseCache/generated/cmdlets/RemoveAzRedisEnterpriseCachePrivateEndpointConnection_Delete.cs b/src/RedisEnterpriseCache/generated/cmdlets/RemoveAzRedisEnterpriseCachePrivateEndpointConnection_Delete.cs index c7c7df28902e..d2778c5f51b2 100644 --- a/src/RedisEnterpriseCache/generated/cmdlets/RemoveAzRedisEnterpriseCachePrivateEndpointConnection_Delete.cs +++ b/src/RedisEnterpriseCache/generated/cmdlets/RemoveAzRedisEnterpriseCachePrivateEndpointConnection_Delete.cs @@ -135,12 +135,12 @@ public partial class RemoveAzRedisEnterpriseCachePrivateEndpointConnection_Delet /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Path)] @@ -149,15 +149,12 @@ public partial class RemoveAzRedisEnterpriseCachePrivateEndpointConnection_Delet /// Backing field for property. private string _subscriptionId; - /// - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo( diff --git a/src/RedisEnterpriseCache/generated/cmdlets/RemoveAzRedisEnterpriseCache_Delete.cs b/src/RedisEnterpriseCache/generated/cmdlets/RemoveAzRedisEnterpriseCache_Delete.cs index 5459a9de5f2b..022c1cb166aa 100644 --- a/src/RedisEnterpriseCache/generated/cmdlets/RemoveAzRedisEnterpriseCache_Delete.cs +++ b/src/RedisEnterpriseCache/generated/cmdlets/RemoveAzRedisEnterpriseCache_Delete.cs @@ -131,12 +131,12 @@ public partial class RemoveAzRedisEnterpriseCache_Delete : global::System.Manage /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Path)] @@ -145,15 +145,12 @@ public partial class RemoveAzRedisEnterpriseCache_Delete : global::System.Manage /// Backing field for property. private string _subscriptionId; - /// - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo( diff --git a/src/RedisEnterpriseCache/generated/cmdlets/SetAzRedisEnterpriseCachePrivateEndpointConnection_Put.cs b/src/RedisEnterpriseCache/generated/cmdlets/SetAzRedisEnterpriseCachePrivateEndpointConnection_Put.cs index 98ca8a667aff..589fd3261ec0 100644 --- a/src/RedisEnterpriseCache/generated/cmdlets/SetAzRedisEnterpriseCachePrivateEndpointConnection_Put.cs +++ b/src/RedisEnterpriseCache/generated/cmdlets/SetAzRedisEnterpriseCachePrivateEndpointConnection_Put.cs @@ -154,12 +154,12 @@ public partial class SetAzRedisEnterpriseCachePrivateEndpointConnection_Put : gl /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Path)] @@ -168,15 +168,12 @@ public partial class SetAzRedisEnterpriseCachePrivateEndpointConnection_Put : gl /// Backing field for property. private string _subscriptionId; - /// - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo( diff --git a/src/RedisEnterpriseCache/generated/cmdlets/SetAzRedisEnterpriseCachePrivateEndpointConnection_PutExpanded.cs b/src/RedisEnterpriseCache/generated/cmdlets/SetAzRedisEnterpriseCachePrivateEndpointConnection_PutExpanded.cs index 275a7bf1bd75..7a08c2132f96 100644 --- a/src/RedisEnterpriseCache/generated/cmdlets/SetAzRedisEnterpriseCachePrivateEndpointConnection_PutExpanded.cs +++ b/src/RedisEnterpriseCache/generated/cmdlets/SetAzRedisEnterpriseCachePrivateEndpointConnection_PutExpanded.cs @@ -185,12 +185,12 @@ public partial class SetAzRedisEnterpriseCachePrivateEndpointConnection_PutExpan /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Path)] @@ -199,15 +199,12 @@ public partial class SetAzRedisEnterpriseCachePrivateEndpointConnection_PutExpan /// Backing field for property. private string _subscriptionId; - /// - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo( diff --git a/src/RedisEnterpriseCache/generated/cmdlets/UpdateAzRedisEnterpriseCacheDatabase_UpdateExpanded.cs b/src/RedisEnterpriseCache/generated/cmdlets/UpdateAzRedisEnterpriseCacheDatabase_UpdateExpanded.cs index 822d5f2c3230..0ae3dd119d76 100644 --- a/src/RedisEnterpriseCache/generated/cmdlets/UpdateAzRedisEnterpriseCacheDatabase_UpdateExpanded.cs +++ b/src/RedisEnterpriseCache/generated/cmdlets/UpdateAzRedisEnterpriseCacheDatabase_UpdateExpanded.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzRedisEnterpriseCacheDatabase_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase))] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Description(@"Updates a database")] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Generated] public partial class UpdateAzRedisEnterpriseCacheDatabase_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -33,6 +33,29 @@ public partial class UpdateAzRedisEnterpriseCacheDatabase_UpdateExpanded : globa /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// Sets whether AOF is enabled. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Sets whether AOF is enabled.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets whether AOF is enabled.", + SerializedName = @"aofEnabled", + PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] + public global::System.Management.Automation.SwitchParameter AofPersistenceEnabled { get => ParametersBody.PersistenceAofEnabled ?? default(global::System.Management.Automation.SwitchParameter); set => ParametersBody.PersistenceAofEnabled = value; } + + /// Sets the frequency at which data is written to disk. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Sets the frequency at which data is written to disk.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets the frequency at which data is written to disk.", + SerializedName = @"aofFrequency", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency))] + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency AofPersistenceFrequency { get => ParametersBody.PersistenceAofFrequency ?? ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency)""); set => ParametersBody.PersistenceAofFrequency = value; } + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] @@ -141,8 +164,8 @@ public partial class UpdateAzRedisEnterpriseCacheDatabase_UpdateExpanded : globa ReadOnly = false, Description = @"Optional set of redis modules to enable in this database - modules can only be added at creation time.", SerializedName = @"modules", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule) })] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule[] Module { get => ParametersBody.Module ?? null /* arrayOf */; set => ParametersBody.Module = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule) })] + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule[] Module { get => ParametersBody.Module ?? null /* arrayOf */; set => ParametersBody.Module = value; } /// Backing field for property. private string _name; @@ -168,10 +191,10 @@ public partial class UpdateAzRedisEnterpriseCacheDatabase_UpdateExpanded : globa public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdate _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.DatabaseUpdate(); + private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdate _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.DatabaseUpdate(); /// A partial update to the RedisEnterprise database - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdate ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdate ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } /// /// The instance of the that the remote call will use. @@ -207,15 +230,38 @@ public partial class UpdateAzRedisEnterpriseCacheDatabase_UpdateExpanded : globa [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + /// Sets whether RDB is enabled. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Sets whether RDB is enabled.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets whether RDB is enabled.", + SerializedName = @"rdbEnabled", + PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] + public global::System.Management.Automation.SwitchParameter RdbPersistenceEnabled { get => ParametersBody.PersistenceRdbEnabled ?? default(global::System.Management.Automation.SwitchParameter); set => ParametersBody.PersistenceRdbEnabled = value; } + + /// Sets the frequency at which a snapshot of the database is created. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Sets the frequency at which a snapshot of the database is created.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets the frequency at which a snapshot of the database is created.", + SerializedName = @"rdbFrequency", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency))] + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency RdbPersistenceFrequency { get => ParametersBody.PersistenceRdbFrequency ?? ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency)""); set => ParametersBody.PersistenceRdbFrequency = value; } + /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Path)] @@ -224,15 +270,12 @@ public partial class UpdateAzRedisEnterpriseCacheDatabase_UpdateExpanded : globa /// Backing field for property. private string _subscriptionId; - /// - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo( @@ -259,12 +302,12 @@ public partial class UpdateAzRedisEnterpriseCacheDatabase_UpdateExpanded : globa /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -531,12 +574,12 @@ public UpdateAzRedisEnterpriseCacheDatabase_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -548,7 +591,7 @@ public UpdateAzRedisEnterpriseCacheDatabase_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase WriteObject((await response)); } } diff --git a/src/RedisEnterpriseCache/generated/cmdlets/UpdateAzRedisEnterpriseCacheDatabase_UpdateViaIdentityExpanded.cs b/src/RedisEnterpriseCache/generated/cmdlets/UpdateAzRedisEnterpriseCacheDatabase_UpdateViaIdentityExpanded.cs index 861f5ab4db81..c94208c9a987 100644 --- a/src/RedisEnterpriseCache/generated/cmdlets/UpdateAzRedisEnterpriseCacheDatabase_UpdateViaIdentityExpanded.cs +++ b/src/RedisEnterpriseCache/generated/cmdlets/UpdateAzRedisEnterpriseCacheDatabase_UpdateViaIdentityExpanded.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzRedisEnterpriseCacheDatabase_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase))] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Description(@"Updates a database")] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Generated] public partial class UpdateAzRedisEnterpriseCacheDatabase_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -33,6 +33,29 @@ public partial class UpdateAzRedisEnterpriseCacheDatabase_UpdateViaIdentityExpan /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// Sets whether AOF is enabled. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Sets whether AOF is enabled.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets whether AOF is enabled.", + SerializedName = @"aofEnabled", + PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] + public global::System.Management.Automation.SwitchParameter AofPersistenceEnabled { get => ParametersBody.PersistenceAofEnabled ?? default(global::System.Management.Automation.SwitchParameter); set => ParametersBody.PersistenceAofEnabled = value; } + + /// Sets the frequency at which data is written to disk. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Sets the frequency at which data is written to disk.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets the frequency at which data is written to disk.", + SerializedName = @"aofFrequency", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency))] + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency AofPersistenceFrequency { get => ParametersBody.PersistenceAofFrequency ?? ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency)""); set => ParametersBody.PersistenceAofFrequency = value; } + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] @@ -135,8 +158,8 @@ public partial class UpdateAzRedisEnterpriseCacheDatabase_UpdateViaIdentityExpan ReadOnly = false, Description = @"Optional set of redis modules to enable in this database - modules can only be added at creation time.", SerializedName = @"modules", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule) })] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule[] Module { get => ParametersBody.Module ?? null /* arrayOf */; set => ParametersBody.Module = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule) })] + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule[] Module { get => ParametersBody.Module ?? null /* arrayOf */; set => ParametersBody.Module = value; } /// /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue @@ -147,10 +170,10 @@ public partial class UpdateAzRedisEnterpriseCacheDatabase_UpdateViaIdentityExpan public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdate _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.DatabaseUpdate(); + private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdate _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.DatabaseUpdate(); /// A partial update to the RedisEnterprise database - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabaseUpdate ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabaseUpdate ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } /// /// The instance of the that the remote call will use. @@ -186,6 +209,29 @@ public partial class UpdateAzRedisEnterpriseCacheDatabase_UpdateViaIdentityExpan [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + /// Sets whether RDB is enabled. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Sets whether RDB is enabled.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets whether RDB is enabled.", + SerializedName = @"rdbEnabled", + PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] + public global::System.Management.Automation.SwitchParameter RdbPersistenceEnabled { get => ParametersBody.PersistenceRdbEnabled ?? default(global::System.Management.Automation.SwitchParameter); set => ParametersBody.PersistenceRdbEnabled = value; } + + /// Sets the frequency at which a snapshot of the database is created. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Sets the frequency at which a snapshot of the database is created.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sets the frequency at which a snapshot of the database is created.", + SerializedName = @"rdbFrequency", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency))] + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency RdbPersistenceFrequency { get => ParametersBody.PersistenceRdbFrequency ?? ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency)""); set => ParametersBody.PersistenceRdbFrequency = value; } + /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior @@ -203,12 +249,12 @@ public partial class UpdateAzRedisEnterpriseCacheDatabase_UpdateViaIdentityExpan /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -498,12 +544,12 @@ public UpdateAzRedisEnterpriseCacheDatabase_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -515,7 +561,7 @@ public UpdateAzRedisEnterpriseCacheDatabase_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase WriteObject((await response)); } } diff --git a/src/RedisEnterpriseCache/generated/cmdlets/UpdateAzRedisEnterpriseCache_UpdateExpanded.cs b/src/RedisEnterpriseCache/generated/cmdlets/UpdateAzRedisEnterpriseCache_UpdateExpanded.cs index 9f79aa408745..953d75ceb024 100644 --- a/src/RedisEnterpriseCache/generated/cmdlets/UpdateAzRedisEnterpriseCache_UpdateExpanded.cs +++ b/src/RedisEnterpriseCache/generated/cmdlets/UpdateAzRedisEnterpriseCache_UpdateExpanded.cs @@ -12,7 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzRedisEnterpriseCache_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster))] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Description(@"Updates an existing RedisEnterprise cluster")] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Generated] public partial class UpdateAzRedisEnterpriseCache_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -115,8 +115,9 @@ public partial class UpdateAzRedisEnterpriseCache_UpdateExpanded : global::Syste ReadOnly = false, Description = @"The minimum TLS version for the cluster to support, e.g. '1.2'", SerializedName = @"minimumTlsVersion", - PossibleTypes = new [] { typeof(string) })] - public string MinimumTlsVersion { get => ParametersBody.MinimumTlsVersion ?? null; set => ParametersBody.MinimumTlsVersion = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion))] + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion MinimumTlsVersion { get => ParametersBody.MinimumTlsVersion ?? ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion)""); set => ParametersBody.MinimumTlsVersion = value; } /// /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue @@ -127,10 +128,10 @@ public partial class UpdateAzRedisEnterpriseCache_UpdateExpanded : global::Syste public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdate _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ClusterUpdate(); + private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdate _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ClusterUpdate(); /// A partial update to the RedisEnterprise cluster - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdate ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdate ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } /// /// The instance of the that the remote call will use. @@ -156,12 +157,12 @@ public partial class UpdateAzRedisEnterpriseCache_UpdateExpanded : global::Syste /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category(global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ParameterCategory.Path)] @@ -180,20 +181,17 @@ public partial class UpdateAzRedisEnterpriseCache_UpdateExpanded : global::Syste PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName))] [global::System.Management.Automation.Alias("SkuName")] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName Sku { get => ParametersBody.SkuName; set => ParametersBody.SkuName = value; } + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName Sku { get => ParametersBody.SkuName ?? ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName)""); set => ParametersBody.SkuName = value; } /// Backing field for property. private string _subscriptionId; - /// - /// Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part - /// of the URI for every service call. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + Description = @"The ID of the target subscription.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo( @@ -212,8 +210,8 @@ public partial class UpdateAzRedisEnterpriseCache_UpdateExpanded : global::Syste ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what @@ -232,12 +230,12 @@ public partial class UpdateAzRedisEnterpriseCache_UpdateExpanded : global::Syste /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -503,12 +501,12 @@ public UpdateAzRedisEnterpriseCache_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -520,7 +518,7 @@ public UpdateAzRedisEnterpriseCache_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster WriteObject((await response)); } } diff --git a/src/RedisEnterpriseCache/generated/cmdlets/UpdateAzRedisEnterpriseCache_UpdateViaIdentityExpanded.cs b/src/RedisEnterpriseCache/generated/cmdlets/UpdateAzRedisEnterpriseCache_UpdateViaIdentityExpanded.cs index 2afcf0b04c07..a1c3c35c80ae 100644 --- a/src/RedisEnterpriseCache/generated/cmdlets/UpdateAzRedisEnterpriseCache_UpdateViaIdentityExpanded.cs +++ b/src/RedisEnterpriseCache/generated/cmdlets/UpdateAzRedisEnterpriseCache_UpdateViaIdentityExpanded.cs @@ -12,7 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzRedisEnterpriseCache_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster))] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Description(@"Updates an existing RedisEnterprise cluster")] [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Generated] public partial class UpdateAzRedisEnterpriseCache_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -108,8 +108,9 @@ public partial class UpdateAzRedisEnterpriseCache_UpdateViaIdentityExpanded : gl ReadOnly = false, Description = @"The minimum TLS version for the cluster to support, e.g. '1.2'", SerializedName = @"minimumTlsVersion", - PossibleTypes = new [] { typeof(string) })] - public string MinimumTlsVersion { get => ParametersBody.MinimumTlsVersion ?? null; set => ParametersBody.MinimumTlsVersion = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion))] + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion MinimumTlsVersion { get => ParametersBody.MinimumTlsVersion ?? ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion)""); set => ParametersBody.MinimumTlsVersion = value; } /// /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue @@ -120,10 +121,10 @@ public partial class UpdateAzRedisEnterpriseCache_UpdateViaIdentityExpanded : gl public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdate _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ClusterUpdate(); + private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdate _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ClusterUpdate(); /// A partial update to the RedisEnterprise cluster - private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdate ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdate ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } /// /// The instance of the that the remote call will use. @@ -159,7 +160,7 @@ public partial class UpdateAzRedisEnterpriseCache_UpdateViaIdentityExpanded : gl PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName))] [global::System.Management.Automation.Alias("SkuName")] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName Sku { get => ParametersBody.SkuName; set => ParametersBody.SkuName = value; } + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName Sku { get => ParametersBody.SkuName ?? ((Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName)""); set => ParametersBody.SkuName = value; } /// Resource tags. [global::Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.ExportAs(typeof(global::System.Collections.Hashtable))] @@ -170,8 +171,8 @@ public partial class UpdateAzRedisEnterpriseCache_UpdateViaIdentityExpanded : gl ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IClusterUpdateTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IClusterUpdateTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what @@ -190,12 +191,12 @@ public partial class UpdateAzRedisEnterpriseCache_UpdateViaIdentityExpanded : gl /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -478,12 +479,12 @@ public UpdateAzRedisEnterpriseCache_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -495,7 +496,7 @@ public UpdateAzRedisEnterpriseCache_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster WriteObject((await response)); } } diff --git a/src/RedisEnterpriseCache/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs b/src/RedisEnterpriseCache/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs index 8fd804976aec..abfe93fe36eb 100644 --- a/src/RedisEnterpriseCache/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs +++ b/src/RedisEnterpriseCache/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs @@ -42,7 +42,7 @@ public class ExportProxyCmdlet : PSCmdlet [ValidateNotNullOrEmpty] public string DocsFolder { get; set; } - [Parameter(Mandatory = true, ParameterSetName = "Docs")] + [Parameter(Mandatory = true)] [ValidateNotNullOrEmpty] public string ExamplesFolder { get; set; } diff --git a/src/RedisEnterpriseCache/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs b/src/RedisEnterpriseCache/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs index 9c1b875a8417..04ceda24183f 100644 --- a/src/RedisEnterpriseCache/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs +++ b/src/RedisEnterpriseCache/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs @@ -12,114 +12,180 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.PowerShell { - [Cmdlet(VerbsData.Export, "Psd1")] - [DoNotExport] - public class ExportPsd1 : PSCmdlet - { - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string ExportsFolder { get; set; } - - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string CustomFolder { get; set; } - - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string Psd1Path { get; set; } - - [Parameter(Mandatory = true)] - public Guid ModuleGuid { get; set; } - - private static readonly bool IsAzure = Convert.ToBoolean(@"true"); - private const string CustomFolderRelative = "./custom"; - private const string Indent = Psd1Indent; - - protected override void ProcessRecord() + [Cmdlet(VerbsData.Export, "Psd1")] + [DoNotExport] + public class ExportPsd1 : PSCmdlet { - try - { - if (!Directory.Exists(ExportsFolder)) - { - throw new ArgumentException($"Exports folder '{ExportsFolder}' does not exist"); - } + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ExportsFolder { get; set; } - if (!Directory.Exists(CustomFolder)) - { - throw new ArgumentException($"Custom folder '{CustomFolder}' does not exist"); - } + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string CustomFolder { get; set; } - string version = Convert.ToString(@"0.1.0"); - // Validate the module version should be semantic version - // Following regex is official from https://semver.org/ - Regex rx = new Regex(@"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$", RegexOptions.Compiled); - if (rx.Matches(version).Count != 1) - { - throw new ArgumentException("Module-version is not a valid Semantic Version"); - } + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string Psd1Path { get; set; } - string previewVersion = null; - if (version.Contains('-')) - { - string[] versions = version.Split("-".ToCharArray(), 2); - version = versions[0]; - previewVersion = versions[1]; - } + [Parameter(Mandatory = true)] + public Guid ModuleGuid { get; set; } - var sb = new StringBuilder(); - sb.AppendLine("@{"); - sb.AppendLine($@"{GuidStart} = '{ModuleGuid}'"); - sb.AppendLine($@"{Indent}RootModule = '{"./Az.RedisEnterpriseCache.psm1"}'"); - sb.AppendLine($@"{Indent}ModuleVersion = '{version}'"); - sb.AppendLine($@"{Indent}CompatiblePSEditions = 'Core', 'Desktop'"); - sb.AppendLine($@"{Indent}Author = '{"Microsoft Corporation"}'"); - sb.AppendLine($@"{Indent}CompanyName = '{"Microsoft Corporation"}'"); - sb.AppendLine($@"{Indent}Copyright = '{"Microsoft Corporation. All rights reserved."}'"); - sb.AppendLine($@"{Indent}Description = '{"Microsoft Azure PowerShell: RedisEnterpriseCache cmdlets"}'"); - sb.AppendLine($@"{Indent}PowerShellVersion = '5.1'"); - sb.AppendLine($@"{Indent}DotNetFrameworkVersion = '4.7.2'"); - sb.AppendLine($@"{Indent}RequiredAssemblies = '{"./bin/Az.RedisEnterpriseCache.private.dll"}'"); - - var customFormatPs1xmlFiles = Directory.GetFiles(CustomFolder) - .Where(f => f.EndsWith(".format.ps1xml")) - .Select(f => $"{CustomFolderRelative}/{Path.GetFileName(f)}"); - var formatList = customFormatPs1xmlFiles.Prepend("./Az.RedisEnterpriseCache.format.ps1xml").ToPsList(); - sb.AppendLine($@"{Indent}FormatsToProcess = {formatList}"); - - var functionInfos = GetScriptCmdlets(ExportsFolder).ToArray(); - var cmdletsList = functionInfos.Select(fi => fi.Name).Distinct().Append("*").ToPsList(); - sb.AppendLine($@"{Indent}FunctionsToExport = {cmdletsList}"); - var aliasesList = functionInfos.SelectMany(fi => fi.ScriptBlock.Attributes).ToAliasNames().Append("*").ToPsList(); - sb.AppendLine($@"{Indent}AliasesToExport = {aliasesList}"); - - sb.AppendLine($@"{Indent}PrivateData = @{{"); - sb.AppendLine($@"{Indent}{Indent}PSData = @{{"); - - if (previewVersion != null) - { - sb.AppendLine($@"{Indent}{Indent}{Indent}Prerelease = {previewVersion}"); - } - sb.AppendLine($@"{Indent}{Indent}{Indent}Tags = {"Azure ResourceManager ARM PSModule RedisEnterpriseCache".Split(' ').ToPsList().NullIfEmpty() ?? "''"}"); - sb.AppendLine($@"{Indent}{Indent}{Indent}LicenseUri = '{"https://aka.ms/azps-license"}'"); - sb.AppendLine($@"{Indent}{Indent}{Indent}ProjectUri = '{"https://github.com/Azure/azure-powershell"}'"); - sb.AppendLine($@"{Indent}{Indent}{Indent}ReleaseNotes = ''"); - var profilesList = ""; - if (IsAzure && !String.IsNullOrEmpty(profilesList)) + private static readonly bool IsAzure = Convert.ToBoolean(@"true"); + private const string CustomFolderRelative = "./custom"; + private const string Indent = Psd1Indent; + private const string Undefined = "undefined"; + private bool IsUndefined(string value) => string.Equals(Undefined, value, StringComparison.OrdinalIgnoreCase); + + protected override void ProcessRecord() { - sb.AppendLine($@"{Indent}{Indent}{Indent}Profiles = {profilesList}"); + try + { + if (!Directory.Exists(ExportsFolder)) + { + throw new ArgumentException($"Exports folder '{ExportsFolder}' does not exist"); + } + + if (!Directory.Exists(CustomFolder)) + { + throw new ArgumentException($"Custom folder '{CustomFolder}' does not exist"); + } + + string version = Convert.ToString(@"1.0.0"); + // Validate the module version should be semantic version + // Following regex is official from https://semver.org/ + Regex rx = new Regex(@"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$", RegexOptions.Compiled); + if (rx.Matches(version).Count != 1) + { + throw new ArgumentException("Module-version is not a valid Semantic Version"); + } + + string previewVersion = null; + if (version.Contains('-')) + { + string[] versions = version.Split("-".ToCharArray(), 2); + version = versions[0]; + previewVersion = versions[1]; + } + + var sb = new StringBuilder(); + sb.AppendLine("@{"); + sb.AppendLine($@"{GuidStart} = '{ModuleGuid}'"); + sb.AppendLine($@"{Indent}RootModule = '{"./Az.RedisEnterpriseCache.psm1"}'"); + sb.AppendLine($@"{Indent}ModuleVersion = '{version}'"); + sb.AppendLine($@"{Indent}CompatiblePSEditions = 'Core', 'Desktop'"); + sb.AppendLine($@"{Indent}Author = '{"Microsoft Corporation"}'"); + sb.AppendLine($@"{Indent}CompanyName = '{"Microsoft Corporation"}'"); + sb.AppendLine($@"{Indent}Copyright = '{"Microsoft Corporation. All rights reserved."}'"); + sb.AppendLine($@"{Indent}Description = '{"Microsoft Azure PowerShell: RedisEnterpriseCache cmdlets"}'"); + sb.AppendLine($@"{Indent}PowerShellVersion = '5.1'"); + sb.AppendLine($@"{Indent}DotNetFrameworkVersion = '4.7.2'"); + + // RequiredModules + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}RequiredModules = @({"undefined"})"); + } + + // RequiredAssemblies + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}RequiredAssemblies = @({"undefined"})"); + } + else + { + sb.AppendLine($@"{Indent}RequiredAssemblies = '{"./bin/Az.RedisEnterpriseCache.private.dll"}'"); + } + + // NestedModules + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}NestedModules = @({"undefined"})"); + } + + // FormatsToProcess + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}FormatsToProcess = @({"undefined"})"); + } + else + { + var customFormatPs1xmlFiles = Directory.GetFiles(CustomFolder) + .Where(f => f.EndsWith(".format.ps1xml")) + .Select(f => $"{CustomFolderRelative}/{Path.GetFileName(f)}"); + var formatList = customFormatPs1xmlFiles.Prepend("./Az.RedisEnterpriseCache.format.ps1xml").ToPsList(); + sb.AppendLine($@"{Indent}FormatsToProcess = {formatList}"); + } + + // TypesToProcess + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}TypesToProcess = @({"undefined"})"); + } + + // ScriptsToProcess + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}ScriptsToProcess = @({"undefined"})"); + } + + var functionInfos = GetScriptCmdlets(ExportsFolder).ToArray(); + // FunctionsToExport + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}FunctionsToExport = @({"undefined"})"); + } + else + { + var cmdletsList = functionInfos.Select(fi => fi.Name).Distinct().Append("*").ToPsList(); + sb.AppendLine($@"{Indent}FunctionsToExport = {cmdletsList}"); + } + + // AliasesToExport + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}AliasesToExport = @({"undefined"})"); + } + else + { + var aliasesList = functionInfos.SelectMany(fi => fi.ScriptBlock.Attributes).ToAliasNames().Append("*").ToPsList(); + sb.AppendLine($@"{Indent}AliasesToExport = {aliasesList}"); + } + + // CmdletsToExport + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}CmdletsToExport = @({"undefined"})"); + } + + sb.AppendLine($@"{Indent}PrivateData = @{{"); + sb.AppendLine($@"{Indent}{Indent}PSData = @{{"); + + if (previewVersion != null) + { + sb.AppendLine($@"{Indent}{Indent}{Indent}Prerelease = {previewVersion}"); + } + sb.AppendLine($@"{Indent}{Indent}{Indent}Tags = {"Azure ResourceManager ARM PSModule RedisEnterpriseCache".Split(' ').ToPsList().NullIfEmpty() ?? "''"}"); + sb.AppendLine($@"{Indent}{Indent}{Indent}LicenseUri = '{"https://aka.ms/azps-license"}'"); + sb.AppendLine($@"{Indent}{Indent}{Indent}ProjectUri = '{"https://github.com/Azure/azure-powershell"}'"); + sb.AppendLine($@"{Indent}{Indent}{Indent}ReleaseNotes = ''"); + var profilesList = ""; + if (IsAzure && !String.IsNullOrEmpty(profilesList)) + { + sb.AppendLine($@"{Indent}{Indent}{Indent}Profiles = {profilesList}"); + } + + sb.AppendLine($@"{Indent}{Indent}}}"); + sb.AppendLine($@"{Indent}}}"); + sb.AppendLine(@"}"); + + File.WriteAllText(Psd1Path, sb.ToString()); + } + catch (Exception ee) + { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } } - - sb.AppendLine($@"{Indent}{Indent}}}"); - sb.AppendLine($@"{Indent}}}"); - sb.AppendLine(@"}"); - - File.WriteAllText(Psd1Path, sb.ToString()); - } - catch (Exception ee) - { - Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); - throw ee; - } } - } } diff --git a/src/RedisEnterpriseCache/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs b/src/RedisEnterpriseCache/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs index 861ec1c69ec4..9e01f1412820 100644 --- a/src/RedisEnterpriseCache/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs +++ b/src/RedisEnterpriseCache/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs @@ -113,7 +113,7 @@ internal class ModulePageMetadataOutput { public PsModuleHelpInfo ModuleInfo { get; } - private static string HelpLinkPrefix { get; } = @"https://docs.microsoft.com/en-us/powershell/module/"; + private static string HelpLinkPrefix { get; } = @"https://docs.microsoft.com/powershell/module/"; public ModulePageMetadataOutput(PsModuleHelpInfo moduleInfo) { diff --git a/src/RedisEnterpriseCache/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/src/RedisEnterpriseCache/generated/runtime/BuildTime/Models/PsProxyTypes.cs index c6399c4cd9ea..fd137afde190 100644 --- a/src/RedisEnterpriseCache/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/src/RedisEnterpriseCache/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -363,7 +363,7 @@ internal class CommentInfo public string OnlineVersion { get; } public string[] RelatedLinks { get; } - private const string HelpLinkPrefix = @"https://docs.microsoft.com/en-us/powershell/module/"; + private const string HelpLinkPrefix = @"https://docs.microsoft.com/powershell/module/"; public CommentInfo(VariantGroup variantGroup) { diff --git a/src/RedisEnterpriseCache/generated/runtime/PipelineMocking.cs b/src/RedisEnterpriseCache/generated/runtime/PipelineMocking.cs index 9dd7335dc066..4abeb7522c66 100644 --- a/src/RedisEnterpriseCache/generated/runtime/PipelineMocking.cs +++ b/src/RedisEnterpriseCache/generated/runtime/PipelineMocking.cs @@ -81,9 +81,9 @@ public void PushScenario(string it) internal static IEnumerable> FilterHeaders(IEnumerable>> headers) => headers.Select(header => new KeyValuePair(header.Key, Blacklist.Contains(header.Key) ? Removed : new XImmutableArray(header.Value.ToArray()))); - internal static JsonNode SerializeContent(HttpContent content) => content == null ? XNull.Instance : SerializeContent(content.ReadAsByteArrayAsync().Result); + internal static JsonNode SerializeContent(HttpContent content, ref bool isBase64) => content == null ? XNull.Instance : SerializeContent(content.ReadAsByteArrayAsync().Result, ref isBase64); - internal static JsonNode SerializeContent(byte[] content) + internal static JsonNode SerializeContent(byte[] content, ref bool isBase64) { if (null == content || content.Length == 0) { @@ -102,14 +102,14 @@ internal static JsonNode SerializeContent(byte[] content) return new JsonString(System.Convert.ToBase64String(content)); } - internal static byte[] DeserializeContent(string content) + internal static byte[] DeserializeContent(string content, bool isBase64) { if (string.IsNullOrWhiteSpace(content)) { return new byte[0]; } - if (content.EndsWith("==")) + if (isBase64) { try { @@ -126,11 +126,14 @@ internal static byte[] DeserializeContent(string content) public void SaveMessage(string rqKey, HttpRequestMessage request, HttpResponseMessage response) { var messages = System.IO.File.Exists(this.recordingPath) ? Load() : new JsonObject() ?? new JsonObject(); + bool isBase64Request = false; + bool isBase64Response = false; messages[rqKey] = new JsonObject { { "Request",new JsonObject { { "Method", request.Method.Method }, { "RequestUri", request.RequestUri }, - { "Content", SerializeContent( request.Content) }, + { "Content", SerializeContent( request.Content, ref isBase64Request) }, + { "isContentBase64", isBase64Request }, { "Headers", new JsonObject(FilterHeaders(request.Headers)) }, { "ContentHeaders", request.Content == null ? new JsonObject() : new JsonObject(FilterHeaders(request.Content.Headers))} } }, @@ -138,7 +141,8 @@ public void SaveMessage(string rqKey, HttpRequestMessage request, HttpResponseMe { "StatusCode", (int)response.StatusCode}, { "Headers", new JsonObject(FilterHeaders(response.Headers))}, { "ContentHeaders", new JsonObject(FilterHeaders(response.Content.Headers))}, - { "Content", SerializeContent(response.Content) }, + { "Content", SerializeContent(response.Content, ref isBase64Response) }, + { "isContentBase64", isBase64Response }, }} }; System.IO.File.WriteAllText(this.recordingPath, messages.ToString()); @@ -176,10 +180,12 @@ public HttpResponseMessage LoadMessage(string rqKey) var respMessage = message.Property("Response"); // --------------------------- deserialize response ---------------------------------------------------------------- + bool isBase64Response = false; + respMessage.BooleanProperty("isContentBase64", ref isBase64Response); var response = new HttpResponseMessage { StatusCode = (HttpStatusCode)respMessage.NumberProperty("StatusCode", ref sc), - Content = new System.Net.Http.ByteArrayContent(DeserializeContent(respMessage.StringProperty("Content"))) + Content = new System.Net.Http.ByteArrayContent(DeserializeContent(respMessage.StringProperty("Content"), isBase64Response)) }; foreach (var each in respMessage.Property("Headers")) @@ -199,11 +205,13 @@ public HttpResponseMessage LoadMessage(string rqKey) } // --------------------------- deserialize request ---------------------------------------------------------------- + bool isBase64Request = false; + reqMessage.BooleanProperty("isContentBase64", ref isBase64Request); response.RequestMessage = new HttpRequestMessage { Method = new HttpMethod(reqMessage.StringProperty("Method")), RequestUri = new System.Uri(reqMessage.StringProperty("RequestUri")), - Content = new System.Net.Http.ByteArrayContent(DeserializeContent(reqMessage.StringProperty("Content"))) + Content = new System.Net.Http.ByteArrayContent(DeserializeContent(reqMessage.StringProperty("Content"), isBase64Request)) }; foreach (var each in reqMessage.Property("Headers")) diff --git a/src/RedisEnterpriseCache/generated/runtime/UndeclaredResponseException.cs b/src/RedisEnterpriseCache/generated/runtime/UndeclaredResponseException.cs index 59c1b7dd823c..447f001e3a02 100644 --- a/src/RedisEnterpriseCache/generated/runtime/UndeclaredResponseException.cs +++ b/src/RedisEnterpriseCache/generated/runtime/UndeclaredResponseException.cs @@ -42,8 +42,13 @@ public RestException(System.Net.Http.HttpResponseMessage response) // try to parse the body as JSON, and see if a code and message are in there. var json = Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonNode.Parse(ResponseBody) as Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Json.JsonObject; + // error message could be in properties.statusMessage + { message = If(json?.Property("properties"), out var p) + && If(p?.PropertyT("statusMessage"), out var sm) + ? (string)sm : (string)Message; } + // see if there is an error block in the body - json = json.Property("error") ?? json; + json = json?.Property("error") ?? json; { Code = If(json?.PropertyT("code"), out var c) ? (string)c : (string)StatusCode.ToString(); } { message = If(json?.PropertyT("message"), out var m) ? (string)m : (string)Message; } diff --git a/src/RedisEnterpriseCache/help/Az.RedisEnterpriseCache.md b/src/RedisEnterpriseCache/help/Az.RedisEnterpriseCache.md index 9967bcfe993f..3e5874cc7624 100644 --- a/src/RedisEnterpriseCache/help/Az.RedisEnterpriseCache.md +++ b/src/RedisEnterpriseCache/help/Az.RedisEnterpriseCache.md @@ -11,36 +11,42 @@ Locale: en-US Microsoft Azure PowerShell: RedisEnterpriseCache cmdlets ## Az.RedisEnterpriseCache Cmdlets -### [Export-AzRedisEnterpriseCacheDatabase](Export-AzRedisEnterpriseCacheDatabase.md) +### [Export-AzRedisEnterpriseCache](Export-AzRedisEnterpriseCache.md) Exports a database file from target database. ### [Get-AzRedisEnterpriseCache](Get-AzRedisEnterpriseCache.md) -Gets information about a RedisEnterprise cluster and its associated database +Gets information about a Redis Enterprise cluster and its associated databases. ### [Get-AzRedisEnterpriseCacheDatabase](Get-AzRedisEnterpriseCacheDatabase.md) -Gets information about a database in a RedisEnterprise cluster. +Gets information about a database in a Redis Enterprise cluster. -### [Get-AzRedisEnterpriseCacheDatabaseKey](Get-AzRedisEnterpriseCacheDatabaseKey.md) -Retrieves the access keys for the RedisEnterprise database. +### [Get-AzRedisEnterpriseCacheKey](Get-AzRedisEnterpriseCacheKey.md) +Retrieves all access keys for a Redis Enterprise database. ### [Get-AzRedisEnterpriseCacheOperationStatus](Get-AzRedisEnterpriseCacheOperationStatus.md) Gets the status of operation. -### [Import-AzRedisEnterpriseCacheDatabase](Import-AzRedisEnterpriseCacheDatabase.md) +### [Import-AzRedisEnterpriseCache](Import-AzRedisEnterpriseCache.md) Imports a database file to target database. ### [New-AzRedisEnterpriseCache](New-AzRedisEnterpriseCache.md) -Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster and an associated database named 'default' +Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster with an associated database. -### [New-AzRedisEnterpriseCacheDatabaseKey](New-AzRedisEnterpriseCacheDatabaseKey.md) -Regenerates the RedisEnterprise database's access keys. +### [New-AzRedisEnterpriseCacheDatabase](New-AzRedisEnterpriseCacheDatabase.md) +Creates a database for a Redis Enterprise cache. + +### [New-AzRedisEnterpriseCacheKey](New-AzRedisEnterpriseCacheKey.md) +Regenerates an access key for a Redis Enterprise database. ### [Remove-AzRedisEnterpriseCache](Remove-AzRedisEnterpriseCache.md) Deletes a RedisEnterprise cache cluster. +### [Remove-AzRedisEnterpriseCacheDatabase](Remove-AzRedisEnterpriseCacheDatabase.md) +Deletes a single database in a Redis Enterprise cache. + ### [Update-AzRedisEnterpriseCache](Update-AzRedisEnterpriseCache.md) Updates an existing RedisEnterprise cluster ### [Update-AzRedisEnterpriseCacheDatabase](Update-AzRedisEnterpriseCacheDatabase.md) -Updates a database +Updates an existing Redis Enterprise database diff --git a/src/RedisEnterpriseCache/help/Export-AzRedisEnterpriseCacheDatabase.md b/src/RedisEnterpriseCache/help/Export-AzRedisEnterpriseCache.md similarity index 79% rename from src/RedisEnterpriseCache/help/Export-AzRedisEnterpriseCacheDatabase.md rename to src/RedisEnterpriseCache/help/Export-AzRedisEnterpriseCache.md index 96551f35e61a..7ace2b182c84 100644 --- a/src/RedisEnterpriseCache/help/Export-AzRedisEnterpriseCacheDatabase.md +++ b/src/RedisEnterpriseCache/help/Export-AzRedisEnterpriseCache.md @@ -1,11 +1,11 @@ --- external help file: Module Name: Az.RedisEnterpriseCache -online version: https://docs.microsoft.com/powershell/module/az.redisenterprisecache/export-azredisenterprisecachedatabase +online version: https://docs.microsoft.com/powershell/module/az.redisenterprisecache/export-azredisenterprisecache schema: 2.0.0 --- -# Export-AzRedisEnterpriseCacheDatabase +# Export-AzRedisEnterpriseCache ## SYNOPSIS Exports a database file from target database. @@ -13,7 +13,7 @@ Exports a database file from target database. ## SYNTAX ``` -Export-AzRedisEnterpriseCacheDatabase -ClusterName -ResourceGroupName -SasUri +Export-AzRedisEnterpriseCache -ClusterName -ResourceGroupName -SasUri [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` @@ -23,13 +23,12 @@ Exports a database file from target database. ## EXAMPLES -### Example 1: Export database +### Example 1: Export database to file ```powershell -#[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Invalid SAS token")] -PS C:\> Export-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -SasUri "https://mystorageaccount.blob.core.windows.net/mycontainer?sp=rwdl&se=2020-09-02T11:17:15Z&sv=2019-12-12&sr=c&sig=Us%2FGshOUTKCSzTOi8dLtt1to2L32rcDr3Nn0WFFMdDM%3D;mystoragekey" +PS C:\> Export-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -SasUri "https://mystorageaccount.blob.core.windows.net/mycontainer?sp=signedPermissions&se=signedExpiry&sv=signedVersion&sr=signedResource&sig=signature;mystoragekey" ``` -This command exports the database of the Redis Enterprise Cache named MyCache to a database file. +This command exports the database of the Redis Enterprise cache named MyCache to a database file. ## PARAMETERS @@ -49,7 +48,7 @@ Accept wildcard characters: False ``` ### -ClusterName -The name of the RedisEnterprise cluster. +The name of the Redis Enterprise cluster. ```yaml Type: System.String @@ -110,6 +109,7 @@ Accept wildcard characters: False ### -ResourceGroupName The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -124,7 +124,7 @@ Accept wildcard characters: False ``` ### -SasUri -SAS Uri for the target directory to export to +SAS URI for the target directory to export to ```yaml Type: System.String @@ -139,8 +139,7 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Gets subscription credentials which uniquely identify the Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. ```yaml Type: System.String diff --git a/src/RedisEnterpriseCache/help/Get-AzRedisEnterpriseCache.md b/src/RedisEnterpriseCache/help/Get-AzRedisEnterpriseCache.md index aebf61850aba..0712a4f347e9 100644 --- a/src/RedisEnterpriseCache/help/Get-AzRedisEnterpriseCache.md +++ b/src/RedisEnterpriseCache/help/Get-AzRedisEnterpriseCache.md @@ -8,21 +8,33 @@ schema: 2.0.0 # Get-AzRedisEnterpriseCache ## SYNOPSIS -Gets information about a RedisEnterprise cluster and its associated database +Gets information about a Redis Enterprise cluster and its associated databases. ## SYNTAX +### ListBySubscriptionId (Default) ``` -Get-AzRedisEnterpriseCache -ResourceGroupName [-ClusterName ] [-SubscriptionId ] +Get-AzRedisEnterpriseCache [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzRedisEnterpriseCache -ClusterName -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### ListByResourceGroup +``` +Get-AzRedisEnterpriseCache -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [] ``` ## DESCRIPTION -Gets information about a RedisEnterprise cluster and its associated database +Gets information about a Redis Enterprise cluster and its associated databases. ## EXAMPLES -### Example 1: Get a Redis Enterprise Cache by name +### Example 1: Get a Redis Enterprise cache by name ```powershell PS C:\> Get-AzRedisEnterpriseCache -ResourceGroupName "MyGroup" -Name "MyCache" @@ -32,9 +44,9 @@ West US MyCache Microsoft.Cache/redisEnterprise {default} ``` -This command gets the Redis Enterprise Cache named MyCache. +This command gets information about the Redis Enterprise cache named MyCache. -### Example 2: Get every Redis Enterprise Cache in a resource group +### Example 2: List every Redis Enterprise cache in a resource group ```powershell PS C:\> Get-AzRedisEnterpriseCache -ResourceGroupName "MyGroup" @@ -45,19 +57,34 @@ East US MyCache2 Microsoft.Cache/redisEnterprise {1, 2, 3} {default} ``` -This command gets every Redis Enterprise Cache in the specified resource group. +This command gets information about every Redis Enterprise cache in the specified resource group. + +### Example 3: List every Redis Enterprise cache in a subscription +```powershell +PS C:\> Get-AzRedisEnterpriseCache + +Location Name Type Zone Database +-------- ---- ---- ---- -------- +East US MyCache1 Microsoft.Cache/redisEnterprise {default} +East US MyCache2 Microsoft.Cache/redisEnterprise {1, 2, 3} {default} +West US MyCache3 Microsoft.Cache/redisEnterprise {default} +Central US MyCache4 Microsoft.Cache/redisEnterprise {1, 2, 3} {default} + +``` + +This command gets information about every Redis Enterprise cache in the current subscription. ## PARAMETERS ### -ClusterName -The name of the RedisEnterprise cluster. +The name of the Redis Enterprise cluster. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Get Aliases: Name -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False @@ -81,10 +108,11 @@ Accept wildcard characters: False ### -ResourceGroupName The name of the resource group. +The name is case insensitive. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Get, ListByResourceGroup Aliases: Required: True @@ -95,8 +123,7 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Gets subscription credentials which uniquely identify the Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. ```yaml Type: System.String[] @@ -117,7 +144,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster +### Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster ## NOTES diff --git a/src/RedisEnterpriseCache/help/Get-AzRedisEnterpriseCacheDatabase.md b/src/RedisEnterpriseCache/help/Get-AzRedisEnterpriseCacheDatabase.md index 206ff9c3ee4a..d91ccfaf9000 100644 --- a/src/RedisEnterpriseCache/help/Get-AzRedisEnterpriseCacheDatabase.md +++ b/src/RedisEnterpriseCache/help/Get-AzRedisEnterpriseCacheDatabase.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Get-AzRedisEnterpriseCacheDatabase ## SYNOPSIS -Gets information about a database in a RedisEnterprise cluster. +Gets information about a database in a Redis Enterprise cluster. ## SYNTAX @@ -18,11 +18,11 @@ Get-AzRedisEnterpriseCacheDatabase -ClusterName -ResourceGroupName Get-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" @@ -32,12 +32,12 @@ default Microsoft.Cache/redisEnterprise/databases ``` -This command gets the database for the Redis Enterprise Cache named MyCache. +This command gets information about a database in the Redis Enterprise cache named MyCache. ## PARAMETERS ### -ClusterName -The name of the RedisEnterprise cluster. +The name of the Redis Enterprise cluster. ```yaml Type: System.String @@ -68,6 +68,7 @@ Accept wildcard characters: False ### -ResourceGroupName The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -82,8 +83,7 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Gets subscription credentials which uniquely identify the Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. ```yaml Type: System.String[] @@ -104,7 +104,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase +### Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase ## NOTES diff --git a/src/RedisEnterpriseCache/help/Get-AzRedisEnterpriseCacheDatabaseKey.md b/src/RedisEnterpriseCache/help/Get-AzRedisEnterpriseCacheKey.md similarity index 76% rename from src/RedisEnterpriseCache/help/Get-AzRedisEnterpriseCacheDatabaseKey.md rename to src/RedisEnterpriseCache/help/Get-AzRedisEnterpriseCacheKey.md index 3ce60db696af..79acae1403c8 100644 --- a/src/RedisEnterpriseCache/help/Get-AzRedisEnterpriseCacheDatabaseKey.md +++ b/src/RedisEnterpriseCache/help/Get-AzRedisEnterpriseCacheKey.md @@ -1,30 +1,30 @@ --- external help file: Module Name: Az.RedisEnterpriseCache -online version: https://docs.microsoft.com/powershell/module/az.redisenterprisecache/get-azredisenterprisecachedatabasekey +online version: https://docs.microsoft.com/powershell/module/az.redisenterprisecache/get-azredisenterprisecachekey schema: 2.0.0 --- -# Get-AzRedisEnterpriseCacheDatabaseKey +# Get-AzRedisEnterpriseCacheKey ## SYNOPSIS -Retrieves the access keys for the RedisEnterprise database. +Retrieves all access keys for a Redis Enterprise database. ## SYNTAX ``` -Get-AzRedisEnterpriseCacheDatabaseKey -ClusterName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +Get-AzRedisEnterpriseCacheKey -ClusterName -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION -Retrieves the access keys for the RedisEnterprise database. +Retrieves all access keys for a Redis Enterprise database. ## EXAMPLES ### Example 1: Get database access keys ```powershell -PS C:\> Get-AzRedisEnterpriseCacheDatabaseKey -Name "MyCache" -ResourceGroupName "MyGroup" +PS C:\> Get-AzRedisEnterpriseCacheKey -Name "MyCache" -ResourceGroupName "MyGroup" PrimaryKey SecondaryKey ---------- ------------ @@ -32,12 +32,12 @@ primary-key secondary-key ``` -This command gets the secret access keys used for authenticating connections to the database of the Redis Enterprise Cache named MyCache. +This command gets the secret access keys used for authenticating connections to the database of the Redis Enterprise cache named MyCache. ## PARAMETERS ### -ClusterName -The name of the RedisEnterprise cluster. +The name of the Redis Enterprise cluster. ```yaml Type: System.String @@ -68,6 +68,7 @@ Accept wildcard characters: False ### -ResourceGroupName The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -82,8 +83,7 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Gets subscription credentials which uniquely identify the Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. ```yaml Type: System.String[] @@ -135,7 +135,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeys +### Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeys ## NOTES diff --git a/src/RedisEnterpriseCache/help/Get-AzRedisEnterpriseCacheOperationStatus.md b/src/RedisEnterpriseCache/help/Get-AzRedisEnterpriseCacheOperationStatus.md index 515591401a68..d024f011913d 100644 --- a/src/RedisEnterpriseCache/help/Get-AzRedisEnterpriseCacheOperationStatus.md +++ b/src/RedisEnterpriseCache/help/Get-AzRedisEnterpriseCacheOperationStatus.md @@ -82,8 +82,7 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Gets subscription credentials which uniquely identify the Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. ```yaml Type: System.String[] @@ -104,7 +103,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IOperationStatus +### Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IOperationStatus ## NOTES diff --git a/src/RedisEnterpriseCache/help/Import-AzRedisEnterpriseCacheDatabase.md b/src/RedisEnterpriseCache/help/Import-AzRedisEnterpriseCache.md similarity index 68% rename from src/RedisEnterpriseCache/help/Import-AzRedisEnterpriseCacheDatabase.md rename to src/RedisEnterpriseCache/help/Import-AzRedisEnterpriseCache.md index 4c613d784dcf..d3727ac2e7fe 100644 --- a/src/RedisEnterpriseCache/help/Import-AzRedisEnterpriseCacheDatabase.md +++ b/src/RedisEnterpriseCache/help/Import-AzRedisEnterpriseCache.md @@ -1,11 +1,11 @@ --- external help file: Module Name: Az.RedisEnterpriseCache -online version: https://docs.microsoft.com/powershell/module/az.redisenterprisecache/import-azredisenterprisecachedatabase +online version: https://docs.microsoft.com/powershell/module/az.redisenterprisecache/import-azredisenterprisecache schema: 2.0.0 --- -# Import-AzRedisEnterpriseCacheDatabase +# Import-AzRedisEnterpriseCache ## SYNOPSIS Imports a database file to target database. @@ -13,7 +13,7 @@ Imports a database file to target database. ## SYNTAX ``` -Import-AzRedisEnterpriseCacheDatabase -ClusterName -ResourceGroupName -SasUri +Import-AzRedisEnterpriseCache -ClusterName -ResourceGroupName -SasUri [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` @@ -23,21 +23,12 @@ Imports a database file to target database. ## EXAMPLES -### Example 1: Import database +### Example 1: Import database from file ```powershell -#[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Invalid SAS token")] -PS C:\> Import-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -SasUri "https://mystorageaccount.blob.core.windows.net/mycontainer/myfilename?sp=rwdl&se=2020-09-02T11:17:15Z&sv=2019-12-12&sr=c&sig=Us%2FGshOUTKCSzTOi8dLtt1to2L32rcDr3Nn0WFFMdDM%3D;mystoragekey" +PS C:\> Import-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -SasUri "https://mystorageaccount.blob.core.windows.net/mycontainer/myfilename?sp=signedPermissions&se=signedExpiry&sv=signedVersion&sr=signedResource&sig=signature;mystoragekey" ``` -This command imports a database file into the database of the Redis Enterprise Cache named MyCache. - -### Example 2: Import database (using example filename) -```powershell -#[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Invalid SAS token")] -PS C:\> Import-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -SasUri "https://mystorageaccount.blob.core.windows.net/mycontainer/bk20201130-223654-1-db-1_of_1-2-0-16383.rdb.gz?sp=rwdl&se=2020-09-02T11:17:15Z&sv=2019-12-12&sr=c&sig=Us%2FGshOUTKCSzTOi8dLtt1to2L32rcDr3Nn0WFFMdDM%3D;mystoragekey" -``` - -This command imports a database file into the database of the Redis Enterprise Cache named MyCache. +This command imports data from a database file into the database of the Redis Enterprise cache named MyCache. ## PARAMETERS @@ -57,7 +48,7 @@ Accept wildcard characters: False ``` ### -ClusterName -The name of the RedisEnterprise cluster. +The name of the Redis Enterprise cluster. ```yaml Type: System.String @@ -118,6 +109,7 @@ Accept wildcard characters: False ### -ResourceGroupName The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -132,7 +124,7 @@ Accept wildcard characters: False ``` ### -SasUri -SAS Uri for the target blob to import from +SAS URI for the target blob to import from ```yaml Type: System.String @@ -147,8 +139,7 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Gets subscription credentials which uniquely identify the Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. ```yaml Type: System.String diff --git a/src/RedisEnterpriseCache/help/New-AzRedisEnterpriseCache.md b/src/RedisEnterpriseCache/help/New-AzRedisEnterpriseCache.md index b3f7de11392a..23931e9d4d81 100644 --- a/src/RedisEnterpriseCache/help/New-AzRedisEnterpriseCache.md +++ b/src/RedisEnterpriseCache/help/New-AzRedisEnterpriseCache.md @@ -8,24 +8,34 @@ schema: 2.0.0 # New-AzRedisEnterpriseCache ## SYNOPSIS -Creates a Redis Enterpise cache cluster and an associated database +Creates a Redis Enterprise cache. ## SYNTAX +### CreateClusterWithDatabase (Default) ``` New-AzRedisEnterpriseCache -ClusterName -ResourceGroupName -Location -Sku - [-SubscriptionId ] [-Capacity ] [-ClientProtocol ] - [-ClusteringPolicy ] [-EvictionPolicy ] [-MinimumTlsVersion ] - [-Module ] [-Port ] [-Tag ] [-Zone ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-SubscriptionId ] [-AofPersistenceEnabled] [-AofPersistenceFrequency ] + [-Capacity ] [-ClientProtocol ] [-ClusteringPolicy ] + [-EvictionPolicy ] [-MinimumTlsVersion ] [-Module ] [-Port ] + [-RdbPersistenceEnabled] [-RdbPersistenceFrequency ] [-Tag ] [-Zone ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### CreateClusterOnly +``` +New-AzRedisEnterpriseCache -ClusterName -ResourceGroupName -Location -Sku + -NoDatabase [-SubscriptionId ] [-Capacity ] [-MinimumTlsVersion ] + [-Tag ] [-Zone ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] ``` ## DESCRIPTION -Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster and an associated database named 'default' +Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster with an associated database. ## EXAMPLES -### Example 1: Create a Redis Enterprise Cache +### Example 1: Create a Redis Enterprise cache ```powershell PS C:\> New-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -Location "West US" -Sku "Enterprise_E10" @@ -35,11 +45,11 @@ West US MyCache Microsoft.Cache/redisEnterprise {default} ``` -This command creates a Redis Enterprise Cache named MyCache. +This command creates a Redis Enterprise cache named MyCache with an associated database named default. -### Example 2: Create a Redis Enterprise Cache using some optional parameters +### Example 2: Create a Redis Enterprise cache using some optional parameters ```powershell -PS C:\> New-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -Location "East US" -Sku "Enterprise_E20" -Capacity 4 -Zone "1","2","3" -Module "{name:RedisBloom, args:`"ERROR_RATE 0.00 INITIAL_SIZE 400`"}","{name:RedisTimeSeries, args:`"RETENTION_POLICY 20`"}","{name:RediSearch}" -ClientProtocol "Plaintext" -EvictionPolicy "NoEviction" -ClusteringPolicy "EnterpriseCluster" -Tag @{"tag" = "value"} +PS C:\> New-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -Location "East US" -Sku "Enterprise_E20" -Capacity 4 -MinimumTlsVersion "1.2" -Zone "1","2","3" -Tag @{"tag1" = "value1"} -Module "{name:RedisBloom, args:`"ERROR_RATE 0.00 INITIAL_SIZE 400`"}","{name:RedisTimeSeries, args:`"RETENTION_POLICY 20`"}","{name:RediSearch}" -ClientProtocol "Plaintext" -EvictionPolicy "NoEviction" -ClusteringPolicy "EnterpriseCluster" -AofPersistenceEnabled -AofPersistenceFrequency "1s" Location Name Type Zone Database -------- ---- ---- ---- -------- @@ -47,10 +57,55 @@ East US MyCache Microsoft.Cache/redisEnterprise {1, 2, 3} {default} ``` -This command creates a Redis Enterprise Cache named MyCache using some optional parameters. +This command creates a Redis Enterprise cache named MyCache with an associated database named default, using some optional parameters. + +### Example 3: Advanced - Create a Redis Enterprise cache cluster without an associated database +```powershell +PS C:\> New-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -Location "East US" -Sku "EnterpriseFlash_F300" -NoDatabase + +Location Name Type Zone Database +-------- ---- ---- ---- -------- +East US MyCache Microsoft.Cache/redisEnterprise {} + +``` + +Warning: This command creates a Redis Enterprise cache cluster named MyCache without any associated database to hold data. ## PARAMETERS +### -AofPersistenceEnabled +[Preview] Sets whether AOF persistence is enabled. +After enabling AOF persistence, you will be unable to disable it. +Support for disabling AOF persistence after enabling will be added at a later date. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: CreateClusterWithDatabase +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AofPersistenceFrequency +[Preview] Sets the frequency at which data is written to disk if AOF persistence is enabled. +Allowed values: 1s, always + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency +Parameter Sets: CreateClusterWithDatabase +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -AsJob Run the command as a job @@ -67,9 +122,8 @@ Accept wildcard characters: False ``` ### -Capacity -The size of the RedisEnterprise cluster. -Defaults to 2 or 3 depending on SKU. -Valid values are (2, 4, 6, ...) for Enterprise SKUs and (3, 9, 15, ...) for Flash SKUs. +The size of the Redis Enterprise cluster - defaults to 2 or 3 depending on SKU. +Allowed values are (2, 4, 6, ...) for Enterprise SKUs and (3, 9, 15, ...) for Flash SKUs. ```yaml Type: System.Int32 @@ -84,12 +138,12 @@ Accept wildcard characters: False ``` ### -ClientProtocol -Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. -Default is TLS-encrypted. +Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols - default is Encrypted +Allowed values: Encrypted, Plaintext ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol -Parameter Sets: (All) +Parameter Sets: CreateClusterWithDatabase Aliases: Required: False @@ -100,12 +154,13 @@ Accept wildcard characters: False ``` ### -ClusteringPolicy -Clustering policy - default is OSSCluster. +Clustering policy - default is OSSCluster Specified at create time. +Allowed values: EnterpriseCluster, OSSCluster ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy -Parameter Sets: (All) +Parameter Sets: CreateClusterWithDatabase Aliases: Required: False @@ -116,7 +171,7 @@ Accept wildcard characters: False ``` ### -ClusterName -The name of the RedisEnterprise cluster. +The name of the Redis Enterprise cluster. ```yaml Type: System.String @@ -146,11 +201,12 @@ Accept wildcard characters: False ``` ### -EvictionPolicy -Redis eviction policy - default is VolatileLRU. +Redis eviction policy - default is VolatileLRU +Allowed values: AllKeysLFU, AllKeysLRU, AllKeysRandom, VolatileLRU, VolatileLFU, VolatileTTL, VolatileRandom, NoEviction ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy -Parameter Sets: (All) +Parameter Sets: CreateClusterWithDatabase Aliases: Required: False @@ -161,7 +217,7 @@ Accept wildcard characters: False ``` ### -Location -The geo-location where the resource lives +The geo-location where the resource lives. ```yaml Type: System.String @@ -176,11 +232,11 @@ Accept wildcard characters: False ``` ### -MinimumTlsVersion -The minimum TLS version for the cluster to support, e.g. -1.2 +The minimum TLS version for the cluster to support - default is 1.2 +Allowed values: 1.0, 1.1, 1.2 ```yaml -Type: System.String +Type: Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion Parameter Sets: (All) Aliases: @@ -192,12 +248,12 @@ Accept wildcard characters: False ``` ### -Module -Optional set of redis modules to enable in this database - modules can only be added at creation time. +Optional set of redis modules to enable in this database - modules can only be added at create time. To construct, see NOTES section for MODULE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule[] +Parameter Sets: CreateClusterWithDatabase Aliases: Required: False @@ -207,6 +263,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -NoDatabase +Advanced - Do not automatically create a default database. +Warning: The cache will not be usable until you create a database. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: CreateClusterOnly +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -NoWait Run the command asynchronously @@ -223,13 +295,45 @@ Accept wildcard characters: False ``` ### -Port -TCP port of the database endpoint. +TCP port of the database endpoint - defaults to an available port Specified at create time. -Defaults to an available port. ```yaml Type: System.Int32 -Parameter Sets: (All) +Parameter Sets: CreateClusterWithDatabase +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RdbPersistenceEnabled +[Preview] Sets whether RDB persistence is enabled. +After enabling RDB persistence, you will be unable to disable it. +Support for disabling RDB persistence after enabling will be added at a later date. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: CreateClusterWithDatabase +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RdbPersistenceFrequency +[Preview] Sets the frequency at which a snapshot of the database is created if RDB persistence is enabled. +Allowed values: 1h, 6h, 12h + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency +Parameter Sets: CreateClusterWithDatabase Aliases: Required: False @@ -241,6 +345,7 @@ Accept wildcard characters: False ### -ResourceGroupName The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -255,8 +360,8 @@ Accept wildcard characters: False ``` ### -Sku -The type of RedisEnterprise cluster to deploy. -Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.) +The type of Redis Enterprise cluster to deploy. +Allowed values: Enterprise_E10, Enterprise_E20, Enterprise_E50, Enterprise_E100, EnterpriseFlash_F300, EnterpriseFlash_F700, EnterpriseFlash_F1500 ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName @@ -271,8 +376,7 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Gets subscription credentials which uniquely identify the Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. ```yaml Type: System.String @@ -287,7 +391,7 @@ Accept wildcard characters: False ``` ### -Tag -Resource tags. +Cluster resource tags. ```yaml Type: System.Collections.Hashtable @@ -302,7 +406,7 @@ Accept wildcard characters: False ``` ### -Zone -The zones where this cluster will be deployed. +The Availability Zones where this cluster will be deployed. ```yaml Type: System.String[] @@ -354,7 +458,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster +### Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster ## NOTES @@ -365,7 +469,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -MODULE : Optional set of redis modules to enable in this database - modules can only be added at creation time. +MODULE : Optional set of redis modules to enable in this database - modules can only be added at create time. - `Name `: The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries' - `[Arg ]`: Configuration options for the module, e.g. 'ERROR_RATE 0.00 INITIAL_SIZE 400'. diff --git a/src/RedisEnterpriseCache/help/New-AzRedisEnterpriseCacheDatabase.md b/src/RedisEnterpriseCache/help/New-AzRedisEnterpriseCacheDatabase.md new file mode 100644 index 000000000000..a13c3726d964 --- /dev/null +++ b/src/RedisEnterpriseCache/help/New-AzRedisEnterpriseCacheDatabase.md @@ -0,0 +1,334 @@ +--- +external help file: +Module Name: Az.RedisEnterpriseCache +online version: https://docs.microsoft.com/powershell/module/az.redisenterprisecache/new-azredisenterprisecachedatabase +schema: 2.0.0 +--- + +# New-AzRedisEnterpriseCacheDatabase + +## SYNOPSIS +Creates a database for a Redis Enterprise cache. + +## SYNTAX + +``` +New-AzRedisEnterpriseCacheDatabase -ClusterName -ResourceGroupName + [-SubscriptionId ] [-AofPersistenceEnabled] [-AofPersistenceFrequency ] + [-ClientProtocol ] [-ClusteringPolicy ] [-EvictionPolicy ] + [-Module ] [-Port ] [-RdbPersistenceEnabled] [-RdbPersistenceFrequency ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates a database for a Redis Enterprise cache. + +## EXAMPLES + +### Example 1: Create a database for a Redis Enterprise cache +```powershell +PS C:\> New-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -Module "{name:RedisBloom, args:`"ERROR_RATE 0.00 INITIAL_SIZE 400`"}","{name:RedisTimeSeries, args:`"RETENTION_POLICY 20`"}","{name:RediSearch}" -ClientProtocol "Plaintext" -EvictionPolicy "NoEviction" -ClusteringPolicy "EnterpriseCluster" -Port 10000 -AofPersistenceEnabled -AofPersistenceFrequency "always" + +Location Name Type Zone Database +-------- ---- ---- ---- -------- +West US MyCache Microsoft.Cache/redisEnterprise {default} + +``` + +This command creates a database named default for a Redis Enterprise cache named MyCache. + +## PARAMETERS + +### -AofPersistenceEnabled +[Preview] Sets whether AOF persistence is enabled. +After enabling AOF persistence, you will be unable to disable it. +Support for disabling AOF persistence after enabling will be added at a later date. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AofPersistenceFrequency +[Preview] Sets the frequency at which data is written to disk if AOF persistence is enabled. +Allowed values: 1s, always + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ClientProtocol +Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols - default is Encrypted +Allowed values: Encrypted, Plaintext + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ClusteringPolicy +Clustering policy - default is OSSCluster +Specified at create time. +Allowed values: EnterpriseCluster, OSSCluster + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ClusterName +The name of the Redis Enterprise cluster. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: Name + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EvictionPolicy +Redis eviction policy - default is VolatileLRU +Allowed values: AllKeysLFU, AllKeysLRU, AllKeysRandom, VolatileLRU, VolatileLFU, VolatileTTL, VolatileRandom, NoEviction + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Module +Optional set of redis modules to enable in this database - modules can only be added at create time. +To construct, see NOTES section for MODULE properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Port +TCP port of the database endpoint - defaults to an available port +Specified at create time. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RdbPersistenceEnabled +[Preview] Sets whether RDB persistence is enabled. +After enabling RDB persistence, you will be unable to disable it. +Support for disabling RDB persistence after enabling will be added at a later date. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RdbPersistenceFrequency +[Preview] Sets the frequency at which a snapshot of the database is created if RDB persistence is enabled. +Allowed values: 1h, 6h, 12h + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +MODULE : Optional set of redis modules to enable in this database - modules can only be added at create time. + - `Name `: The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries' + - `[Arg ]`: Configuration options for the module, e.g. 'ERROR_RATE 0.00 INITIAL_SIZE 400'. + +## RELATED LINKS + diff --git a/src/RedisEnterpriseCache/help/New-AzRedisEnterpriseCacheDatabaseKey.md b/src/RedisEnterpriseCache/help/New-AzRedisEnterpriseCacheKey.md similarity index 80% rename from src/RedisEnterpriseCache/help/New-AzRedisEnterpriseCacheDatabaseKey.md rename to src/RedisEnterpriseCache/help/New-AzRedisEnterpriseCacheKey.md index ae15e425496d..f236709766d6 100644 --- a/src/RedisEnterpriseCache/help/New-AzRedisEnterpriseCacheDatabaseKey.md +++ b/src/RedisEnterpriseCache/help/New-AzRedisEnterpriseCacheKey.md @@ -1,31 +1,31 @@ --- external help file: Module Name: Az.RedisEnterpriseCache -online version: https://docs.microsoft.com/powershell/module/az.redisenterprisecache/new-azredisenterprisecachedatabasekey +online version: https://docs.microsoft.com/powershell/module/az.redisenterprisecache/new-azredisenterprisecachekey schema: 2.0.0 --- -# New-AzRedisEnterpriseCacheDatabaseKey +# New-AzRedisEnterpriseCacheKey ## SYNOPSIS -Regenerates the RedisEnterprise database's access keys. +Regenerates an access key for a Redis Enterprise database. ## SYNTAX ``` -New-AzRedisEnterpriseCacheDatabaseKey -ClusterName -ResourceGroupName - -KeyType [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-Confirm] [-WhatIf] [] +New-AzRedisEnterpriseCacheKey -ClusterName -ResourceGroupName -KeyType + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] ``` ## DESCRIPTION -Regenerates the RedisEnterprise database's access keys. +Regenerates an access key for a Redis Enterprise database. ## EXAMPLES ### Example 1: Regenerate primary access key ```powershell -PS C:\> New-AzRedisEnterpriseCacheDatabaseKey -Name "MyCache" -ResourceGroupName "MyGroup" -KeyType "Primary" +PS C:\> New-AzRedisEnterpriseCacheKey -Name "MyCache" -ResourceGroupName "MyGroup" -KeyType "Primary" PrimaryKey SecondaryKey ---------- ------------ @@ -33,11 +33,11 @@ new-primary-key secondary-key ``` -This command regenerates the primary secret access key used for authenticating connections to the database of the Redis Enterprise Cache named MyCache. +This command regenerates the primary secret access key used for authenticating connections to the database of the Redis Enterprise cache named MyCache. ### Example 2: Regenerate secondary access key ```powershell -PS C:\> New-AzRedisEnterpriseCacheDatabaseKey -Name "MyCache" -ResourceGroupName "MyGroup" -KeyType "Secondary" +PS C:\> New-AzRedisEnterpriseCacheKey -Name "MyCache" -ResourceGroupName "MyGroup" -KeyType "Secondary" PrimaryKey SecondaryKey ---------- ------------ @@ -45,7 +45,7 @@ primary-key new-secondary-key ``` -This command regenerates the secondary secret access key used for authenticating connections to the database of the Redis Enterprise Cache named MyCache. +This command regenerates the secondary secret access key used for authenticating connections to the database of the Redis Enterprise cache named MyCache. ## PARAMETERS @@ -65,7 +65,7 @@ Accept wildcard characters: False ``` ### -ClusterName -The name of the RedisEnterprise cluster. +The name of the Redis Enterprise cluster. ```yaml Type: System.String @@ -126,6 +126,7 @@ Accept wildcard characters: False ### -ResourceGroupName The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -140,8 +141,7 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Gets subscription credentials which uniquely identify the Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. ```yaml Type: System.String @@ -193,7 +193,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeys +### Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeys ## NOTES diff --git a/src/RedisEnterpriseCache/help/Remove-AzRedisEnterpriseCache.md b/src/RedisEnterpriseCache/help/Remove-AzRedisEnterpriseCache.md index 7ce6fde14fa1..98b6a6f620ca 100644 --- a/src/RedisEnterpriseCache/help/Remove-AzRedisEnterpriseCache.md +++ b/src/RedisEnterpriseCache/help/Remove-AzRedisEnterpriseCache.md @@ -29,20 +29,20 @@ Deletes a RedisEnterprise cache cluster. ## EXAMPLES -### Example 1: Remove a Redis Enterprise Cache and return the result +### Example 1: Remove a Redis Enterprise cache and return the result ```powershell PS C:\> Remove-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -PassThru True ``` -This command removes a Redis Enterprise Cache and displays whether the operation is successful. +This command removes a Redis Enterprise cache and displays whether the operation is successful. -### Example 2: Remove a Redis Enterprise Cache and do not display the result +### Example 2: Remove a Redis Enterprise cache and do not display the result ```powershell PS C:\> Remove-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" ``` -This command removes a Redis Enterprise Cache. +This command removes a Redis Enterprise cache. Because the PassThru parameter is not specified, the result of the operation is not displayed. ## PARAMETERS @@ -140,6 +140,7 @@ Accept wildcard characters: False ### -ResourceGroupName The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -154,8 +155,7 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Gets subscription credentials which uniquely identify the Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. ```yaml Type: System.String @@ -227,8 +227,8 @@ INPUTOBJECT : Identity Parameter - `[Location ]`: The region the operation is in. - `[OperationId ]`: The operation's unique identifier. - `[PrivateEndpointConnectionName ]`: The name of the private endpoint connection associated with the Azure resource - - `[ResourceGroupName ]`: The name of the resource group. - - `[SubscriptionId ]`: Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. + - `[SubscriptionId ]`: The ID of the target subscription. ## RELATED LINKS diff --git a/src/RedisEnterpriseCache/help/Remove-AzRedisEnterpriseCacheDatabase.md b/src/RedisEnterpriseCache/help/Remove-AzRedisEnterpriseCacheDatabase.md new file mode 100644 index 000000000000..d7c35a8d1b99 --- /dev/null +++ b/src/RedisEnterpriseCache/help/Remove-AzRedisEnterpriseCacheDatabase.md @@ -0,0 +1,235 @@ +--- +external help file: +Module Name: Az.RedisEnterpriseCache +online version: https://docs.microsoft.com/powershell/module/az.redisenterprisecache/remove-azredisenterprisecachedatabase +schema: 2.0.0 +--- + +# Remove-AzRedisEnterpriseCacheDatabase + +## SYNOPSIS +Deletes a single database in a Redis Enterprise cache. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzRedisEnterpriseCacheDatabase -ClusterName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### DeleteViaIdentity +``` +Remove-AzRedisEnterpriseCacheDatabase -InputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes a single database in a Redis Enterprise cache. + +## EXAMPLES + +### Example 1: Remove a database in a Redis Enterprise cache and return the result +```powershell +PS C:\> Remove-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -PassThru +True +``` + +This command removes a database in a Redis Enterprise cache and displays whether the operation is successful. + +### Example 2: Remove a database in a Redis Enterprise cache and do not display the result +```powershell +PS C:\> Remove-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" +``` + +This command removes a database in a Redis Enterprise cache. +Because the PassThru parameter is not specified, the result of the operation is not displayed. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ClusterName +The name of the Redis Enterprise cluster. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: Name + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.IRedisEnterpriseCacheIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.IRedisEnterpriseCacheIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[ClusterName ]`: The name of the RedisEnterprise cluster. + - `[DatabaseName ]`: The name of the database. + - `[Id ]`: Resource identity path + - `[Location ]`: The region the operation is in. + - `[OperationId ]`: The operation's unique identifier. + - `[PrivateEndpointConnectionName ]`: The name of the private endpoint connection associated with the Azure resource + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. + - `[SubscriptionId ]`: The ID of the target subscription. + +## RELATED LINKS + diff --git a/src/RedisEnterpriseCache/help/Update-AzRedisEnterpriseCache.md b/src/RedisEnterpriseCache/help/Update-AzRedisEnterpriseCache.md index ecf972d761f9..e9e6dfcf1f17 100644 --- a/src/RedisEnterpriseCache/help/Update-AzRedisEnterpriseCache.md +++ b/src/RedisEnterpriseCache/help/Update-AzRedisEnterpriseCache.md @@ -15,14 +15,14 @@ Updates an existing RedisEnterprise cluster ### UpdateExpanded (Default) ``` Update-AzRedisEnterpriseCache -ClusterName -ResourceGroupName [-SubscriptionId ] - [-Capacity ] [-MinimumTlsVersion ] [-Sku ] [-Tag ] + [-Capacity ] [-MinimumTlsVersion ] [-Sku ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzRedisEnterpriseCache -InputObject [-Capacity ] - [-MinimumTlsVersion ] [-Sku ] [-Tag ] [-DefaultProfile ] [-AsJob] + [-MinimumTlsVersion ] [-Sku ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` @@ -31,9 +31,9 @@ Updates an existing RedisEnterprise cluster ## EXAMPLES -### Example 1: Update Redis Enterprise Cache +### Example 1: Update Redis Enterprise cache ```powershell -PS C:\> Update-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -MinimumTlsVersion "1.2" -Tag @{"tag" = "value"} +PS C:\> Update-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -MinimumTlsVersion "1.2" -Tag @{"tag1" = "value1"} Location Name Type Zone Database -------- ---- ---- ---- -------- @@ -41,7 +41,7 @@ West US MyCache Microsoft.Cache/redisEnterprise {default} ``` -This command updates the minimum TLS version and adds a tag to the Redis Enterprise Cache named MyCache. +This command updates the minimum TLS version and adds a tag to the Redis Enterprise cache named MyCache. ## PARAMETERS @@ -128,7 +128,7 @@ The minimum TLS version for the cluster to support, e.g. '1.2' ```yaml -Type: System.String +Type: Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion Parameter Sets: (All) Aliases: @@ -156,6 +156,7 @@ Accept wildcard characters: False ### -ResourceGroupName The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -186,8 +187,7 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Gets subscription credentials which uniquely identify the Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. ```yaml Type: System.String @@ -256,7 +256,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster +### Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster ## NOTES @@ -274,8 +274,8 @@ INPUTOBJECT : Identity Parameter - `[Location ]`: The region the operation is in. - `[OperationId ]`: The operation's unique identifier. - `[PrivateEndpointConnectionName ]`: The name of the private endpoint connection associated with the Azure resource - - `[ResourceGroupName ]`: The name of the resource group. - - `[SubscriptionId ]`: Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. + - `[SubscriptionId ]`: The ID of the target subscription. ## RELATED LINKS diff --git a/src/RedisEnterpriseCache/help/Update-AzRedisEnterpriseCacheDatabase.md b/src/RedisEnterpriseCache/help/Update-AzRedisEnterpriseCacheDatabase.md index 24b2b7d1340c..98c23eb6c1e0 100644 --- a/src/RedisEnterpriseCache/help/Update-AzRedisEnterpriseCacheDatabase.md +++ b/src/RedisEnterpriseCache/help/Update-AzRedisEnterpriseCacheDatabase.md @@ -8,32 +8,33 @@ schema: 2.0.0 # Update-AzRedisEnterpriseCacheDatabase ## SYNOPSIS -Updates a database +Updates an existing Redis Enterprise database ## SYNTAX ### UpdateExpanded (Default) ``` Update-AzRedisEnterpriseCacheDatabase -ClusterName -ResourceGroupName - [-SubscriptionId ] [-ClientProtocol ] [-ClusteringPolicy ] - [-EvictionPolicy ] [-Module ] [-Port ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-SubscriptionId ] [-AofPersistenceEnabled] [-AofPersistenceFrequency ] + [-ClientProtocol ] [-EvictionPolicy ] [-RdbPersistenceEnabled] + [-RdbPersistenceFrequency ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] ``` ### UpdateViaIdentityExpanded ``` -Update-AzRedisEnterpriseCacheDatabase -InputObject - [-ClientProtocol ] [-ClusteringPolicy ] [-EvictionPolicy ] - [-Module ] [-Port ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] +Update-AzRedisEnterpriseCacheDatabase -InputObject [-AofPersistenceEnabled] + [-AofPersistenceFrequency ] [-ClientProtocol ] [-EvictionPolicy ] + [-RdbPersistenceEnabled] [-RdbPersistenceFrequency ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION -Updates a database +Updates an existing Redis Enterprise database ## EXAMPLES -### Example 1: Update client protocol +### Example 1: Update client protocol property of a database ```powershell PS C:\> Update-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -ClientProtocol "Plaintext" @@ -43,9 +44,9 @@ default Microsoft.Cache/redisEnterprise/databases ``` -This command updates the client protocol of the database for the Redis Enterprise Cache named MyCache. +This command updates the client protocol of the database for the Redis Enterprise cache named MyCache. -### Example 2: Update client protocol and eviction policy +### Example 2: Update client protocol and eviction policy properties of a database ```powershell PS C:\> Update-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -ClientProtocol "Encrypted" -EvictionPolicy "NoEviction" @@ -55,12 +56,14 @@ default Microsoft.Cache/redisEnterprise/databases ``` -This command updates the client protocol and eviction policy of the database for the Redis Enterprise Cache named MyCache. +This command updates the client protocol and eviction policy of the database for the Redis Enterprise cache named MyCache. ## PARAMETERS -### -AsJob -Run the command as a job +### -AofPersistenceEnabled +[Preview] Sets whether AOF persistence is enabled. +After enabling AOF persistence, you will be unable to disable it. +Support for disabling AOF persistence after enabling will be added at a later date. ```yaml Type: System.Management.Automation.SwitchParameter @@ -74,12 +77,12 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ClientProtocol -Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. -Default is TLS-encrypted. +### -AofPersistenceFrequency +[Preview] Sets the frequency at which data is written to disk if AOF persistence is enabled. +Allowed values: 1s, always ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol +Type: Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency Parameter Sets: (All) Aliases: @@ -90,12 +93,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ClusteringPolicy -Clustering policy - default is OSSCluster. -Specified at create time. +### -AsJob +Run the command as a job ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ClientProtocol +Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. +Allowed values: Encrypted, Plaintext + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol Parameter Sets: (All) Aliases: @@ -107,7 +125,7 @@ Accept wildcard characters: False ``` ### -ClusterName -The name of the RedisEnterprise cluster. +The name of the Redis Enterprise cluster. ```yaml Type: System.String @@ -137,7 +155,8 @@ Accept wildcard characters: False ``` ### -EvictionPolicy -Redis eviction policy - default is VolatileLRU +Redis eviction policy. +Allowed values: AllKeysLFU, AllKeysLRU, AllKeysRandom, VolatileLRU, VolatileLFU, VolatileTTL, VolatileRandom, NoEviction ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy @@ -167,12 +186,11 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` -### -Module -Optional set of redis modules to enable in this database - modules can only be added at creation time. -To construct, see NOTES section for MODULE properties and create a hash table. +### -NoWait +Run the command asynchronously ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule[] +Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) Aliases: @@ -183,8 +201,10 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -NoWait -Run the command asynchronously +### -RdbPersistenceEnabled +[Preview] Sets whether RDB persistence is enabled. +After enabling RDB persistence, you will be unable to disable it. +Support for disabling RDB persistence after enabling will be added at a later date. ```yaml Type: System.Management.Automation.SwitchParameter @@ -198,13 +218,12 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Port -TCP port of the database endpoint. -Specified at create time. -Defaults to an available port. +### -RdbPersistenceFrequency +[Preview] Sets the frequency at which a snapshot of the database is created if RDB persistence is enabled. +Allowed values: 1h, 6h, 12h ```yaml -Type: System.Int32 +Type: Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency Parameter Sets: (All) Aliases: @@ -217,6 +236,7 @@ Accept wildcard characters: False ### -ResourceGroupName The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -231,8 +251,7 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Gets subscription credentials which uniquely identify the Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. +The ID of the target subscription. ```yaml Type: System.String @@ -286,7 +305,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase +### Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase ## NOTES @@ -304,12 +323,8 @@ INPUTOBJECT : Identity Parameter - `[Location ]`: The region the operation is in. - `[OperationId ]`: The operation's unique identifier. - `[PrivateEndpointConnectionName ]`: The name of the private endpoint connection associated with the Azure resource - - `[ResourceGroupName ]`: The name of the resource group. - - `[SubscriptionId ]`: Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - -MODULE : Optional set of redis modules to enable in this database - modules can only be added at creation time. - - `Name `: The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries' - - `[Arg ]`: Configuration options for the module, e.g. 'ERROR_RATE 0.00 INITIAL_SIZE 400'. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. + - `[SubscriptionId ]`: The ID of the target subscription. ## RELATED LINKS diff --git a/src/RedisEnterpriseCache/internal/Export-AzRedisEnterpriseCacheDatabase.ps1 b/src/RedisEnterpriseCache/internal/Export-AzRedisEnterpriseCache.ps1 similarity index 87% rename from src/RedisEnterpriseCache/internal/Export-AzRedisEnterpriseCacheDatabase.ps1 rename to src/RedisEnterpriseCache/internal/Export-AzRedisEnterpriseCache.ps1 index 44937c71f373..0de980207207 100644 --- a/src/RedisEnterpriseCache/internal/Export-AzRedisEnterpriseCacheDatabase.ps1 +++ b/src/RedisEnterpriseCache/internal/Export-AzRedisEnterpriseCache.ps1 @@ -19,15 +19,15 @@ Exports a database file from target database. .Description Exports a database file from target database. .Example -#[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Invalid SAS token")] -PS C:\> Export-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -SasUri "https://mystorageaccount.blob.core.windows.net/mycontainer?sp=rwdl&se=2020-09-02T11:17:15Z&sv=2019-12-12&sr=c&sig=Us%2FGshOUTKCSzTOi8dLtt1to2L32rcDr3Nn0WFFMdDM%3D;mystoragekey" +PS C:\> Export-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -SasUri "https://mystorageaccount.blob.core.windows.net/mycontainer?sp=signedPermissions&se=signedExpiry&sv=signedVersion&sr=signedResource&sig=signature;mystoragekey" .Outputs System.Boolean .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/export-azredisenterprisecachedatabase +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/export-azredisenterprisecache #> -function Export-AzRedisEnterpriseCacheDatabase { +function Export-AzRedisEnterpriseCache { +[Alias('Export-AzRedisEnterpriseCacheDatabase')] [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='ExportExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( @@ -48,20 +48,20 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [System.String] - # SAS Uri for the target directory to export to + # SAS URI for the target directory to export to ${SasUri}, [Parameter()] @@ -138,7 +138,7 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - ExportExpanded = 'Az.RedisEnterpriseCache.private\Export-AzRedisEnterpriseCacheDatabase_ExportExpanded'; + ExportExpanded = 'Az.RedisEnterpriseCache.private\Export-AzRedisEnterpriseCache_ExportExpanded'; } if (('ExportExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id diff --git a/src/RedisEnterpriseCache/internal/Get-AzRedisEnterpriseCache.ps1 b/src/RedisEnterpriseCache/internal/Get-AzRedisEnterpriseCache.ps1 index d8d1fe5f0201..81c136e17129 100644 --- a/src/RedisEnterpriseCache/internal/Get-AzRedisEnterpriseCache.ps1 +++ b/src/RedisEnterpriseCache/internal/Get-AzRedisEnterpriseCache.ps1 @@ -33,14 +33,24 @@ Location Name Type Zone Database East US MyCache1 Microsoft.Cache/redisEnterprise {default} East US MyCache2 Microsoft.Cache/redisEnterprise {1, 2, 3} {default} +.Example +PS C:\> Get-AzRedisEnterpriseCache + +Location Name Type Zone Database +-------- ---- ---- ---- -------- +East US MyCache1 Microsoft.Cache/redisEnterprise {default} +East US MyCache2 Microsoft.Cache/redisEnterprise {1, 2, 3} {default} +West US MyCache3 Microsoft.Cache/redisEnterprise {default} +Central US MyCache4 Microsoft.Cache/redisEnterprise {1, 2, 3} {default} + .Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/get-azredisenterprisecache +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/get-azredisenterprisecache #> function Get-AzRedisEnterpriseCache { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster])] [CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -55,14 +65,14 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter()] diff --git a/src/RedisEnterpriseCache/internal/Get-AzRedisEnterpriseCacheDatabase.ps1 b/src/RedisEnterpriseCache/internal/Get-AzRedisEnterpriseCacheDatabase.ps1 index b1c2be4d3c32..8216a04c08ce 100644 --- a/src/RedisEnterpriseCache/internal/Get-AzRedisEnterpriseCacheDatabase.ps1 +++ b/src/RedisEnterpriseCache/internal/Get-AzRedisEnterpriseCacheDatabase.ps1 @@ -27,12 +27,12 @@ default Microsoft.Cache/redisEnterprise/databases .Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/get-azredisenterprisecachedatabase +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/get-azredisenterprisecachedatabase #> function Get-AzRedisEnterpriseCacheDatabase { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -45,6 +45,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -58,8 +59,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter()] diff --git a/src/RedisEnterpriseCache/internal/Get-AzRedisEnterpriseCacheDatabaseKey.ps1 b/src/RedisEnterpriseCache/internal/Get-AzRedisEnterpriseCacheKey.ps1 similarity index 90% rename from src/RedisEnterpriseCache/internal/Get-AzRedisEnterpriseCacheDatabaseKey.ps1 rename to src/RedisEnterpriseCache/internal/Get-AzRedisEnterpriseCacheKey.ps1 index ff0d8cd270da..3c835179bb5a 100644 --- a/src/RedisEnterpriseCache/internal/Get-AzRedisEnterpriseCacheDatabaseKey.ps1 +++ b/src/RedisEnterpriseCache/internal/Get-AzRedisEnterpriseCacheKey.ps1 @@ -19,7 +19,7 @@ Retrieves the access keys for the RedisEnterprise database. .Description Retrieves the access keys for the RedisEnterprise database. .Example -PS C:\> Get-AzRedisEnterpriseCacheDatabaseKey -Name "MyCache" -ResourceGroupName "MyGroup" +PS C:\> Get-AzRedisEnterpriseCacheKey -Name "MyCache" -ResourceGroupName "MyGroup" PrimaryKey SecondaryKey ---------- ------------ @@ -27,12 +27,13 @@ primary-key secondary-key .Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeys +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeys .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/get-azredisenterprisecachedatabasekey +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/get-azredisenterprisecachekey #> -function Get-AzRedisEnterpriseCacheDatabaseKey { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeys])] +function Get-AzRedisEnterpriseCacheKey { +[Alias('Get-AzRedisEnterpriseCacheDatabaseKey', 'Get-AzRedisEnterpriseCacheAccessKey')] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeys])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -51,14 +52,14 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter()] @@ -117,7 +118,7 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - List = 'Az.RedisEnterpriseCache.private\Get-AzRedisEnterpriseCacheDatabaseKey_List'; + List = 'Az.RedisEnterpriseCache.private\Get-AzRedisEnterpriseCacheKey_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id diff --git a/src/RedisEnterpriseCache/internal/Get-AzRedisEnterpriseCacheOperation.ps1 b/src/RedisEnterpriseCache/internal/Get-AzRedisEnterpriseCacheOperation.ps1 index 0ae8191d1a89..d5479e24579d 100644 --- a/src/RedisEnterpriseCache/internal/Get-AzRedisEnterpriseCacheOperation.ps1 +++ b/src/RedisEnterpriseCache/internal/Get-AzRedisEnterpriseCacheOperation.ps1 @@ -30,7 +30,7 @@ PS C:\> {{ Add code here }} .Outputs Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IOperation .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/get-azredisenterprisecacheoperation +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/get-azredisenterprisecacheoperation #> function Get-AzRedisEnterpriseCacheOperation { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IOperation])] diff --git a/src/RedisEnterpriseCache/internal/Get-AzRedisEnterpriseCachePrivateEndpointConnection.ps1 b/src/RedisEnterpriseCache/internal/Get-AzRedisEnterpriseCachePrivateEndpointConnection.ps1 index 5068496fcb96..73d53cdd64b9 100644 --- a/src/RedisEnterpriseCache/internal/Get-AzRedisEnterpriseCachePrivateEndpointConnection.ps1 +++ b/src/RedisEnterpriseCache/internal/Get-AzRedisEnterpriseCachePrivateEndpointConnection.ps1 @@ -30,7 +30,7 @@ PS C:\> {{ Add code here }} .Outputs Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnection .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/get-azredisenterprisecacheprivateendpointconnection +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/get-azredisenterprisecacheprivateendpointconnection #> function Get-AzRedisEnterpriseCachePrivateEndpointConnection { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnection])] @@ -46,6 +46,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -59,8 +60,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter()] diff --git a/src/RedisEnterpriseCache/internal/Get-AzRedisEnterpriseCachePrivateLinkResource.ps1 b/src/RedisEnterpriseCache/internal/Get-AzRedisEnterpriseCachePrivateLinkResource.ps1 index 2d316f089faa..ffab85b7138d 100644 --- a/src/RedisEnterpriseCache/internal/Get-AzRedisEnterpriseCachePrivateLinkResource.ps1 +++ b/src/RedisEnterpriseCache/internal/Get-AzRedisEnterpriseCachePrivateLinkResource.ps1 @@ -30,7 +30,7 @@ PS C:\> {{ Add code here }} .Outputs Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateLinkResource .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/get-azredisenterprisecacheprivatelinkresource +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/get-azredisenterprisecacheprivatelinkresource #> function Get-AzRedisEnterpriseCachePrivateLinkResource { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateLinkResource])] @@ -46,14 +46,14 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter()] diff --git a/src/RedisEnterpriseCache/internal/Import-AzRedisEnterpriseCacheDatabase.ps1 b/src/RedisEnterpriseCache/internal/Import-AzRedisEnterpriseCache.ps1 similarity index 81% rename from src/RedisEnterpriseCache/internal/Import-AzRedisEnterpriseCacheDatabase.ps1 rename to src/RedisEnterpriseCache/internal/Import-AzRedisEnterpriseCache.ps1 index 2cc0a22fbcd6..dcea3bd88aec 100644 --- a/src/RedisEnterpriseCache/internal/Import-AzRedisEnterpriseCacheDatabase.ps1 +++ b/src/RedisEnterpriseCache/internal/Import-AzRedisEnterpriseCache.ps1 @@ -19,18 +19,15 @@ Imports a database file to target database. .Description Imports a database file to target database. .Example -#[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Invalid SAS token")] -PS C:\> Import-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -SasUri "https://mystorageaccount.blob.core.windows.net/mycontainer/myfilename?sp=rwdl&se=2020-09-02T11:17:15Z&sv=2019-12-12&sr=c&sig=Us%2FGshOUTKCSzTOi8dLtt1to2L32rcDr3Nn0WFFMdDM%3D;mystoragekey" -.Example -#[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Invalid SAS token")] -PS C:\> Import-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -SasUri "https://mystorageaccount.blob.core.windows.net/mycontainer/bk20201130-223654-1-db-1_of_1-2-0-16383.rdb.gz?sp=rwdl&se=2020-09-02T11:17:15Z&sv=2019-12-12&sr=c&sig=Us%2FGshOUTKCSzTOi8dLtt1to2L32rcDr3Nn0WFFMdDM%3D;mystoragekey" +PS C:\> Import-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -SasUri "https://mystorageaccount.blob.core.windows.net/mycontainer/myfilename?sp=signedPermissions&se=signedExpiry&sv=signedVersion&sr=signedResource&sig=signature;mystoragekey" .Outputs System.Boolean .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/import-azredisenterprisecachedatabase +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/import-azredisenterprisecache #> -function Import-AzRedisEnterpriseCacheDatabase { +function Import-AzRedisEnterpriseCache { +[Alias('Import-AzRedisEnterpriseCacheDatabase')] [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='ImportExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( @@ -51,20 +48,20 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [System.String] - # SAS Uri for the target blob to import from + # SAS URI for the target blob to import from ${SasUri}, [Parameter()] @@ -141,7 +138,7 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - ImportExpanded = 'Az.RedisEnterpriseCache.private\Import-AzRedisEnterpriseCacheDatabase_ImportExpanded'; + ImportExpanded = 'Az.RedisEnterpriseCache.private\Import-AzRedisEnterpriseCache_ImportExpanded'; } if (('ImportExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id diff --git a/src/RedisEnterpriseCache/internal/New-AzRedisEnterpriseCache.ps1 b/src/RedisEnterpriseCache/internal/New-AzRedisEnterpriseCache.ps1 index 3abdaf038db0..9f51030aa455 100644 --- a/src/RedisEnterpriseCache/internal/New-AzRedisEnterpriseCache.ps1 +++ b/src/RedisEnterpriseCache/internal/New-AzRedisEnterpriseCache.ps1 @@ -26,97 +26,56 @@ Location Name Type Zone Database West US MyCache Microsoft.Cache/redisEnterprise {default} .Example -PS C:\> New-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -Location "East US" -Sku "Enterprise_E20" -Capacity 4 -Zone "1","2","3" -Module "{name:RedisBloom, args:`"ERROR_RATE 0.00 INITIAL_SIZE 400`"}","{name:RedisTimeSeries, args:`"RETENTION_POLICY 20`"}","{name:RediSearch}" -ClientProtocol "Plaintext" -EvictionPolicy "NoEviction" -ClusteringPolicy "EnterpriseCluster" -Tag @{"tag" = "value"} +PS C:\> New-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -Location "East US" -Sku "Enterprise_E20" -Capacity 4 -MinimumTlsVersion "1.2" -Zone "1","2","3" -Tag @{"tag1" = "value1"} -Module "{name:RedisBloom, args:`"ERROR_RATE 0.00 INITIAL_SIZE 400`"}","{name:RedisTimeSeries, args:`"RETENTION_POLICY 20`"}","{name:RediSearch}" -ClientProtocol "Plaintext" -EvictionPolicy "NoEviction" -ClusteringPolicy "EnterpriseCluster" -AofPersistenceEnabled -AofPersistenceFrequency "1s" Location Name Type Zone Database -------- ---- ---- ---- -------- East US MyCache Microsoft.Cache/redisEnterprise {1, 2, 3} {default} +.Example +PS C:\> New-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -Location "East US" -Sku "EnterpriseFlash_F300" -NoDatabase -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.IRedisEnterpriseCacheIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. +Location Name Type Zone Database +-------- ---- ---- ---- -------- +East US MyCache Microsoft.Cache/redisEnterprise {} -INPUTOBJECT : Identity Parameter - [ClusterName ]: The name of the RedisEnterprise cluster. - [DatabaseName ]: The name of the database. - [Id ]: Resource identity path - [Location ]: The region the operation is in. - [OperationId ]: The operation's unique identifier. - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource - [ResourceGroupName ]: The name of the resource group. - [SubscriptionId ]: Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. -PARAMETER : Describes the RedisEnterprise cluster - Location : The geo-location where the resource lives - SkuName : The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.) - [Tag ]: Resource tags. - [(Any) ]: This indicates any property can be added to this object. - [MinimumTlsVersion ]: The minimum TLS version for the cluster to support, e.g. '1.2' - [SkuCapacity ]: The size of the RedisEnterprise cluster. Defaults to 2 or 3 depending on SKU. Valid values are (2, 4, 6, ...) for Enterprise SKUs and (3, 9, 15, ...) for Flash SKUs. - [Zone ]: The zones where this cluster will be deployed. +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/new-azredisenterprisecache +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/new-azredisenterprisecache #> function New-AzRedisEnterpriseCache { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='Create', Mandatory)] - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the RedisEnterprise cluster. ${ClusterName}, - [Parameter(ParameterSetName='Create', Mandatory)] - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='Create')] - [Parameter(ParameterSetName='CreateExpanded')] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, - [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.IRedisEnterpriseCacheIdentity] - # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - ${InputObject}, - - [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster] - # Describes the RedisEnterprise cluster - # To construct, see NOTES section for PARAMETER properties and create a hash table. - ${Parameter}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [System.String] # The geo-location where the resource lives ${Location}, - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] + [Parameter(Mandatory)] [Alias('SkuName')] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName])] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] @@ -125,8 +84,7 @@ param( # Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.) ${Sku}, - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Parameter()] [Alias('SkuCapacity')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [System.Int32] @@ -135,27 +93,25 @@ param( # Valid values are (2, 4, 6, ...) for Enterprise SKUs and (3, 9, 15, ...) for Flash SKUs. ${Capacity}, - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion])] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [System.String] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion] # The minimum TLS version for the cluster to support, e.g. # '1.2' ${MinimumTlsVersion}, - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [System.String[]] - # The zones where this cluster will be deployed. + # The Availability Zones where this cluster will be deployed. ${Zone}, [Parameter()] @@ -226,12 +182,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Create = 'Az.RedisEnterpriseCache.private\New-AzRedisEnterpriseCache_Create'; CreateExpanded = 'Az.RedisEnterpriseCache.private\New-AzRedisEnterpriseCache_CreateExpanded'; - CreateViaIdentity = 'Az.RedisEnterpriseCache.private\New-AzRedisEnterpriseCache_CreateViaIdentity'; - CreateViaIdentityExpanded = 'Az.RedisEnterpriseCache.private\New-AzRedisEnterpriseCache_CreateViaIdentityExpanded'; } - if (('Create', 'CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/RedisEnterpriseCache/internal/New-AzRedisEnterpriseCacheDatabase.ps1 b/src/RedisEnterpriseCache/internal/New-AzRedisEnterpriseCacheDatabase.ps1 index 54c88aaf117b..91d41787cfbd 100644 --- a/src/RedisEnterpriseCache/internal/New-AzRedisEnterpriseCacheDatabase.ps1 +++ b/src/RedisEnterpriseCache/internal/New-AzRedisEnterpriseCacheDatabase.ps1 @@ -19,103 +19,71 @@ Creates a database .Description Creates a database .Example -PS C:\> {{ Add code here }} +PS C:\> New-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -Module "{name:RedisBloom, args:`"ERROR_RATE 0.00 INITIAL_SIZE 400`"}","{name:RedisTimeSeries, args:`"RETENTION_POLICY 20`"}","{name:RediSearch}" -ClientProtocol "Plaintext" -EvictionPolicy "NoEviction" -ClusteringPolicy "EnterpriseCluster" -Port 10000 -AofPersistenceEnabled -AofPersistenceFrequency "always" -{{ Add output here }} -.Example -PS C:\> {{ Add code here }} +Location Name Type Zone Database +-------- ---- ---- ---- -------- +West US MyCache Microsoft.Cache/redisEnterprise {default} -{{ Add output here }} -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.IRedisEnterpriseCacheIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT : Identity Parameter - [ClusterName ]: The name of the RedisEnterprise cluster. - [DatabaseName ]: The name of the database. - [Id ]: Resource identity path - [Location ]: The region the operation is in. - [OperationId ]: The operation's unique identifier. - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource - [ResourceGroupName ]: The name of the resource group. - [SubscriptionId ]: Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - MODULE : Optional set of redis modules to enable in this database - modules can only be added at creation time. Name : The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries' [Arg ]: Configuration options for the module, e.g. 'ERROR_RATE 0.00 INITIAL_SIZE 400'. - -PARAMETER : Describes a database on the RedisEnterprise cluster - [ClientProtocol ]: Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted. - [ClusteringPolicy ]: Clustering policy - default is OSSCluster. Specified at create time. - [EvictionPolicy ]: Redis eviction policy - default is VolatileLRU - [Module ]: Optional set of redis modules to enable in this database - modules can only be added at creation time. - Name : The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries' - [Arg ]: Configuration options for the module, e.g. 'ERROR_RATE 0.00 INITIAL_SIZE 400'. - [Port ]: TCP port of the database endpoint. Specified at create time. Defaults to an available port. .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/new-azredisenterprisecachedatabase +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/new-azredisenterprisecachedatabase #> function New-AzRedisEnterpriseCacheDatabase { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='Create', Mandatory)] - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the RedisEnterprise cluster. ${ClusterName}, - [Parameter(ParameterSetName='Create', Mandatory)] - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(Mandatory)] [Alias('DatabaseName')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the database. ${Name}, - [Parameter(ParameterSetName='Create', Mandatory)] - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='Create')] - [Parameter(ParameterSetName='CreateExpanded')] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, - [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.IRedisEnterpriseCacheIdentity] - # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - ${InputObject}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [System.Management.Automation.SwitchParameter] + # Sets whether AOF is enabled. + ${AofPersistenceEnabled}, - [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency])] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase] - # Describes a database on the RedisEnterprise cluster - # To construct, see NOTES section for PARAMETER properties and create a hash table. - ${Parameter}, + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency] + # Sets the frequency at which data is written to disk. + ${AofPersistenceFrequency}, - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol])] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol] @@ -123,8 +91,7 @@ param( # Default is TLS-encrypted. ${ClientProtocol}, - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy])] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy] @@ -132,24 +99,21 @@ param( # Specified at create time. ${ClusteringPolicy}, - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy])] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy] # Redis eviction policy - default is VolatileLRU ${EvictionPolicy}, - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule[]] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule[]] # Optional set of redis modules to enable in this database - modules can only be added at creation time. # To construct, see NOTES section for MODULE properties and create a hash table. ${Module}, - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [System.Int32] # TCP port of the database endpoint. @@ -157,6 +121,19 @@ param( # Defaults to an available port. ${Port}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [System.Management.Automation.SwitchParameter] + # Sets whether RDB is enabled. + ${RdbPersistenceEnabled}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency])] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency] + # Sets the frequency at which a snapshot of the database is created. + ${RdbPersistenceFrequency}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -225,12 +202,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Create = 'Az.RedisEnterpriseCache.private\New-AzRedisEnterpriseCacheDatabase_Create'; CreateExpanded = 'Az.RedisEnterpriseCache.private\New-AzRedisEnterpriseCacheDatabase_CreateExpanded'; - CreateViaIdentity = 'Az.RedisEnterpriseCache.private\New-AzRedisEnterpriseCacheDatabase_CreateViaIdentity'; - CreateViaIdentityExpanded = 'Az.RedisEnterpriseCache.private\New-AzRedisEnterpriseCacheDatabase_CreateViaIdentityExpanded'; } - if (('Create', 'CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/RedisEnterpriseCache/internal/New-AzRedisEnterpriseCacheDatabaseKey.ps1 b/src/RedisEnterpriseCache/internal/New-AzRedisEnterpriseCacheKey.ps1 similarity index 89% rename from src/RedisEnterpriseCache/internal/New-AzRedisEnterpriseCacheDatabaseKey.ps1 rename to src/RedisEnterpriseCache/internal/New-AzRedisEnterpriseCacheKey.ps1 index 437acf72aa0e..d5efafd61fe8 100644 --- a/src/RedisEnterpriseCache/internal/New-AzRedisEnterpriseCacheDatabaseKey.ps1 +++ b/src/RedisEnterpriseCache/internal/New-AzRedisEnterpriseCacheKey.ps1 @@ -19,14 +19,14 @@ Regenerates the RedisEnterprise database's access keys. .Description Regenerates the RedisEnterprise database's access keys. .Example -PS C:\> New-AzRedisEnterpriseCacheDatabaseKey -Name "MyCache" -ResourceGroupName "MyGroup" -KeyType "Primary" +PS C:\> New-AzRedisEnterpriseCacheKey -Name "MyCache" -ResourceGroupName "MyGroup" -KeyType "Primary" PrimaryKey SecondaryKey ---------- ------------ new-primary-key secondary-key .Example -PS C:\> New-AzRedisEnterpriseCacheDatabaseKey -Name "MyCache" -ResourceGroupName "MyGroup" -KeyType "Secondary" +PS C:\> New-AzRedisEnterpriseCacheKey -Name "MyCache" -ResourceGroupName "MyGroup" -KeyType "Secondary" PrimaryKey SecondaryKey ---------- ------------ @@ -34,12 +34,13 @@ primary-key new-secondary-key .Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeys +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeys .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/new-azredisenterprisecachedatabasekey +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/new-azredisenterprisecachekey #> -function New-AzRedisEnterpriseCacheDatabaseKey { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeys])] +function New-AzRedisEnterpriseCacheKey { +[Alias('New-AzRedisEnterpriseCacheDatabaseKey', 'New-AzRedisEnterpriseCacheAccessKey')] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeys])] [CmdletBinding(DefaultParameterSetName='RegenerateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -58,14 +59,14 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter(Mandatory)] @@ -143,7 +144,7 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - RegenerateExpanded = 'Az.RedisEnterpriseCache.private\New-AzRedisEnterpriseCacheDatabaseKey_RegenerateExpanded'; + RegenerateExpanded = 'Az.RedisEnterpriseCache.private\New-AzRedisEnterpriseCacheKey_RegenerateExpanded'; } if (('RegenerateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id diff --git a/src/RedisEnterpriseCache/internal/ProxyCmdletDefinitions.ps1 b/src/RedisEnterpriseCache/internal/ProxyCmdletDefinitions.ps1 index dd64efab706b..b8b49aec5e57 100644 --- a/src/RedisEnterpriseCache/internal/ProxyCmdletDefinitions.ps1 +++ b/src/RedisEnterpriseCache/internal/ProxyCmdletDefinitions.ps1 @@ -19,15 +19,15 @@ Exports a database file from target database. .Description Exports a database file from target database. .Example -#[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Invalid SAS token")] -PS C:\> Export-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -SasUri "https://mystorageaccount.blob.core.windows.net/mycontainer?sp=rwdl&se=2020-09-02T11:17:15Z&sv=2019-12-12&sr=c&sig=Us%2FGshOUTKCSzTOi8dLtt1to2L32rcDr3Nn0WFFMdDM%3D;mystoragekey" +PS C:\> Export-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -SasUri "https://mystorageaccount.blob.core.windows.net/mycontainer?sp=signedPermissions&se=signedExpiry&sv=signedVersion&sr=signedResource&sig=signature;mystoragekey" .Outputs System.Boolean .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/export-azredisenterprisecachedatabase +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/export-azredisenterprisecache #> -function Export-AzRedisEnterpriseCacheDatabase { +function Export-AzRedisEnterpriseCache { +[Alias('Export-AzRedisEnterpriseCacheDatabase')] [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='ExportExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( @@ -48,20 +48,20 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [System.String] - # SAS Uri for the target directory to export to + # SAS URI for the target directory to export to ${SasUri}, [Parameter()] @@ -138,7 +138,7 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - ExportExpanded = 'Az.RedisEnterpriseCache.private\Export-AzRedisEnterpriseCacheDatabase_ExportExpanded'; + ExportExpanded = 'Az.RedisEnterpriseCache.private\Export-AzRedisEnterpriseCache_ExportExpanded'; } if (('ExportExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id @@ -185,25 +185,25 @@ end { <# .Synopsis -Retrieves the access keys for the RedisEnterprise database. +Gets information about a database in a RedisEnterprise cluster. .Description -Retrieves the access keys for the RedisEnterprise database. +Gets information about a database in a RedisEnterprise cluster. .Example -PS C:\> Get-AzRedisEnterpriseCacheDatabaseKey -Name "MyCache" -ResourceGroupName "MyGroup" +PS C:\> Get-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -PrimaryKey SecondaryKey ----------- ------------ -primary-key secondary-key +Name Type +---- ---- +default Microsoft.Cache/redisEnterprise/databases .Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeys +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/get-azredisenterprisecachedatabasekey +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/get-azredisenterprisecachedatabase #> -function Get-AzRedisEnterpriseCacheDatabaseKey { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeys])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Get-AzRedisEnterpriseCacheDatabase { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] @@ -214,21 +214,22 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] - # The name of the database. - ${DatabaseName}, + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('DatabaseName')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] - # The name of the resource group. - ${ResourceGroupName}, + # The name of the database. + ${Name}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter()] @@ -287,9 +288,10 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - List = 'Az.RedisEnterpriseCache.private\Get-AzRedisEnterpriseCacheDatabaseKey_List'; + Get = 'Az.RedisEnterpriseCache.private\Get-AzRedisEnterpriseCacheDatabase_Get'; + List = 'Az.RedisEnterpriseCache.private\Get-AzRedisEnterpriseCacheDatabase_List'; } - if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -334,25 +336,26 @@ end { <# .Synopsis -Gets information about a database in a RedisEnterprise cluster. +Retrieves the access keys for the RedisEnterprise database. .Description -Gets information about a database in a RedisEnterprise cluster. +Retrieves the access keys for the RedisEnterprise database. .Example -PS C:\> Get-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" +PS C:\> Get-AzRedisEnterpriseCacheKey -Name "MyCache" -ResourceGroupName "MyGroup" -Name Type ----- ---- -default Microsoft.Cache/redisEnterprise/databases +PrimaryKey SecondaryKey +---------- ------------ +primary-key secondary-key .Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeys .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/get-azredisenterprisecachedatabase +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/get-azredisenterprisecachekey #> -function Get-AzRedisEnterpriseCacheDatabase { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +function Get-AzRedisEnterpriseCacheKey { +[Alias('Get-AzRedisEnterpriseCacheDatabaseKey', 'Get-AzRedisEnterpriseCacheAccessKey')] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeys])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] @@ -363,22 +366,21 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] - # The name of the resource group. - ${ResourceGroupName}, + # The name of the database. + ${DatabaseName}, - [Parameter(ParameterSetName='Get', Mandatory)] - [Alias('DatabaseName')] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] - # The name of the database. - ${Name}, + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter()] @@ -437,10 +439,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Get = 'Az.RedisEnterpriseCache.private\Get-AzRedisEnterpriseCacheDatabase_Get'; - List = 'Az.RedisEnterpriseCache.private\Get-AzRedisEnterpriseCacheDatabase_List'; + List = 'Az.RedisEnterpriseCache.private\Get-AzRedisEnterpriseCacheKey_List'; } - if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -500,7 +501,7 @@ PS C:\> {{ Add code here }} .Outputs Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IOperation .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/get-azredisenterprisecacheoperation +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/get-azredisenterprisecacheoperation #> function Get-AzRedisEnterpriseCacheOperation { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.IOperation])] @@ -621,7 +622,7 @@ PS C:\> {{ Add code here }} .Outputs Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnection .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/get-azredisenterprisecacheprivateendpointconnection +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/get-azredisenterprisecacheprivateendpointconnection #> function Get-AzRedisEnterpriseCachePrivateEndpointConnection { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateEndpointConnection])] @@ -637,6 +638,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -650,8 +652,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter()] @@ -773,7 +774,7 @@ PS C:\> {{ Add code here }} .Outputs Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateLinkResource .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/get-azredisenterprisecacheprivatelinkresource +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/get-azredisenterprisecacheprivatelinkresource #> function Get-AzRedisEnterpriseCachePrivateLinkResource { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api10.IPrivateLinkResource])] @@ -789,14 +790,14 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter()] @@ -920,14 +921,24 @@ Location Name Type Zone Database East US MyCache1 Microsoft.Cache/redisEnterprise {default} East US MyCache2 Microsoft.Cache/redisEnterprise {1, 2, 3} {default} +.Example +PS C:\> Get-AzRedisEnterpriseCache + +Location Name Type Zone Database +-------- ---- ---- ---- -------- +East US MyCache1 Microsoft.Cache/redisEnterprise {default} +East US MyCache2 Microsoft.Cache/redisEnterprise {1, 2, 3} {default} +West US MyCache3 Microsoft.Cache/redisEnterprise {default} +Central US MyCache4 Microsoft.Cache/redisEnterprise {1, 2, 3} {default} + .Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/get-azredisenterprisecache +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/get-azredisenterprisecache #> function Get-AzRedisEnterpriseCache { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster])] [CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -942,14 +953,14 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter()] @@ -1061,18 +1072,15 @@ Imports a database file to target database. .Description Imports a database file to target database. .Example -#[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Invalid SAS token")] -PS C:\> Import-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -SasUri "https://mystorageaccount.blob.core.windows.net/mycontainer/myfilename?sp=rwdl&se=2020-09-02T11:17:15Z&sv=2019-12-12&sr=c&sig=Us%2FGshOUTKCSzTOi8dLtt1to2L32rcDr3Nn0WFFMdDM%3D;mystoragekey" -.Example -#[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Invalid SAS token")] -PS C:\> Import-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -SasUri "https://mystorageaccount.blob.core.windows.net/mycontainer/bk20201130-223654-1-db-1_of_1-2-0-16383.rdb.gz?sp=rwdl&se=2020-09-02T11:17:15Z&sv=2019-12-12&sr=c&sig=Us%2FGshOUTKCSzTOi8dLtt1to2L32rcDr3Nn0WFFMdDM%3D;mystoragekey" +PS C:\> Import-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -SasUri "https://mystorageaccount.blob.core.windows.net/mycontainer/myfilename?sp=signedPermissions&se=signedExpiry&sv=signedVersion&sr=signedResource&sig=signature;mystoragekey" .Outputs System.Boolean .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/import-azredisenterprisecachedatabase +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/import-azredisenterprisecache #> -function Import-AzRedisEnterpriseCacheDatabase { +function Import-AzRedisEnterpriseCache { +[Alias('Import-AzRedisEnterpriseCacheDatabase')] [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='ImportExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( @@ -1093,20 +1101,20 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [System.String] - # SAS Uri for the target blob to import from + # SAS URI for the target blob to import from ${SasUri}, [Parameter()] @@ -1183,7 +1191,7 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - ImportExpanded = 'Az.RedisEnterpriseCache.private\Import-AzRedisEnterpriseCacheDatabase_ImportExpanded'; + ImportExpanded = 'Az.RedisEnterpriseCache.private\Import-AzRedisEnterpriseCache_ImportExpanded'; } if (('ImportExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id @@ -1230,32 +1238,33 @@ end { <# .Synopsis -Regenerates the RedisEnterprise database's access keys. +Creates a database .Description -Regenerates the RedisEnterprise database's access keys. +Creates a database .Example -PS C:\> New-AzRedisEnterpriseCacheDatabaseKey -Name "MyCache" -ResourceGroupName "MyGroup" -KeyType "Primary" +PS C:\> New-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -Module "{name:RedisBloom, args:`"ERROR_RATE 0.00 INITIAL_SIZE 400`"}","{name:RedisTimeSeries, args:`"RETENTION_POLICY 20`"}","{name:RediSearch}" -ClientProtocol "Plaintext" -EvictionPolicy "NoEviction" -ClusteringPolicy "EnterpriseCluster" -Port 10000 -AofPersistenceEnabled -AofPersistenceFrequency "always" -PrimaryKey SecondaryKey ----------- ------------ -new-primary-key secondary-key +Location Name Type Zone Database +-------- ---- ---- ---- -------- +West US MyCache Microsoft.Cache/redisEnterprise {default} -.Example -PS C:\> New-AzRedisEnterpriseCacheDatabaseKey -Name "MyCache" -ResourceGroupName "MyGroup" -KeyType "Secondary" -PrimaryKey SecondaryKey ----------- ------------ -primary-key new-secondary-key +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase +.Notes +COMPLEX PARAMETER PROPERTIES +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeys +MODULE : Optional set of redis modules to enable in this database - modules can only be added at creation time. + Name : The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries' + [Arg ]: Configuration options for the module, e.g. 'ERROR_RATE 0.00 INITIAL_SIZE 400'. .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/new-azredisenterprisecachedatabasekey +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/new-azredisenterprisecachedatabase #> -function New-AzRedisEnterpriseCacheDatabaseKey { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IAccessKeys])] -[CmdletBinding(DefaultParameterSetName='RegenerateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function New-AzRedisEnterpriseCacheDatabase { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] @@ -1264,31 +1273,89 @@ param( ${ClusterName}, [Parameter(Mandatory)] + [Alias('DatabaseName')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the database. - ${DatabaseName}, + ${Name}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, - [Parameter(Mandatory)] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AccessKeyType])] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AccessKeyType] - # Which access key to regenerate. - ${KeyType}, + [System.Management.Automation.SwitchParameter] + # Sets whether AOF is enabled. + ${AofPersistenceEnabled}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency])] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency] + # Sets the frequency at which data is written to disk. + ${AofPersistenceFrequency}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol])] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol] + # Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. + # Default is TLS-encrypted. + ${ClientProtocol}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy])] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy] + # Clustering policy - default is OSSCluster. + # Specified at create time. + ${ClusteringPolicy}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy])] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy] + # Redis eviction policy - default is VolatileLRU + ${EvictionPolicy}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule[]] + # Optional set of redis modules to enable in this database - modules can only be added at creation time. + # To construct, see NOTES section for MODULE properties and create a hash table. + ${Module}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [System.Int32] + # TCP port of the database endpoint. + # Specified at create time. + # Defaults to an available port. + ${Port}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [System.Management.Automation.SwitchParameter] + # Sets whether RDB is enabled. + ${RdbPersistenceEnabled}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency])] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency] + # Sets the frequency at which a snapshot of the database is created. + ${RdbPersistenceFrequency}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -1358,9 +1425,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - RegenerateExpanded = 'Az.RedisEnterpriseCache.private\New-AzRedisEnterpriseCacheDatabaseKey_RegenerateExpanded'; + CreateExpanded = 'Az.RedisEnterpriseCache.private\New-AzRedisEnterpriseCacheDatabase_CreateExpanded'; } - if (('RegenerateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -1405,147 +1472,66 @@ end { <# .Synopsis -Creates a database +Regenerates the RedisEnterprise database's access keys. .Description -Creates a database -.Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +Regenerates the RedisEnterprise database's access keys. .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +PS C:\> New-AzRedisEnterpriseCacheKey -Name "MyCache" -ResourceGroupName "MyGroup" -KeyType "Primary" -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.IRedisEnterpriseCacheIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase -.Notes -COMPLEX PARAMETER PROPERTIES +PrimaryKey SecondaryKey +---------- ------------ +new-primary-key secondary-key -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. +.Example +PS C:\> New-AzRedisEnterpriseCacheKey -Name "MyCache" -ResourceGroupName "MyGroup" -KeyType "Secondary" -INPUTOBJECT : Identity Parameter - [ClusterName ]: The name of the RedisEnterprise cluster. - [DatabaseName ]: The name of the database. - [Id ]: Resource identity path - [Location ]: The region the operation is in. - [OperationId ]: The operation's unique identifier. - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource - [ResourceGroupName ]: The name of the resource group. - [SubscriptionId ]: Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. +PrimaryKey SecondaryKey +---------- ------------ +primary-key new-secondary-key -MODULE : Optional set of redis modules to enable in this database - modules can only be added at creation time. - Name : The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries' - [Arg ]: Configuration options for the module, e.g. 'ERROR_RATE 0.00 INITIAL_SIZE 400'. -PARAMETER : Describes a database on the RedisEnterprise cluster - [ClientProtocol ]: Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted. - [ClusteringPolicy ]: Clustering policy - default is OSSCluster. Specified at create time. - [EvictionPolicy ]: Redis eviction policy - default is VolatileLRU - [Module ]: Optional set of redis modules to enable in this database - modules can only be added at creation time. - Name : The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries' - [Arg ]: Configuration options for the module, e.g. 'ERROR_RATE 0.00 INITIAL_SIZE 400'. - [Port ]: TCP port of the database endpoint. Specified at create time. Defaults to an available port. +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeys .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/new-azredisenterprisecachedatabase +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/new-azredisenterprisecachekey #> -function New-AzRedisEnterpriseCacheDatabase { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function New-AzRedisEnterpriseCacheKey { +[Alias('New-AzRedisEnterpriseCacheDatabaseKey', 'New-AzRedisEnterpriseCacheAccessKey')] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IAccessKeys])] +[CmdletBinding(DefaultParameterSetName='RegenerateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='Create', Mandatory)] - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the RedisEnterprise cluster. ${ClusterName}, - [Parameter(ParameterSetName='Create', Mandatory)] - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Alias('DatabaseName')] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the database. - ${Name}, + ${DatabaseName}, - [Parameter(ParameterSetName='Create', Mandatory)] - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='Create')] - [Parameter(ParameterSetName='CreateExpanded')] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, - [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.IRedisEnterpriseCacheIdentity] - # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - ${InputObject}, - - [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase] - # Describes a database on the RedisEnterprise cluster - # To construct, see NOTES section for PARAMETER properties and create a hash table. - ${Parameter}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol])] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol] - # Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. - # Default is TLS-encrypted. - ${ClientProtocol}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy])] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.ClusteringPolicy] - # Clustering policy - default is OSSCluster. - # Specified at create time. - ${ClusteringPolicy}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy])] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.EvictionPolicy] - # Redis eviction policy - default is VolatileLRU - ${EvictionPolicy}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule[]] - # Optional set of redis modules to enable in this database - modules can only be added at creation time. - # To construct, see NOTES section for MODULE properties and create a hash table. - ${Module}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Parameter(Mandatory)] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AccessKeyType])] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [System.Int32] - # TCP port of the database endpoint. - # Specified at create time. - # Defaults to an available port. - ${Port}, + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AccessKeyType] + # Which access key to regenerate. + ${KeyType}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -1615,12 +1601,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Create = 'Az.RedisEnterpriseCache.private\New-AzRedisEnterpriseCacheDatabase_Create'; - CreateExpanded = 'Az.RedisEnterpriseCache.private\New-AzRedisEnterpriseCacheDatabase_CreateExpanded'; - CreateViaIdentity = 'Az.RedisEnterpriseCache.private\New-AzRedisEnterpriseCacheDatabase_CreateViaIdentity'; - CreateViaIdentityExpanded = 'Az.RedisEnterpriseCache.private\New-AzRedisEnterpriseCacheDatabase_CreateViaIdentityExpanded'; + RegenerateExpanded = 'Az.RedisEnterpriseCache.private\New-AzRedisEnterpriseCacheKey_RegenerateExpanded'; } - if (('Create', 'CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('RegenerateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -1676,97 +1659,56 @@ Location Name Type Zone Database West US MyCache Microsoft.Cache/redisEnterprise {default} .Example -PS C:\> New-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -Location "East US" -Sku "Enterprise_E20" -Capacity 4 -Zone "1","2","3" -Module "{name:RedisBloom, args:`"ERROR_RATE 0.00 INITIAL_SIZE 400`"}","{name:RedisTimeSeries, args:`"RETENTION_POLICY 20`"}","{name:RediSearch}" -ClientProtocol "Plaintext" -EvictionPolicy "NoEviction" -ClusteringPolicy "EnterpriseCluster" -Tag @{"tag" = "value"} +PS C:\> New-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -Location "East US" -Sku "Enterprise_E20" -Capacity 4 -MinimumTlsVersion "1.2" -Zone "1","2","3" -Tag @{"tag1" = "value1"} -Module "{name:RedisBloom, args:`"ERROR_RATE 0.00 INITIAL_SIZE 400`"}","{name:RedisTimeSeries, args:`"RETENTION_POLICY 20`"}","{name:RediSearch}" -ClientProtocol "Plaintext" -EvictionPolicy "NoEviction" -ClusteringPolicy "EnterpriseCluster" -AofPersistenceEnabled -AofPersistenceFrequency "1s" Location Name Type Zone Database -------- ---- ---- ---- -------- East US MyCache Microsoft.Cache/redisEnterprise {1, 2, 3} {default} +.Example +PS C:\> New-AzRedisEnterpriseCache -Name "MyCache" -ResourceGroupName "MyGroup" -Location "East US" -Sku "EnterpriseFlash_F300" -NoDatabase -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.IRedisEnterpriseCacheIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster -.Notes -COMPLEX PARAMETER PROPERTIES +Location Name Type Zone Database +-------- ---- ---- ---- -------- +East US MyCache Microsoft.Cache/redisEnterprise {} -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT : Identity Parameter - [ClusterName ]: The name of the RedisEnterprise cluster. - [DatabaseName ]: The name of the database. - [Id ]: Resource identity path - [Location ]: The region the operation is in. - [OperationId ]: The operation's unique identifier. - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource - [ResourceGroupName ]: The name of the resource group. - [SubscriptionId ]: Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - -PARAMETER : Describes the RedisEnterprise cluster - Location : The geo-location where the resource lives - SkuName : The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.) - [Tag ]: Resource tags. - [(Any) ]: This indicates any property can be added to this object. - [MinimumTlsVersion ]: The minimum TLS version for the cluster to support, e.g. '1.2' - [SkuCapacity ]: The size of the RedisEnterprise cluster. Defaults to 2 or 3 depending on SKU. Valid values are (2, 4, 6, ...) for Enterprise SKUs and (3, 9, 15, ...) for Flash SKUs. - [Zone ]: The zones where this cluster will be deployed. +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/new-azredisenterprisecache +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/new-azredisenterprisecache #> function New-AzRedisEnterpriseCache { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.ICluster])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='Create', Mandatory)] - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the RedisEnterprise cluster. ${ClusterName}, - [Parameter(ParameterSetName='Create', Mandatory)] - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='Create')] - [Parameter(ParameterSetName='CreateExpanded')] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, - [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.IRedisEnterpriseCacheIdentity] - # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - ${InputObject}, - - [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.ICluster] - # Describes the RedisEnterprise cluster - # To construct, see NOTES section for PARAMETER properties and create a hash table. - ${Parameter}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [System.String] # The geo-location where the resource lives ${Location}, - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] + [Parameter(Mandatory)] [Alias('SkuName')] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.SkuName])] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] @@ -1775,8 +1717,7 @@ param( # Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.) ${Sku}, - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Parameter()] [Alias('SkuCapacity')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [System.Int32] @@ -1785,27 +1726,25 @@ param( # Valid values are (2, 4, 6, ...) for Enterprise SKUs and (3, 9, 15, ...) for Flash SKUs. ${Capacity}, - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion])] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [System.String] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.TlsVersion] # The minimum TLS version for the cluster to support, e.g. # '1.2' ${MinimumTlsVersion}, - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] [System.String[]] - # The zones where this cluster will be deployed. + # The Availability Zones where this cluster will be deployed. ${Zone}, [Parameter()] @@ -1876,12 +1815,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Create = 'Az.RedisEnterpriseCache.private\New-AzRedisEnterpriseCache_Create'; CreateExpanded = 'Az.RedisEnterpriseCache.private\New-AzRedisEnterpriseCache_CreateExpanded'; - CreateViaIdentity = 'Az.RedisEnterpriseCache.private\New-AzRedisEnterpriseCache_CreateViaIdentity'; - CreateViaIdentityExpanded = 'Az.RedisEnterpriseCache.private\New-AzRedisEnterpriseCache_CreateViaIdentityExpanded'; } - if (('Create', 'CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -1930,13 +1866,10 @@ Deletes a single database .Description Deletes a single database .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +PS C:\> Remove-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -PassThru +True .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +PS C:\> Remove-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" .Inputs Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.IRedisEnterpriseCacheIdentity @@ -1954,10 +1887,10 @@ INPUTOBJECT : Identity Parameter [Location ]: The region the operation is in. [OperationId ]: The operation's unique identifier. [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource - [ResourceGroupName ]: The name of the resource group. - [SubscriptionId ]: Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/remove-azredisenterprisecachedatabase +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/remove-azredisenterprisecachedatabase #> function Remove-AzRedisEnterpriseCacheDatabase { [OutputType([System.Boolean])] @@ -1980,14 +1913,14 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Delete')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] @@ -2147,10 +2080,10 @@ INPUTOBJECT : Identity Parameter [Location ]: The region the operation is in. [OperationId ]: The operation's unique identifier. [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource - [ResourceGroupName ]: The name of the resource group. - [SubscriptionId ]: Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/remove-azredisenterprisecacheprivateendpointconnection +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/remove-azredisenterprisecacheprivateendpointconnection #> function Remove-AzRedisEnterpriseCachePrivateEndpointConnection { [OutputType([System.Boolean])] @@ -2173,14 +2106,14 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Delete')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] @@ -2326,7 +2259,7 @@ PROPERTY : The Private Endpoint Connection resource. [PrivateLinkServiceConnectionStateDescription ]: The reason for approval/rejection of the connection. [PrivateLinkServiceConnectionStateStatus ]: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/set-azredisenterprisecacheprivateendpointconnection +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/set-azredisenterprisecacheprivateendpointconnection #> function Set-AzRedisEnterpriseCachePrivateEndpointConnection { [OutputType([System.Boolean])] @@ -2349,14 +2282,14 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter(ParameterSetName='Put', Mandatory, ValueFromPipeline)] @@ -2522,7 +2455,7 @@ default Microsoft.Cache/redisEnterprise/databases .Inputs Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.IRedisEnterpriseCacheIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase .Notes COMPLEX PARAMETER PROPERTIES @@ -2535,17 +2468,17 @@ INPUTOBJECT : Identity Parameter [Location ]: The region the operation is in. [OperationId ]: The operation's unique identifier. [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource - [ResourceGroupName ]: The name of the resource group. - [SubscriptionId ]: Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. MODULE : Optional set of redis modules to enable in this database - modules can only be added at creation time. Name : The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries' [Arg ]: Configuration options for the module, e.g. 'ERROR_RATE 0.00 INITIAL_SIZE 400'. .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/update-azredisenterprisecachedatabase +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/update-azredisenterprisecachedatabase #> function Update-AzRedisEnterpriseCacheDatabase { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -2565,14 +2498,14 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -2582,6 +2515,19 @@ param( # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [System.Management.Automation.SwitchParameter] + # Sets whether AOF is enabled. + ${AofPersistenceEnabled}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency])] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency] + # Sets the frequency at which data is written to disk. + ${AofPersistenceFrequency}, + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol])] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] @@ -2607,7 +2553,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule[]] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule[]] # Optional set of redis modules to enable in this database - modules can only be added at creation time. # To construct, see NOTES section for MODULE properties and create a hash table. ${Module}, @@ -2620,6 +2566,19 @@ param( # Defaults to an available port. ${Port}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [System.Management.Automation.SwitchParameter] + # Sets whether RDB is enabled. + ${RdbPersistenceEnabled}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency])] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency] + # Sets the frequency at which a snapshot of the database is created. + ${RdbPersistenceFrequency}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] diff --git a/src/RedisEnterpriseCache/internal/Remove-AzRedisEnterpriseCacheDatabase.ps1 b/src/RedisEnterpriseCache/internal/Remove-AzRedisEnterpriseCacheDatabase.ps1 index 7bc8f43ea915..e94166fe2c9e 100644 --- a/src/RedisEnterpriseCache/internal/Remove-AzRedisEnterpriseCacheDatabase.ps1 +++ b/src/RedisEnterpriseCache/internal/Remove-AzRedisEnterpriseCacheDatabase.ps1 @@ -19,13 +19,10 @@ Deletes a single database .Description Deletes a single database .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +PS C:\> Remove-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" -PassThru +True .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +PS C:\> Remove-AzRedisEnterpriseCacheDatabase -Name "MyCache" -ResourceGroupName "MyGroup" .Inputs Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.IRedisEnterpriseCacheIdentity @@ -43,10 +40,10 @@ INPUTOBJECT : Identity Parameter [Location ]: The region the operation is in. [OperationId ]: The operation's unique identifier. [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource - [ResourceGroupName ]: The name of the resource group. - [SubscriptionId ]: Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/remove-azredisenterprisecachedatabase +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/remove-azredisenterprisecachedatabase #> function Remove-AzRedisEnterpriseCacheDatabase { [OutputType([System.Boolean])] @@ -69,14 +66,14 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Delete')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/RedisEnterpriseCache/internal/Remove-AzRedisEnterpriseCachePrivateEndpointConnection.ps1 b/src/RedisEnterpriseCache/internal/Remove-AzRedisEnterpriseCachePrivateEndpointConnection.ps1 index e954765ea89d..4a9d687b766b 100644 --- a/src/RedisEnterpriseCache/internal/Remove-AzRedisEnterpriseCachePrivateEndpointConnection.ps1 +++ b/src/RedisEnterpriseCache/internal/Remove-AzRedisEnterpriseCachePrivateEndpointConnection.ps1 @@ -43,10 +43,10 @@ INPUTOBJECT : Identity Parameter [Location ]: The region the operation is in. [OperationId ]: The operation's unique identifier. [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource - [ResourceGroupName ]: The name of the resource group. - [SubscriptionId ]: Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/remove-azredisenterprisecacheprivateendpointconnection +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/remove-azredisenterprisecacheprivateendpointconnection #> function Remove-AzRedisEnterpriseCachePrivateEndpointConnection { [OutputType([System.Boolean])] @@ -69,14 +69,14 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Delete')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/RedisEnterpriseCache/internal/Set-AzRedisEnterpriseCachePrivateEndpointConnection.ps1 b/src/RedisEnterpriseCache/internal/Set-AzRedisEnterpriseCachePrivateEndpointConnection.ps1 index a9cf2304f43a..0c4c4ba8d43f 100644 --- a/src/RedisEnterpriseCache/internal/Set-AzRedisEnterpriseCachePrivateEndpointConnection.ps1 +++ b/src/RedisEnterpriseCache/internal/Set-AzRedisEnterpriseCachePrivateEndpointConnection.ps1 @@ -41,7 +41,7 @@ PROPERTY : The Private Endpoint Connection resource. [PrivateLinkServiceConnectionStateDescription ]: The reason for approval/rejection of the connection. [PrivateLinkServiceConnectionStateStatus ]: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/set-azredisenterprisecacheprivateendpointconnection +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/set-azredisenterprisecacheprivateendpointconnection #> function Set-AzRedisEnterpriseCachePrivateEndpointConnection { [OutputType([System.Boolean])] @@ -64,14 +64,14 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter(ParameterSetName='Put', Mandatory, ValueFromPipeline)] diff --git a/src/RedisEnterpriseCache/internal/Update-AzRedisEnterpriseCacheDatabase.ps1 b/src/RedisEnterpriseCache/internal/Update-AzRedisEnterpriseCacheDatabase.ps1 index d3fa5f12d6eb..7592c5d7cc4f 100644 --- a/src/RedisEnterpriseCache/internal/Update-AzRedisEnterpriseCacheDatabase.ps1 +++ b/src/RedisEnterpriseCache/internal/Update-AzRedisEnterpriseCacheDatabase.ps1 @@ -36,7 +36,7 @@ default Microsoft.Cache/redisEnterprise/databases .Inputs Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.IRedisEnterpriseCacheIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase +Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase .Notes COMPLEX PARAMETER PROPERTIES @@ -49,17 +49,17 @@ INPUTOBJECT : Identity Parameter [Location ]: The region the operation is in. [OperationId ]: The operation's unique identifier. [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource - [ResourceGroupName ]: The name of the resource group. - [SubscriptionId ]: Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. MODULE : Optional set of redis modules to enable in this database - modules can only be added at creation time. Name : The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries' [Arg ]: Configuration options for the module, e.g. 'ERROR_RATE 0.00 INITIAL_SIZE 400'. .Link -https://docs.microsoft.com/en-us/powershell/module/az.redisenterprisecache/update-azredisenterprisecachedatabase +https://docs.microsoft.com/powershell/module/az.redisenterprisecache/update-azredisenterprisecachedatabase #> function Update-AzRedisEnterpriseCacheDatabase { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IDatabase])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IDatabase])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -79,14 +79,14 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [System.String] # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. + # The ID of the target subscription. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -96,6 +96,19 @@ param( # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [System.Management.Automation.SwitchParameter] + # Sets whether AOF is enabled. + ${AofPersistenceEnabled}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency])] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.AofFrequency] + # Sets the frequency at which data is written to disk. + ${AofPersistenceFrequency}, + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.Protocol])] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] @@ -121,7 +134,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20201001Preview.IModule[]] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20210301.IModule[]] # Optional set of redis modules to enable in this database - modules can only be added at creation time. # To construct, see NOTES section for MODULE properties and create a hash table. ${Module}, @@ -134,6 +147,19 @@ param( # Defaults to an available port. ${Port}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [System.Management.Automation.SwitchParameter] + # Sets whether RDB is enabled. + ${RdbPersistenceEnabled}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency])] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Support.RdbFrequency] + # Sets the frequency at which a snapshot of the database is created. + ${RdbPersistenceFrequency}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] diff --git a/src/RedisEnterpriseCache/readme.md b/src/RedisEnterpriseCache/readme.md index c4cd4d8e6670..313b8af1f5a0 100644 --- a/src/RedisEnterpriseCache/readme.md +++ b/src/RedisEnterpriseCache/readme.md @@ -17,7 +17,7 @@ This directory contains the PowerShell module for the RedisEnterpriseCache servi This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension. ## Module Requirements -- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 1.8.1 or greater +- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.2.3 or greater ## Authentication AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent. @@ -39,9 +39,9 @@ require: - $(this-folder)/../readme.azure.noprofile.md # lock the commit input-file: - - https://github.com/Azure/azure-rest-api-specs/blob/150da63a09d1cb156cb0b6d8fe575cb9ccf7b6de/specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2020-10-01-preview/redisenterprise.json + - https://github.com/Azure/azure-rest-api-specs/blob/17d2a303b798b1675705efccb577b8f77da8389f/specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2021-03-01/redisenterprise.json -module-version: 0.1.0 +module-version: 1.0.0 title: RedisEnterpriseCache subject-prefix: 'RedisEnterpriseCache' @@ -55,13 +55,44 @@ directive: set: subject: $2 - # Cmdlet renames + # Other cmdlet renames and aliases - where: - verb: Invoke - subject: OperationGetStatus + subject: OperationsStatus set: - verb: Get subject: OperationStatus + - where: + subject: DatabaseKey + set: + subject: Key + - where: + verb: New + subject: Key + set: + alias: + - New-AzRedisEnterpriseCacheDatabaseKey + - New-AzRedisEnterpriseCacheAccessKey + - where: + verb: Get + subject: Key + set: + alias: + - Get-AzRedisEnterpriseCacheDatabaseKey + - Get-AzRedisEnterpriseCacheAccessKey + - where: + verb: Import|Export + subject: (^Database)(.*) + set: + subject: $2 + - where: + verb: Import + subject: ^$ + set: + alias: Import-AzRedisEnterpriseCacheDatabase + - where: + verb: Export + subject: ^$ + set: + alias: Export-AzRedisEnterpriseCacheDatabase # Parameter renames and aliases - where: @@ -80,6 +111,22 @@ directive: set: parameter-name: Sku alias: SkuName + - where: + parameter-name: PersistenceAofEnabled + set: + parameter-name: AofPersistenceEnabled + - where: + parameter-name: PersistenceAofFrequency + set: + parameter-name: AofPersistenceFrequency + - where: + parameter-name: PersistenceRdbEnabled + set: + parameter-name: RdbPersistenceEnabled + - where: + parameter-name: PersistenceRdbFrequency + set: + parameter-name: RdbPersistenceFrequency # Remove unused variants - where: @@ -101,9 +148,14 @@ directive: remove: true - where: verb: New - subject: DatabaseKey + subject: Key variant: ^Regenerate$|ViaIdentity remove: true + - where: + verb: New + subject: ^$|Database + variant: ^Create$|ViaIdentity + remove: true - where: verb: Update subject: ^$|Database @@ -113,12 +165,16 @@ directive: # Hide cmdlets - where: verb: New|Get - subject: ^$|^Database$|^DatabaseKey$ + subject: ^$|^Database$|^Key$ hide: true - where: - verb: Remove|Update|Import|Export + verb: Remove|Update subject: Database hide: true + - where: + verb: Import|Export + subject: ^$ + hide: true - where: subject: PrivateEndpointConnection|PrivateLinkResource hide: true diff --git a/src/RedisEnterpriseCache/test/Az.RedisEnterpriseCache-TestResults.xml b/src/RedisEnterpriseCache/test/Az.RedisEnterpriseCache-TestResults.xml deleted file mode 100644 index 1d519dacb12b..000000000000 --- a/src/RedisEnterpriseCache/test/Az.RedisEnterpriseCache-TestResults.xml +++ /dev/null @@ -1,112 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/RedisEnterpriseCache/test/Export-AzRedisEnterpriseCacheDatabase.Tests.ps1 b/src/RedisEnterpriseCache/test/Export-AzRedisEnterpriseCache.Tests.ps1 similarity index 83% rename from src/RedisEnterpriseCache/test/Export-AzRedisEnterpriseCacheDatabase.Tests.ps1 rename to src/RedisEnterpriseCache/test/Export-AzRedisEnterpriseCache.Tests.ps1 index 059cb5cc0219..40bbc1270203 100644 --- a/src/RedisEnterpriseCache/test/Export-AzRedisEnterpriseCacheDatabase.Tests.ps1 +++ b/src/RedisEnterpriseCache/test/Export-AzRedisEnterpriseCache.Tests.ps1 @@ -3,7 +3,7 @@ if (-Not (Test-Path -Path $loadEnvPath)) { $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' } . ($loadEnvPath) -$TestRecordingFile = Join-Path $PSScriptRoot 'Export-AzRedisEnterpriseCacheDatabase.Recording.json' +$TestRecordingFile = Join-Path $PSScriptRoot 'Export-AzRedisEnterpriseCache.Recording.json' $currentPath = $PSScriptRoot while(-not $mockingPath) { $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File @@ -11,8 +11,8 @@ while(-not $mockingPath) { } . ($mockingPath | Select-Object -First 1).FullName -Describe 'Export-AzRedisEnterpriseCacheDatabase' { - It 'ExportExpanded' -skip { +Describe 'Export-AzRedisEnterpriseCache' { + It 'Export' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } } diff --git a/src/RedisEnterpriseCache/test/Get-AzRedisEnterpriseCache.Recording.json b/src/RedisEnterpriseCache/test/Get-AzRedisEnterpriseCache.Recording.json index 3d9d34796cf7..efeecb36378b 100644 --- a/src/RedisEnterpriseCache/test/Get-AzRedisEnterpriseCache.Recording.json +++ b/src/RedisEnterpriseCache/test/Get-AzRedisEnterpriseCache.Recording.json @@ -1,12 +1,13 @@ { - "Get-AzRedisEnterpriseCache+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test?api-version=2020-10-01-preview+1": { + "Get-AzRedisEnterpriseCache+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1?api-version=2021-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "31" ], - "x-ms-client-request-id": [ "ce753327-cd57-4768-8ace-e390e72669b9" ], + "x-ms-unique-id": [ "43" ], + "x-ms-client-request-id": [ "72472aaf-f8d5-4f59-a680-a113c0bf92e9" ], "CommandName": [ "Az.RedisEnterpriseCache.internal\\Get-AzRedisEnterpriseCache" ], "FullCommandName": [ "Get-AzRedisEnterpriseCache_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -21,32 +22,34 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "72236fb3-f52d-4cb9-89d8-4867c6936a32" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "c2347816-b211-4d2a-a28d-194fde6e63f9" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11973" ], - "x-ms-correlation-request-id": [ "796227f3-d3f5-4749-94e0-a4be666a76f6" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T010349Z:796227f3-d3f5-4749-94e0-a4be666a76f6" ], - "Date": [ "Sat, 05 Dec 2020 01:03:48 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11962" ], + "x-ms-correlation-request-id": [ "b7f401f4-b467-47d0-a721-d4bbb7e1587c" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222131Z:b7f401f4-b467-47d0-a721-d4bbb7e1587c" ], + "Date": [ "Wed, 03 Mar 2021 22:21:30 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "534" ], + "Content-Length": [ "589" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"location\": \"East US\",\r\n \"name\": \"ps-cache-test\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Enterprise_E10\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceState\": \"Running\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n}" + "Content": "{\r\n \"location\": \"East US\",\r\n \"name\": \"ps-cache-test1-dhf6qri1\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Enterprise_E10\",\r\n \"capacity\": 4\r\n },\r\n \"properties\": {\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceState\": \"Running\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n}", + "isContentBase64": false } }, - "Get-AzRedisEnterpriseCache+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test/databases?api-version=2020-10-01-preview+2": { + "Get-AzRedisEnterpriseCache+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1/databases?api-version=2021-03-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test/databases?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1/databases?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "32" ], - "x-ms-client-request-id": [ "a5f9f91e-37da-4dc2-b571-cc7c6a19ebb5" ], + "x-ms-unique-id": [ "44" ], + "x-ms-client-request-id": [ "0397e102-30ff-41ff-a9ea-01a9c918954b" ], "CommandName": [ "Az.RedisEnterpriseCache.internal\\Get-AzRedisEnterpriseCacheDatabase" ], "FullCommandName": [ "Get-AzRedisEnterpriseCacheDatabase_List" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -61,32 +64,34 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "99e1629f-7a85-4691-ab2e-6d70847cc548" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "bd4dbb50-cc20-4319-929f-f85b3909be43" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11972" ], - "x-ms-correlation-request-id": [ "0e870822-6d92-40af-8cae-4b05c0b3555f" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T010349Z:0e870822-6d92-40af-8cae-4b05c0b3555f" ], - "Date": [ "Sat, 05 Dec 2020 01:03:48 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11961" ], + "x-ms-correlation-request-id": [ "3fc66c85-ac01-4a19-9b55-20ce861838ba" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222131Z:3fc66c85-ac01-4a19-9b55-20ce861838ba" ], + "Date": [ "Wed, 03 Mar 2021 22:21:30 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "569" ], + "Content-Length": [ "581" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"default\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test/databases/default\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise/databases\",\r\n \"properties\": {\r\n \"clientProtocol\": \"Encrypted\",\r\n \"port\": 10000,\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceState\": \"Running\",\r\n \"clusteringPolicy\": \"OSSCluster\",\r\n \"evictionPolicy\": \"VolatileLRU\"\r\n }\r\n }\r\n ]\r\n}" + "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"default\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1/databases/default\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise/databases\",\r\n \"properties\": {\r\n \"clientProtocol\": \"Encrypted\",\r\n \"port\": 10000,\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceState\": \"Running\",\r\n \"clusteringPolicy\": \"OSSCluster\",\r\n \"evictionPolicy\": \"VolatileLRU\"\r\n }\r\n }\r\n ]\r\n}", + "isContentBase64": false } }, - "Get-AzRedisEnterpriseCache+[NoContext]+List+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise?api-version=2020-10-01-preview+1": { + "Get-AzRedisEnterpriseCache+[NoContext]+ListByResourceGroup+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise?api-version=2021-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "33" ], - "x-ms-client-request-id": [ "bb7dce9e-2683-451b-bcfc-747529ded21a" ], + "x-ms-unique-id": [ "45" ], + "x-ms-client-request-id": [ "525bb3fb-f791-4022-b15d-ab06fe87e1b8" ], "CommandName": [ "Az.RedisEnterpriseCache.internal\\Get-AzRedisEnterpriseCache" ], "FullCommandName": [ "Get-AzRedisEnterpriseCache_List" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -101,32 +106,34 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "cd392ebd-dd0b-4c06-83aa-fa567db9ca5b" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "532bdb3c-131e-4aaa-b7c9-4f111f90e4b7" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11971" ], - "x-ms-correlation-request-id": [ "420d4edb-91d3-48fc-b853-be29738a7f25" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T010349Z:420d4edb-91d3-48fc-b853-be29738a7f25" ], - "Date": [ "Sat, 05 Dec 2020 01:03:49 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11960" ], + "x-ms-correlation-request-id": [ "7eb6fa43-4960-4d2b-980c-e3fd838adc66" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222132Z:7eb6fa43-4960-4d2b-980c-e3fd838adc66" ], + "Date": [ "Wed, 03 Mar 2021 22:21:31 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "643" ], + "Content-Length": [ "1319" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"value\": [\r\n {\r\n \"location\": \"East US\",\r\n \"name\": \"ps-cache-test\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Enterprise_E10\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceState\": \"Running\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n }\r\n ]\r\n}" + "Content": "{\r\n \"value\": [\r\n {\r\n \"location\": \"East US\",\r\n \"name\": \"ps-cache-test1-dhf6qri1\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Enterprise_E10\",\r\n \"capacity\": 4\r\n },\r\n \"properties\": {\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceState\": \"Running\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"East US\",\r\n \"name\": \"ps-cache-test2-qxv04oyt\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test2-qxv04oyt\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"EnterpriseFlash_F300\",\r\n \"capacity\": 3\r\n },\r\n \"properties\": {\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceState\": \"Running\",\r\n \"privateEndpointConnections\": []\r\n }\r\n }\r\n ]\r\n}", + "isContentBase64": false } }, - "Get-AzRedisEnterpriseCache+[NoContext]+List+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test/databases?api-version=2020-10-01-preview+2": { + "Get-AzRedisEnterpriseCache+[NoContext]+ListByResourceGroup+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1/databases?api-version=2021-03-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test/databases?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1/databases?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "34" ], - "x-ms-client-request-id": [ "7b6bbc0b-d60b-4a9c-a705-90edbe795b48" ], + "x-ms-unique-id": [ "46" ], + "x-ms-client-request-id": [ "7f350cd8-b7b3-4316-aec0-7292d8f63d45" ], "CommandName": [ "Az.RedisEnterpriseCache.internal\\Get-AzRedisEnterpriseCacheDatabase" ], "FullCommandName": [ "Get-AzRedisEnterpriseCacheDatabase_List" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -141,22 +148,233 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "a7e00afd-a52f-48c1-95f1-63472318f25c" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "db907840-a8b6-42a6-b62e-b70af898aaa3" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11970" ], - "x-ms-correlation-request-id": [ "9f7b25c1-a218-48d5-97e9-b09c9207d9b2" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T010350Z:9f7b25c1-a218-48d5-97e9-b09c9207d9b2" ], - "Date": [ "Sat, 05 Dec 2020 01:03:49 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11959" ], + "x-ms-correlation-request-id": [ "c9a543f3-120f-4ff1-a757-c084446a144d" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222132Z:c9a543f3-120f-4ff1-a757-c084446a144d" ], + "Date": [ "Wed, 03 Mar 2021 22:21:31 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "569" ], + "Content-Length": [ "581" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"default\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test/databases/default\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise/databases\",\r\n \"properties\": {\r\n \"clientProtocol\": \"Encrypted\",\r\n \"port\": 10000,\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceState\": \"Running\",\r\n \"clusteringPolicy\": \"OSSCluster\",\r\n \"evictionPolicy\": \"VolatileLRU\"\r\n }\r\n }\r\n ]\r\n}" + "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"default\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1/databases/default\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise/databases\",\r\n \"properties\": {\r\n \"clientProtocol\": \"Encrypted\",\r\n \"port\": 10000,\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceState\": \"Running\",\r\n \"clusteringPolicy\": \"OSSCluster\",\r\n \"evictionPolicy\": \"VolatileLRU\"\r\n }\r\n }\r\n ]\r\n}", + "isContentBase64": false + } + }, + "Get-AzRedisEnterpriseCache+[NoContext]+ListByResourceGroup+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test2-qxv04oyt/databases?api-version=2021-03-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test2-qxv04oyt/databases?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "47" ], + "x-ms-client-request-id": [ "caa7c1e7-dafa-4399-8213-eed1b5282240" ], + "CommandName": [ "Az.RedisEnterpriseCache.internal\\Get-AzRedisEnterpriseCacheDatabase" ], + "FullCommandName": [ "Get-AzRedisEnterpriseCacheDatabase_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "8fd073f0-79f7-435a-8e7a-23316b81ba06" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11958" ], + "x-ms-correlation-request-id": [ "f46e247f-a3ac-40c9-bf91-b1da259ccf2d" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222132Z:f46e247f-a3ac-40c9-bf91-b1da259ccf2d" ], + "Date": [ "Wed, 03 Mar 2021 22:21:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "587" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"default\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test2-qxv04oyt/databases/default\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise/databases\",\r\n \"properties\": {\r\n \"clientProtocol\": \"Encrypted\",\r\n \"port\": 10000,\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceState\": \"Running\",\r\n \"clusteringPolicy\": \"EnterpriseCluster\",\r\n \"evictionPolicy\": \"NoEviction\"\r\n }\r\n }\r\n ]\r\n}", + "isContentBase64": false + } + }, + "Get-AzRedisEnterpriseCache+[NoContext]+ListBySubscriptionId+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/redisEnterprise?api-version=2021-03-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/redisEnterprise?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "48" ], + "x-ms-client-request-id": [ "5dead40f-bae9-44cd-8c36-eaa1072313e5" ], + "CommandName": [ "Az.RedisEnterpriseCache.internal\\Get-AzRedisEnterpriseCache" ], + "FullCommandName": [ "Get-AzRedisEnterpriseCache_List1" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "290a27e7-3dd3-4384-a595-c47569b19780" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11957" ], + "x-ms-correlation-request-id": [ "6cca5285-d637-48bc-9e6b-67ea5c759f7c" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222132Z:6cca5285-d637-48bc-9e6b-67ea5c759f7c" ], + "Date": [ "Wed, 03 Mar 2021 22:21:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2019" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"value\": [\r\n {\r\n \"location\": \"East US\",\r\n \"name\": \"testCLIModulesBloomArgsOnly\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/test4ga2/providers/Microsoft.Cache/redisEnterprise/testCLIModulesBloomArgsOnly\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": {\r\n \"tag1\": \"value1\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Enterprise_E20\",\r\n \"capacity\": 4\r\n },\r\n \"properties\": {\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceState\": \"Running\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"East US\",\r\n \"name\": \"ps-cache-test1-dhf6qri1\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Enterprise_E10\",\r\n \"capacity\": 4\r\n },\r\n \"properties\": {\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceState\": \"Running\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"East US\",\r\n \"name\": \"ps-cache-test2-qxv04oyt\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test2-qxv04oyt\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"EnterpriseFlash_F300\",\r\n \"capacity\": 3\r\n },\r\n \"properties\": {\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceState\": \"Running\",\r\n \"privateEndpointConnections\": []\r\n }\r\n }\r\n ]\r\n}", + "isContentBase64": false + } + }, + "Get-AzRedisEnterpriseCache+[NoContext]+ListBySubscriptionId+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/test4ga2/providers/Microsoft.Cache/redisEnterprise/testCLIModulesBloomArgsOnly/databases?api-version=2021-03-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/test4ga2/providers/Microsoft.Cache/redisEnterprise/testCLIModulesBloomArgsOnly/databases?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "49" ], + "x-ms-client-request-id": [ "f6240432-0b90-4b28-b7b9-e7b57cc1a159" ], + "CommandName": [ "Az.RedisEnterpriseCache.internal\\Get-AzRedisEnterpriseCacheDatabase" ], + "FullCommandName": [ "Get-AzRedisEnterpriseCacheDatabase_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "a1c8c1af-aa2e-40c4-9794-a08971bde484" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11956" ], + "x-ms-correlation-request-id": [ "30675a93-8c4a-4591-b993-e7f8892d689d" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222132Z:30675a93-8c4a-4591-b993-e7f8892d689d" ], + "Date": [ "Wed, 03 Mar 2021 22:21:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "964" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"default\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/test4ga2/providers/Microsoft.Cache/redisEnterprise/testCLIModulesBloomArgsOnly/databases/default\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise/databases\",\r\n \"properties\": {\r\n \"clientProtocol\": \"Encrypted\",\r\n \"port\": 10000,\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceState\": \"Running\",\r\n \"clusteringPolicy\": \"EnterpriseCluster\",\r\n \"evictionPolicy\": \"NoEviction\",\r\n \"modules\": [\r\n {\r\n \"name\": \"RedisBloom\",\r\n \"args\": \"\",\r\n \"version\": \"2.2.4\"\r\n },\r\n {\r\n \"name\": \"RedisTimeSeries\",\r\n \"args\": \"\",\r\n \"version\": \"1.4.7\"\r\n },\r\n {\r\n \"name\": \"RediSearch\",\r\n \"args\": \"\",\r\n \"version\": \"2.0.6\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n}", + "isContentBase64": false + } + }, + "Get-AzRedisEnterpriseCache+[NoContext]+ListBySubscriptionId+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1/databases?api-version=2021-03-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1/databases?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "50" ], + "x-ms-client-request-id": [ "4c78ad42-87e1-453a-94d7-51c240e0303c" ], + "CommandName": [ "Az.RedisEnterpriseCache.internal\\Get-AzRedisEnterpriseCacheDatabase" ], + "FullCommandName": [ "Get-AzRedisEnterpriseCacheDatabase_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "7c5776c4-a2e5-421b-a10d-7ee9212381a2" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11955" ], + "x-ms-correlation-request-id": [ "049f3a6f-a885-47f3-805a-43ff51b05c15" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222133Z:049f3a6f-a885-47f3-805a-43ff51b05c15" ], + "Date": [ "Wed, 03 Mar 2021 22:21:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "581" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"default\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1/databases/default\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise/databases\",\r\n \"properties\": {\r\n \"clientProtocol\": \"Encrypted\",\r\n \"port\": 10000,\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceState\": \"Running\",\r\n \"clusteringPolicy\": \"OSSCluster\",\r\n \"evictionPolicy\": \"VolatileLRU\"\r\n }\r\n }\r\n ]\r\n}", + "isContentBase64": false + } + }, + "Get-AzRedisEnterpriseCache+[NoContext]+ListBySubscriptionId+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test2-qxv04oyt/databases?api-version=2021-03-01+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test2-qxv04oyt/databases?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "51" ], + "x-ms-client-request-id": [ "5dcb19ef-5314-4880-813c-f6380cbe2f0a" ], + "CommandName": [ "Az.RedisEnterpriseCache.internal\\Get-AzRedisEnterpriseCacheDatabase" ], + "FullCommandName": [ "Get-AzRedisEnterpriseCacheDatabase_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "810d4989-85c8-4b42-a408-bf6b2e7d643c" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11954" ], + "x-ms-correlation-request-id": [ "56c10e29-d588-4549-b1d0-84dd741c9a70" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222133Z:56c10e29-d588-4549-b1d0-84dd741c9a70" ], + "Date": [ "Wed, 03 Mar 2021 22:21:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "587" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"default\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test2-qxv04oyt/databases/default\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise/databases\",\r\n \"properties\": {\r\n \"clientProtocol\": \"Encrypted\",\r\n \"port\": 10000,\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceState\": \"Running\",\r\n \"clusteringPolicy\": \"EnterpriseCluster\",\r\n \"evictionPolicy\": \"NoEviction\"\r\n }\r\n }\r\n ]\r\n}", + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/RedisEnterpriseCache/test/Get-AzRedisEnterpriseCache.Tests.ps1 b/src/RedisEnterpriseCache/test/Get-AzRedisEnterpriseCache.Tests.ps1 index e23b1b60ef4b..31c18af003e1 100644 --- a/src/RedisEnterpriseCache/test/Get-AzRedisEnterpriseCache.Tests.ps1 +++ b/src/RedisEnterpriseCache/test/Get-AzRedisEnterpriseCache.Tests.ps1 @@ -22,20 +22,32 @@ Describe 'Get-AzRedisEnterpriseCache' { $cache.Location | Should -Be $env.Location $cache.Type | Should -Be "Microsoft.Cache/redisEnterprise" $databaseName = "default" + $cache.Database.Count | Should -Be 1 $cache.Database[$databaseName].Name | Should -Be $databaseName $cache.Database[$databaseName].Type | Should -Be "Microsoft.Cache/redisEnterprise/databases" } - It 'List' { + It 'ListByResourceGroup' { $splat = @{ ResourceGroupName = $env.ResourceGroupName } - $cache = Get-AzRedisEnterpriseCache @splat - $cache.Name | Should -Be $env.ClusterName - $cache.Location | Should -Be $env.Location - $cache.Type | Should -Be "Microsoft.Cache/redisEnterprise" + $caches = Get-AzRedisEnterpriseCache @splat $databaseName = "default" - $cache.Database[$databaseName].Name | Should -Be $databaseName - $cache.Database[$databaseName].Type | Should -Be "Microsoft.Cache/redisEnterprise/databases" + + $caches[0].Location | Should -Be $env.Location + $caches[0].Type | Should -Be "Microsoft.Cache/redisEnterprise" + $caches[0].Database.Count | Should -Be 1 + $caches[0].Database[$databaseName].Name | Should -Be $databaseName + $caches[0].Database[$databaseName].Type | Should -Be "Microsoft.Cache/redisEnterprise/databases" + + $caches[1].Location | Should -Be $env.Location + $caches[1].Type | Should -Be "Microsoft.Cache/redisEnterprise" + $caches[1].Database.Count | Should -Be 1 + $caches[1].Database[$databaseName].Name | Should -Be $databaseName + $caches[1].Database[$databaseName].Type | Should -Be "Microsoft.Cache/redisEnterprise/databases" + } + + It 'ListBySubscriptionId' { + $null = Get-AzRedisEnterpriseCache } } diff --git a/src/RedisEnterpriseCache/test/Get-AzRedisEnterpriseCacheDatabase.Recording.json b/src/RedisEnterpriseCache/test/Get-AzRedisEnterpriseCacheDatabase.Recording.json index 4432ad985085..8d68e315ff9c 100644 --- a/src/RedisEnterpriseCache/test/Get-AzRedisEnterpriseCacheDatabase.Recording.json +++ b/src/RedisEnterpriseCache/test/Get-AzRedisEnterpriseCacheDatabase.Recording.json @@ -1,12 +1,13 @@ { - "Get-AzRedisEnterpriseCacheDatabase+[NoContext]+List+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test/databases/default?api-version=2020-10-01-preview+1": { + "Get-AzRedisEnterpriseCacheDatabase+[NoContext]+List+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1/databases/default?api-version=2021-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test/databases/default?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1/databases/default?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "35" ], - "x-ms-client-request-id": [ "6ec0dd2e-e34f-4024-b22f-a30984e97368" ], + "x-ms-unique-id": [ "52" ], + "x-ms-client-request-id": [ "556eec32-cf30-4424-9add-20ef18f14f91" ], "CommandName": [ "Az.RedisEnterpriseCache.internal\\Get-AzRedisEnterpriseCacheDatabase" ], "FullCommandName": [ "Get-AzRedisEnterpriseCacheDatabase_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -21,22 +22,65 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "e24d0972-37ed-433a-b155-61d18c699eff" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "f3b4fb1e-13e3-4af4-b356-5d2bb5aedf11" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11969" ], - "x-ms-correlation-request-id": [ "812a921d-8e3f-4719-9476-a3474d85279f" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T010350Z:812a921d-8e3f-4719-9476-a3474d85279f" ], - "Date": [ "Sat, 05 Dec 2020 01:03:49 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11953" ], + "x-ms-correlation-request-id": [ "6ea144cf-3252-4472-845e-81921baa088c" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222133Z:6ea144cf-3252-4472-845e-81921baa088c" ], + "Date": [ "Wed, 03 Mar 2021 22:21:32 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "424" ], + "Content-Length": [ "436" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"name\":\"default\",\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test/databases/default\",\"type\":\"Microsoft.Cache/redisEnterprise/databases\",\"properties\":{\"clientProtocol\":\"Encrypted\",\"port\":10000,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"clusteringPolicy\":\"OSSCluster\",\"evictionPolicy\":\"VolatileLRU\"}}" + "Content": "{\"name\":\"default\",\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1/databases/default\",\"type\":\"Microsoft.Cache/redisEnterprise/databases\",\"properties\":{\"clientProtocol\":\"Encrypted\",\"port\":10000,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"clusteringPolicy\":\"OSSCluster\",\"evictionPolicy\":\"VolatileLRU\"}}", + "isContentBase64": false + } + }, + "Get-AzRedisEnterpriseCacheDatabase+[NoContext]+List+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test2-qxv04oyt/databases/default?api-version=2021-03-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test2-qxv04oyt/databases/default?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "53" ], + "x-ms-client-request-id": [ "03e76038-1c77-4bac-9eea-9bafb1b1d02b" ], + "CommandName": [ "Az.RedisEnterpriseCache.internal\\Get-AzRedisEnterpriseCacheDatabase" ], + "FullCommandName": [ "Get-AzRedisEnterpriseCacheDatabase_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "114d85b2-19c4-42ff-bb73-0004bba17709" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11952" ], + "x-ms-correlation-request-id": [ "52a2541b-d79b-4da2-8ad4-1859cbd7cd87" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222133Z:52a2541b-d79b-4da2-8ad4-1859cbd7cd87" ], + "Date": [ "Wed, 03 Mar 2021 22:21:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "442" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"default\",\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test2-qxv04oyt/databases/default\",\"type\":\"Microsoft.Cache/redisEnterprise/databases\",\"properties\":{\"clientProtocol\":\"Encrypted\",\"port\":10000,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"clusteringPolicy\":\"EnterpriseCluster\",\"evictionPolicy\":\"NoEviction\"}}", + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/RedisEnterpriseCache/test/Get-AzRedisEnterpriseCacheDatabase.Tests.ps1 b/src/RedisEnterpriseCache/test/Get-AzRedisEnterpriseCacheDatabase.Tests.ps1 index fef5132548ff..407562288605 100644 --- a/src/RedisEnterpriseCache/test/Get-AzRedisEnterpriseCacheDatabase.Tests.ps1 +++ b/src/RedisEnterpriseCache/test/Get-AzRedisEnterpriseCacheDatabase.Tests.ps1 @@ -18,7 +18,17 @@ Describe 'Get-AzRedisEnterpriseCacheDatabase' { ResourceGroupName = $env.ResourceGroupName } $databases = Get-AzRedisEnterpriseCacheDatabase @splat + $databases.Count | Should -Be 1 $databases[0].Name | Should -Be "default" $databases[0].Type | Should -Be "Microsoft.Cache/redisEnterprise/databases" + + $splat2 = @{ + Name = $env.ClusterName2 + ResourceGroupName = $env.ResourceGroupName + } + $databases2 = Get-AzRedisEnterpriseCacheDatabase @splat2 + $databases2.Count | Should -Be 1 + $databases2[0].Name | Should -Be "default" + $databases2[0].Type | Should -Be "Microsoft.Cache/redisEnterprise/databases" } } diff --git a/src/RedisEnterpriseCache/test/Get-AzRedisEnterpriseCacheDatabaseKey.Recording.json b/src/RedisEnterpriseCache/test/Get-AzRedisEnterpriseCacheDatabaseKey.Recording.json deleted file mode 100644 index 81cbd441e805..000000000000 --- a/src/RedisEnterpriseCache/test/Get-AzRedisEnterpriseCacheDatabaseKey.Recording.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "Get-AzRedisEnterpriseCacheDatabaseKey+[NoContext]+List+$POST+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test/databases/default/listKeys?api-version=2020-10-01-preview+1": { - "Request": { - "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test/databases/default/listKeys?api-version=2020-10-01-preview", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "36" ], - "x-ms-client-request-id": [ "694f82b3-904b-47ec-891c-7bef51d024df" ], - "CommandName": [ "Az.RedisEnterpriseCache.internal\\Get-AzRedisEnterpriseCacheDatabaseKey" ], - "FullCommandName": [ "Get-AzRedisEnterpriseCacheDatabaseKey_List" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "b0c531de-8295-4df6-9eca-b849fa0a114c" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], - "x-ms-correlation-request-id": [ "5e5dbf20-3326-437f-9c0d-4b337742d7da" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T010350Z:5e5dbf20-3326-437f-9c0d-4b337742d7da" ], - "Date": [ "Sat, 05 Dec 2020 01:03:50 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "68" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\r\n \"primaryKey\": \"TbLFC0DybtETXlDS6NKn3gZksF2D8kBpEfn8tuIKi+g=\"\r\n}" - } - } -} \ No newline at end of file diff --git a/src/RedisEnterpriseCache/test/Get-AzRedisEnterpriseCacheKey.Recording.json b/src/RedisEnterpriseCache/test/Get-AzRedisEnterpriseCacheKey.Recording.json new file mode 100644 index 000000000000..161553e2f759 --- /dev/null +++ b/src/RedisEnterpriseCache/test/Get-AzRedisEnterpriseCacheKey.Recording.json @@ -0,0 +1,44 @@ +{ + "Get-AzRedisEnterpriseCacheKey+[NoContext]+List+$POST+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1/databases/default/listKeys?api-version=2021-03-01+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1/databases/default/listKeys?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "54" ], + "x-ms-client-request-id": [ "9de8afe6-9092-4ea8-8146-8a007b8bef01" ], + "CommandName": [ "Az.RedisEnterpriseCache.internal\\Get-AzRedisEnterpriseCacheKey" ], + "FullCommandName": [ "Get-AzRedisEnterpriseCacheKey_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "141d19f2-e0b7-464e-99f7-97af9fe636e1" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], + "x-ms-correlation-request-id": [ "8b566145-85de-4241-b89d-37bf5e50e2b2" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222134Z:8b566145-85de-4241-b89d-37bf5e50e2b2" ], + "Date": [ "Wed, 03 Mar 2021 22:21:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "135" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"primaryKey\": \"primary-key\",\r\n \"secondaryKey\": \"secondary-key\"\r\n}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/RedisEnterpriseCache/test/Get-AzRedisEnterpriseCacheDatabaseKey.Tests.ps1 b/src/RedisEnterpriseCache/test/Get-AzRedisEnterpriseCacheKey.Tests.ps1 similarity index 84% rename from src/RedisEnterpriseCache/test/Get-AzRedisEnterpriseCacheDatabaseKey.Tests.ps1 rename to src/RedisEnterpriseCache/test/Get-AzRedisEnterpriseCacheKey.Tests.ps1 index bb893ca1302d..fcd6a58b23ad 100644 --- a/src/RedisEnterpriseCache/test/Get-AzRedisEnterpriseCacheDatabaseKey.Tests.ps1 +++ b/src/RedisEnterpriseCache/test/Get-AzRedisEnterpriseCacheKey.Tests.ps1 @@ -3,7 +3,7 @@ if (-Not (Test-Path -Path $loadEnvPath)) { $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' } . ($loadEnvPath) -$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzRedisEnterpriseCacheDatabaseKey.Recording.json' +$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzRedisEnterpriseCacheKey.Recording.json' $currentPath = $PSScriptRoot while(-not $mockingPath) { $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File @@ -11,13 +11,13 @@ while(-not $mockingPath) { } . ($mockingPath | Select-Object -First 1).FullName -Describe 'Get-AzRedisEnterpriseCacheDatabaseKey' { +Describe 'Get-AzRedisEnterpriseCacheKey' { It 'List' { $splat = @{ Name = $env.ClusterName ResourceGroupName = $env.ResourceGroupName } - $databaseKeys = Get-AzRedisEnterpriseCacheDatabaseKey @splat + $databaseKeys = Get-AzRedisEnterpriseCacheKey @splat $databaseKeys.PrimaryKey | Should -Not -Be $null # TODO: uncomment the following line when listKeys supports returning the SecondaryKey #$databaseKeys.SecondaryKey | Should -Not -Be $null diff --git a/src/RedisEnterpriseCache/test/Import-AzRedisEnterpriseCacheDatabase.Tests.ps1 b/src/RedisEnterpriseCache/test/Import-AzRedisEnterpriseCache.Tests.ps1 similarity index 83% rename from src/RedisEnterpriseCache/test/Import-AzRedisEnterpriseCacheDatabase.Tests.ps1 rename to src/RedisEnterpriseCache/test/Import-AzRedisEnterpriseCache.Tests.ps1 index afa23773b082..24bce74c48e8 100644 --- a/src/RedisEnterpriseCache/test/Import-AzRedisEnterpriseCacheDatabase.Tests.ps1 +++ b/src/RedisEnterpriseCache/test/Import-AzRedisEnterpriseCache.Tests.ps1 @@ -3,7 +3,7 @@ if (-Not (Test-Path -Path $loadEnvPath)) { $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' } . ($loadEnvPath) -$TestRecordingFile = Join-Path $PSScriptRoot 'Import-AzRedisEnterpriseCacheDatabase.Recording.json' +$TestRecordingFile = Join-Path $PSScriptRoot 'Import-AzRedisEnterpriseCache.Recording.json' $currentPath = $PSScriptRoot while(-not $mockingPath) { $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File @@ -11,8 +11,8 @@ while(-not $mockingPath) { } . ($mockingPath | Select-Object -First 1).FullName -Describe 'Import-AzRedisEnterpriseCacheDatabase' { - It 'ImportExpanded' -skip { +Describe 'Import-AzRedisEnterpriseCache' { + It 'Import' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } } diff --git a/src/RedisEnterpriseCache/test/New-AzRedisEnterpriseCache.Recording.json b/src/RedisEnterpriseCache/test/New-AzRedisEnterpriseCache.Recording.json index 5cdd8b9e7444..a90f5d01521b 100644 --- a/src/RedisEnterpriseCache/test/New-AzRedisEnterpriseCache.Recording.json +++ b/src/RedisEnterpriseCache/test/New-AzRedisEnterpriseCache.Recording.json @@ -1,14 +1,15 @@ { - "New-AzRedisEnterpriseCache+[NoContext]+Create+$PUT+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test?api-version=2020-10-01-preview+1": { + "New-AzRedisEnterpriseCache+[NoContext]+Create+$PUT+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1?api-version=2021-03-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test?api-version=2020-10-01-preview", - "Content": "{\r\n \"location\": \"East US\",\r\n \"sku\": {\r\n \"name\": \"Enterprise_E10\",\r\n \"capacity\": 2\r\n },\r\n \"zones\": [ \"1\", \"2\", \"3\" ]\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1?api-version=2021-03-01", + "Content": "{\r\n \"location\": \"East US\",\r\n \"sku\": {\r\n \"name\": \"Enterprise_E10\",\r\n \"capacity\": 4\r\n },\r\n \"properties\": {\r\n \"minimumTlsVersion\": \"1.2\"\r\n },\r\n \"zones\": [ \"1\", \"2\", \"3\" ]\r\n}", + "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "128" ] + "Content-Length": [ "185" ] } }, "Response": { @@ -16,35 +17,37 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test?api-version=2020-10-01-preview" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview" ], - "x-ms-request-id": [ "a8d6a791-9276-470a-b87c-c63356b10109" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "Location": [ "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1?api-version=2021-03-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114?api-version=2021-03-01" ], + "x-ms-request-id": [ "1cb28bd3-00ed-4e51-bdf5-3aacd822ec03" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], - "x-ms-correlation-request-id": [ "982e2dd6-c33d-4be9-b51c-22827930af6c" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T005208Z:982e2dd6-c33d-4be9-b51c-22827930af6c" ], - "Date": [ "Sat, 05 Dec 2020 00:52:07 GMT" ] + "x-ms-correlation-request-id": [ "2371c770-9e59-48fb-88bb-3268ed2d4564" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T220546Z:2371c770-9e59-48fb-88bb-3268ed2d4564" ], + "Date": [ "Wed, 03 Mar 2021 22:05:46 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "497" ], + "Content-Length": [ "552" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"location\": \"East US\",\r\n \"name\": \"ps-cache-test\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": null,\r\n \"sku\": {\r\n \"name\": \"Enterprise_E10\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"resourceState\": \"Creating\"\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n}" + "Content": "{\r\n \"location\": \"East US\",\r\n \"name\": \"ps-cache-test1-dhf6qri1\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": null,\r\n \"sku\": {\r\n \"name\": \"Enterprise_E10\",\r\n \"capacity\": 4\r\n },\r\n \"properties\": {\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"provisioningState\": \"Creating\",\r\n \"resourceState\": \"Creating\"\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n}", + "isContentBase64": false } }, - "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview+2": { + "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114?api-version=2021-03-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "3" ], - "x-ms-client-request-id": [ "ce3d1e25-99bb-42ed-91d5-77874778baeb" ], + "x-ms-client-request-id": [ "370232e8-f622-480e-a751-8e519a1ff5da" ], "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCache" ], "FullCommandName": [ "New-AzRedisEnterpriseCache_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -58,33 +61,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "76790989-e674-44ed-980b-72f987b3c7c9" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "f1e8a7da-f82a-49b2-8af7-0c361476276b" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], - "x-ms-correlation-request-id": [ "285f6b48-c272-48b0-8a4b-c2d67d3e9a55" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T005238Z:285f6b48-c272-48b0-8a4b-c2d67d3e9a55" ], - "Date": [ "Sat, 05 Dec 2020 00:52:38 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "22beb7f3-3343-4f79-83e2-8bc82c939e87" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T220616Z:22beb7f3-3343-4f79-83e2-8bc82c939e87" ], + "Date": [ "Wed, 03 Mar 2021 22:06:16 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "319" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"name\":\"60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T00:52:07.155048+00:00\",\"endTime\":\"2020-12-05T00:52:09.6640327+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114\",\"name\":\"eb479067-901a-4448-9971-a6c488da3114\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:05:45.6724881+00:00\",\"endTime\":\"2021-03-03T22:05:46.2030675+00:00\"}", + "isContentBase64": false } }, - "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview+3": { + "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114?api-version=2021-03-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "4" ], - "x-ms-client-request-id": [ "ce3d1e25-99bb-42ed-91d5-77874778baeb" ], + "x-ms-client-request-id": [ "370232e8-f622-480e-a751-8e519a1ff5da" ], "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCache" ], "FullCommandName": [ "New-AzRedisEnterpriseCache_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -98,33 +103,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "47fcc5ed-74d2-4935-9440-ff5a457de691" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "6e4e8747-d601-4a6f-8eb9-d88a07fa1b19" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], - "x-ms-correlation-request-id": [ "5366b252-5d49-4686-91d5-42b948b015e1" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T005308Z:5366b252-5d49-4686-91d5-42b948b015e1" ], - "Date": [ "Sat, 05 Dec 2020 00:53:07 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "0b025be2-b96b-4ee8-9cd8-4b8faf338f03" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T220646Z:0b025be2-b96b-4ee8-9cd8-4b8faf338f03" ], + "Date": [ "Wed, 03 Mar 2021 22:06:46 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "319" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"name\":\"60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T00:52:07.155048+00:00\",\"endTime\":\"2020-12-05T00:52:09.6640327+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114\",\"name\":\"eb479067-901a-4448-9971-a6c488da3114\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:05:45.6724881+00:00\",\"endTime\":\"2021-03-03T22:05:46.2030675+00:00\"}", + "isContentBase64": false } }, - "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview+4": { + "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114?api-version=2021-03-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "5" ], - "x-ms-client-request-id": [ "ce3d1e25-99bb-42ed-91d5-77874778baeb" ], + "x-ms-client-request-id": [ "370232e8-f622-480e-a751-8e519a1ff5da" ], "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCache" ], "FullCommandName": [ "New-AzRedisEnterpriseCache_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -138,33 +145,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "b128a3e2-3dbf-442a-9373-c819e6f26459" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "12f85597-841e-4f4c-bd62-06d2e60a8a32" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], - "x-ms-correlation-request-id": [ "d8beb8e3-f83d-4d03-90aa-1e70dfaa8815" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T005338Z:d8beb8e3-f83d-4d03-90aa-1e70dfaa8815" ], - "Date": [ "Sat, 05 Dec 2020 00:53:38 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "034bb655-13ff-4642-a98f-5e791f48e6b8" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T220717Z:034bb655-13ff-4642-a98f-5e791f48e6b8" ], + "Date": [ "Wed, 03 Mar 2021 22:07:16 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "319" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"name\":\"60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T00:52:07.155048+00:00\",\"endTime\":\"2020-12-05T00:52:09.6640327+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114\",\"name\":\"eb479067-901a-4448-9971-a6c488da3114\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:05:45.6724881+00:00\",\"endTime\":\"2021-03-03T22:05:46.2030675+00:00\"}", + "isContentBase64": false } }, - "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview+5": { + "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114?api-version=2021-03-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "6" ], - "x-ms-client-request-id": [ "ce3d1e25-99bb-42ed-91d5-77874778baeb" ], + "x-ms-client-request-id": [ "370232e8-f622-480e-a751-8e519a1ff5da" ], "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCache" ], "FullCommandName": [ "New-AzRedisEnterpriseCache_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -178,33 +187,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "67c7cb14-5e00-41ec-b24b-90b92ec33d07" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "fe98f394-fda2-442b-8f56-0d52548bb060" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], - "x-ms-correlation-request-id": [ "454cdd88-0acb-4c28-9f60-be76e30abd34" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T005408Z:454cdd88-0acb-4c28-9f60-be76e30abd34" ], - "Date": [ "Sat, 05 Dec 2020 00:54:08 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "3e326064-1536-4f05-a5fd-a4c3f67ac77d" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T220747Z:3e326064-1536-4f05-a5fd-a4c3f67ac77d" ], + "Date": [ "Wed, 03 Mar 2021 22:07:47 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "319" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"name\":\"60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T00:52:07.155048+00:00\",\"endTime\":\"2020-12-05T00:52:09.6640327+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114\",\"name\":\"eb479067-901a-4448-9971-a6c488da3114\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:05:45.6724881+00:00\",\"endTime\":\"2021-03-03T22:05:46.2030675+00:00\"}", + "isContentBase64": false } }, - "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview+6": { + "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114?api-version=2021-03-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "7" ], - "x-ms-client-request-id": [ "ce3d1e25-99bb-42ed-91d5-77874778baeb" ], + "x-ms-client-request-id": [ "370232e8-f622-480e-a751-8e519a1ff5da" ], "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCache" ], "FullCommandName": [ "New-AzRedisEnterpriseCache_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -218,33 +229,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "b12bb431-7628-425d-89a6-9137d8b4d71a" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "56ddf947-0d39-4f5a-9441-e0fa71ef4d59" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], - "x-ms-correlation-request-id": [ "fdc86638-527f-4508-a10b-e944e80a0c09" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T005438Z:fdc86638-527f-4508-a10b-e944e80a0c09" ], - "Date": [ "Sat, 05 Dec 2020 00:54:38 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "1ac36f6d-9715-4da1-96c5-b978439219fa" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T220817Z:1ac36f6d-9715-4da1-96c5-b978439219fa" ], + "Date": [ "Wed, 03 Mar 2021 22:08:17 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "319" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"name\":\"60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T00:52:07.155048+00:00\",\"endTime\":\"2020-12-05T00:52:09.6640327+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114\",\"name\":\"eb479067-901a-4448-9971-a6c488da3114\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:05:45.6724881+00:00\",\"endTime\":\"2021-03-03T22:05:46.2030675+00:00\"}", + "isContentBase64": false } }, - "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview+7": { + "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114?api-version=2021-03-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "8" ], - "x-ms-client-request-id": [ "ce3d1e25-99bb-42ed-91d5-77874778baeb" ], + "x-ms-client-request-id": [ "370232e8-f622-480e-a751-8e519a1ff5da" ], "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCache" ], "FullCommandName": [ "New-AzRedisEnterpriseCache_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -258,33 +271,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "f9ae8a96-f530-452c-841b-fd4e80bcbda3" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "002370c8-4fea-4469-add6-2d69015accdf" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], - "x-ms-correlation-request-id": [ "746cc3d1-4d0f-4bc4-bd1d-ee8edf9f7f62" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T005509Z:746cc3d1-4d0f-4bc4-bd1d-ee8edf9f7f62" ], - "Date": [ "Sat, 05 Dec 2020 00:55:08 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "f92234ac-ed7d-478f-b1af-642f5f0fa526" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T220847Z:f92234ac-ed7d-478f-b1af-642f5f0fa526" ], + "Date": [ "Wed, 03 Mar 2021 22:08:47 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "319" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"name\":\"60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T00:52:07.155048+00:00\",\"endTime\":\"2020-12-05T00:52:09.6640327+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114\",\"name\":\"eb479067-901a-4448-9971-a6c488da3114\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:05:45.6724881+00:00\",\"endTime\":\"2021-03-03T22:05:46.2030675+00:00\"}", + "isContentBase64": false } }, - "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview+8": { + "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114?api-version=2021-03-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "9" ], - "x-ms-client-request-id": [ "ce3d1e25-99bb-42ed-91d5-77874778baeb" ], + "x-ms-client-request-id": [ "370232e8-f622-480e-a751-8e519a1ff5da" ], "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCache" ], "FullCommandName": [ "New-AzRedisEnterpriseCache_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -298,33 +313,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "b21cbf12-9c6c-4236-a4e1-fa034025cbe5" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "ba73a78c-45b4-47c9-93b4-89a1c973dc9c" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], - "x-ms-correlation-request-id": [ "e9fd669e-ea3d-496e-9fc9-7be9965e54a8" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T005539Z:e9fd669e-ea3d-496e-9fc9-7be9965e54a8" ], - "Date": [ "Sat, 05 Dec 2020 00:55:38 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "40938891-fa7a-4fe2-9a53-5a6b08e7efcc" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T220917Z:40938891-fa7a-4fe2-9a53-5a6b08e7efcc" ], + "Date": [ "Wed, 03 Mar 2021 22:09:17 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "319" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"name\":\"60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T00:52:07.155048+00:00\",\"endTime\":\"2020-12-05T00:52:09.6640327+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114\",\"name\":\"eb479067-901a-4448-9971-a6c488da3114\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:05:45.6724881+00:00\",\"endTime\":\"2021-03-03T22:05:46.2030675+00:00\"}", + "isContentBase64": false } }, - "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview+9": { + "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114?api-version=2021-03-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "10" ], - "x-ms-client-request-id": [ "ce3d1e25-99bb-42ed-91d5-77874778baeb" ], + "x-ms-client-request-id": [ "370232e8-f622-480e-a751-8e519a1ff5da" ], "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCache" ], "FullCommandName": [ "New-AzRedisEnterpriseCache_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -338,33 +355,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "c7425d46-2d7a-4ca2-ac94-dc8733e4f24a" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "67ec92e0-e56e-4cf5-9ebf-00fca2157f19" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], - "x-ms-correlation-request-id": [ "c443bd0a-6864-45bd-a426-77c999e5a0cd" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T005609Z:c443bd0a-6864-45bd-a426-77c999e5a0cd" ], - "Date": [ "Sat, 05 Dec 2020 00:56:08 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "d29a59a6-5248-42ea-8a41-765b8243e509" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T220948Z:d29a59a6-5248-42ea-8a41-765b8243e509" ], + "Date": [ "Wed, 03 Mar 2021 22:09:48 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "319" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"name\":\"60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T00:52:07.155048+00:00\",\"endTime\":\"2020-12-05T00:52:09.6640327+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114\",\"name\":\"eb479067-901a-4448-9971-a6c488da3114\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:05:45.6724881+00:00\",\"endTime\":\"2021-03-03T22:05:46.2030675+00:00\"}", + "isContentBase64": false } }, - "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview+10": { + "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114?api-version=2021-03-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "11" ], - "x-ms-client-request-id": [ "ce3d1e25-99bb-42ed-91d5-77874778baeb" ], + "x-ms-client-request-id": [ "370232e8-f622-480e-a751-8e519a1ff5da" ], "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCache" ], "FullCommandName": [ "New-AzRedisEnterpriseCache_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -378,33 +397,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "d6899df6-70f6-4ee5-bb9e-3747fb7b8864" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "687de84c-b4c4-4b26-9154-9d884f231d39" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], - "x-ms-correlation-request-id": [ "14a464f7-1418-4134-802d-bd1214bfe1b9" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T005639Z:14a464f7-1418-4134-802d-bd1214bfe1b9" ], - "Date": [ "Sat, 05 Dec 2020 00:56:38 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "f43d2cd3-5491-4520-9586-8d78188dfa0d" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T221018Z:f43d2cd3-5491-4520-9586-8d78188dfa0d" ], + "Date": [ "Wed, 03 Mar 2021 22:10:18 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "319" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"name\":\"60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T00:52:07.155048+00:00\",\"endTime\":\"2020-12-05T00:52:09.6640327+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114\",\"name\":\"eb479067-901a-4448-9971-a6c488da3114\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:05:45.6724881+00:00\",\"endTime\":\"2021-03-03T22:05:46.2030675+00:00\"}", + "isContentBase64": false } }, - "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview+11": { + "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114?api-version=2021-03-01+11": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "12" ], - "x-ms-client-request-id": [ "ce3d1e25-99bb-42ed-91d5-77874778baeb" ], + "x-ms-client-request-id": [ "370232e8-f622-480e-a751-8e519a1ff5da" ], "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCache" ], "FullCommandName": [ "New-AzRedisEnterpriseCache_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -418,33 +439,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "15e08381-367b-4199-93c8-20769bc5c713" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "b1bbe12d-5221-45f0-a8e7-bdb12d5758d0" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-correlation-request-id": [ "e0d23edc-5716-4fd4-829c-b89ff73c44d6" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T005709Z:e0d23edc-5716-4fd4-829c-b89ff73c44d6" ], - "Date": [ "Sat, 05 Dec 2020 00:57:09 GMT" ] + "x-ms-correlation-request-id": [ "b57bfb67-3b0d-4037-821a-0f7bffcd3e73" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T221048Z:b57bfb67-3b0d-4037-821a-0f7bffcd3e73" ], + "Date": [ "Wed, 03 Mar 2021 22:10:48 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "319" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"name\":\"60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T00:52:07.155048+00:00\",\"endTime\":\"2020-12-05T00:52:09.6640327+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114\",\"name\":\"eb479067-901a-4448-9971-a6c488da3114\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:05:45.6724881+00:00\",\"endTime\":\"2021-03-03T22:05:46.2030675+00:00\"}", + "isContentBase64": false } }, - "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview+12": { + "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114?api-version=2021-03-01+12": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "13" ], - "x-ms-client-request-id": [ "ce3d1e25-99bb-42ed-91d5-77874778baeb" ], + "x-ms-client-request-id": [ "370232e8-f622-480e-a751-8e519a1ff5da" ], "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCache" ], "FullCommandName": [ "New-AzRedisEnterpriseCache_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -458,33 +481,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "41fbc825-a630-43fa-bcd3-00b49cc654b3" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "dd1f5cdc-b460-4d67-b5c1-6fbd6693e209" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], - "x-ms-correlation-request-id": [ "60aee89f-c9a7-4c6f-87de-95370f8eea33" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T005739Z:60aee89f-c9a7-4c6f-87de-95370f8eea33" ], - "Date": [ "Sat, 05 Dec 2020 00:57:39 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-correlation-request-id": [ "ce9e34d7-e387-4ad5-8b2a-9cafab986016" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T221119Z:ce9e34d7-e387-4ad5-8b2a-9cafab986016" ], + "Date": [ "Wed, 03 Mar 2021 22:11:18 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "319" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"name\":\"60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T00:52:07.155048+00:00\",\"endTime\":\"2020-12-05T00:52:09.6640327+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114\",\"name\":\"eb479067-901a-4448-9971-a6c488da3114\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:05:45.6724881+00:00\",\"endTime\":\"2021-03-03T22:05:46.2030675+00:00\"}", + "isContentBase64": false } }, - "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview+13": { + "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114?api-version=2021-03-01+13": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "14" ], - "x-ms-client-request-id": [ "ce3d1e25-99bb-42ed-91d5-77874778baeb" ], + "x-ms-client-request-id": [ "370232e8-f622-480e-a751-8e519a1ff5da" ], "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCache" ], "FullCommandName": [ "New-AzRedisEnterpriseCache_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -498,33 +523,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "467793ca-0dc2-45fd-8809-b6511c0ec11b" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "3280da2b-55e5-4b16-9387-f443c1d9b261" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], - "x-ms-correlation-request-id": [ "3713fc4a-0a28-4733-8441-1b6572450c0d" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T005809Z:3713fc4a-0a28-4733-8441-1b6572450c0d" ], - "Date": [ "Sat, 05 Dec 2020 00:58:09 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-correlation-request-id": [ "bbb7c71a-e023-4d22-9b52-3489c5dace52" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T221149Z:bbb7c71a-e023-4d22-9b52-3489c5dace52" ], + "Date": [ "Wed, 03 Mar 2021 22:11:49 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "319" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"name\":\"60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T00:52:07.155048+00:00\",\"endTime\":\"2020-12-05T00:52:09.6640327+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114\",\"name\":\"eb479067-901a-4448-9971-a6c488da3114\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:05:45.6724881+00:00\",\"endTime\":\"2021-03-03T22:05:46.2030675+00:00\"}", + "isContentBase64": false } }, - "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview+14": { + "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114?api-version=2021-03-01+14": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "15" ], - "x-ms-client-request-id": [ "ce3d1e25-99bb-42ed-91d5-77874778baeb" ], + "x-ms-client-request-id": [ "370232e8-f622-480e-a751-8e519a1ff5da" ], "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCache" ], "FullCommandName": [ "New-AzRedisEnterpriseCache_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -538,33 +565,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "3dab12fd-a700-4cc7-8315-ecca0b8ee000" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "580e6278-40ef-42ec-a556-6858e35d2287" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], - "x-ms-correlation-request-id": [ "1dff3633-78b1-4e24-b063-d3c26eaa790f" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T005840Z:1dff3633-78b1-4e24-b063-d3c26eaa790f" ], - "Date": [ "Sat, 05 Dec 2020 00:58:40 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "x-ms-correlation-request-id": [ "4de7a5bf-b36b-4838-99be-6d682c8694df" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T221219Z:4de7a5bf-b36b-4838-99be-6d682c8694df" ], + "Date": [ "Wed, 03 Mar 2021 22:12:19 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "319" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"name\":\"60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T00:52:07.155048+00:00\",\"endTime\":\"2020-12-05T00:52:09.6640327+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114\",\"name\":\"eb479067-901a-4448-9971-a6c488da3114\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:05:45.6724881+00:00\",\"endTime\":\"2021-03-03T22:05:46.2030675+00:00\"}", + "isContentBase64": false } }, - "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview+15": { + "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114?api-version=2021-03-01+15": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "16" ], - "x-ms-client-request-id": [ "ce3d1e25-99bb-42ed-91d5-77874778baeb" ], + "x-ms-client-request-id": [ "370232e8-f622-480e-a751-8e519a1ff5da" ], "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCache" ], "FullCommandName": [ "New-AzRedisEnterpriseCache_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -578,33 +607,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "316a80b8-acdc-4b1d-b5b6-897799727668" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "9a08dd9b-c5f5-4f3d-b6f7-e25ecd04e925" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], - "x-ms-correlation-request-id": [ "279268a5-3380-46c0-8531-19dbd91463c3" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T005910Z:279268a5-3380-46c0-8531-19dbd91463c3" ], - "Date": [ "Sat, 05 Dec 2020 00:59:09 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "19d28c78-852a-4827-a415-4b271b487fc4" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T221249Z:19d28c78-852a-4827-a415-4b271b487fc4" ], + "Date": [ "Wed, 03 Mar 2021 22:12:49 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "319" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"name\":\"60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T00:52:07.155048+00:00\",\"endTime\":\"2020-12-05T00:52:09.6640327+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114\",\"name\":\"eb479067-901a-4448-9971-a6c488da3114\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:05:45.6724881+00:00\",\"endTime\":\"2021-03-03T22:05:46.2030675+00:00\"}", + "isContentBase64": false } }, - "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview+16": { + "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114?api-version=2021-03-01+16": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "17" ], - "x-ms-client-request-id": [ "ce3d1e25-99bb-42ed-91d5-77874778baeb" ], + "x-ms-client-request-id": [ "370232e8-f622-480e-a751-8e519a1ff5da" ], "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCache" ], "FullCommandName": [ "New-AzRedisEnterpriseCache_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -618,33 +649,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "8168bf4d-1723-409c-9021-5cdc5184e2e4" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "433797a6-ba43-48ce-b597-5b7a2c47bdfb" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], - "x-ms-correlation-request-id": [ "adc43162-a80b-4e99-bea1-ca1d565c2cda" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T005940Z:adc43162-a80b-4e99-bea1-ca1d565c2cda" ], - "Date": [ "Sat, 05 Dec 2020 00:59:39 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-correlation-request-id": [ "3b1da35d-78b5-4bc4-b8ea-462a6c9de38f" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T221319Z:3b1da35d-78b5-4bc4-b8ea-462a6c9de38f" ], + "Date": [ "Wed, 03 Mar 2021 22:13:19 GMT" ] }, "ContentHeaders": { "Content-Length": [ "319" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"name\":\"60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T00:52:07.155048+00:00\",\"endTime\":\"2020-12-05T00:52:09.6640327+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/eb479067-901a-4448-9971-a6c488da3114\",\"name\":\"eb479067-901a-4448-9971-a6c488da3114\",\"status\":\"Succeeded\",\"startTime\":\"2021-03-03T22:05:45.6724881+00:00\",\"endTime\":\"2021-03-03T22:12:59.2816345+00:00\"}", + "isContentBase64": false } }, - "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview+17": { + "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1?api-version=2021-03-01+17": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "18" ], - "x-ms-client-request-id": [ "ce3d1e25-99bb-42ed-91d5-77874778baeb" ], + "x-ms-client-request-id": [ "370232e8-f622-480e-a751-8e519a1ff5da" ], "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCache" ], "FullCommandName": [ "New-AzRedisEnterpriseCache_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -658,33 +691,197 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "26c3c06f-d3ef-40c8-8969-b17f6986e9dd" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "6e60d580-86be-49df-bb8b-bad66297628c" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], - "x-ms-correlation-request-id": [ "a9f46d16-6eeb-435f-81a1-e764ce6fbef9" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T010010Z:a9f46d16-6eeb-435f-81a1-e764ce6fbef9" ], - "Date": [ "Sat, 05 Dec 2020 01:00:09 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-correlation-request-id": [ "601ac575-8a7f-4fad-922f-7b8eba34d58b" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T221320Z:601ac575-8a7f-4fad-922f-7b8eba34d58b" ], + "Date": [ "Wed, 03 Mar 2021 22:13:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "589" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"location\": \"East US\",\r\n \"name\": \"ps-cache-test1-dhf6qri1\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Enterprise_E10\",\r\n \"capacity\": 4\r\n },\r\n \"properties\": {\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceState\": \"Running\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n}", + "isContentBase64": false + } + }, + "New-AzRedisEnterpriseCache+[NoContext]+Create+$PUT+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1/databases/default?api-version=2021-03-01+18": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1/databases/default?api-version=2021-03-01", + "Content": "{\r\n \"properties\": {\r\n \"clientProtocol\": \"Encrypted\",\r\n \"clusteringPolicy\": \"OSSCluster\",\r\n \"evictionPolicy\": \"VolatileLRU\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "140" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1/databases/default?api-version=2021-03-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/a37ff8ce-9dae-47d7-a8ba-d01057bac83f?api-version=2021-03-01" ], + "x-ms-request-id": [ "ca39841b-fd88-42d2-8e2d-731247522ab4" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "bfa7d531-b116-48b8-97c0-2f27bbef9daa" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T221320Z:bfa7d531-b116-48b8-97c0-2f27bbef9daa" ], + "Date": [ "Wed, 03 Mar 2021 22:13:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "504" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"name\": \"default\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1/databases/default\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise/databases\",\r\n \"properties\": {\r\n \"clientProtocol\": \"Encrypted\",\r\n \"port\": 10000,\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceState\": \"Running\",\r\n \"clusteringPolicy\": \"OSSCluster\",\r\n \"evictionPolicy\": \"VolatileLRU\"\r\n }\r\n}", + "isContentBase64": false + } + }, + "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/a37ff8ce-9dae-47d7-a8ba-d01057bac83f?api-version=2021-03-01+19": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/a37ff8ce-9dae-47d7-a8ba-d01057bac83f?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "20" ], + "x-ms-client-request-id": [ "f440b00f-21e8-419f-ac8b-a8c216a68e92" ], + "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCacheDatabase" ], + "FullCommandName": [ "New-AzRedisEnterpriseCacheDatabase_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "e6359a14-c931-4a92-be57-a455d9aa379f" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], + "x-ms-correlation-request-id": [ "d0cee02b-9959-4393-b6b9-57c10725b62b" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T221350Z:d0cee02b-9959-4393-b6b9-57c10725b62b" ], + "Date": [ "Wed, 03 Mar 2021 22:13:50 GMT" ] }, "ContentHeaders": { "Content-Length": [ "319" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"name\":\"60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T00:52:07.155048+00:00\",\"endTime\":\"2020-12-05T00:52:09.6640327+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/a37ff8ce-9dae-47d7-a8ba-d01057bac83f\",\"name\":\"a37ff8ce-9dae-47d7-a8ba-d01057bac83f\",\"status\":\"Succeeded\",\"startTime\":\"2021-03-03T22:13:20.3742731+00:00\",\"endTime\":\"2021-03-03T22:13:43.3322662+00:00\"}", + "isContentBase64": false } }, - "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview+18": { + "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1/databases/default?api-version=2021-03-01+20": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1/databases/default?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "19" ], - "x-ms-client-request-id": [ "ce3d1e25-99bb-42ed-91d5-77874778baeb" ], + "x-ms-unique-id": [ "21" ], + "x-ms-client-request-id": [ "f440b00f-21e8-419f-ac8b-a8c216a68e92" ], + "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCacheDatabase" ], + "FullCommandName": [ "New-AzRedisEnterpriseCacheDatabase_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "fc1f1552-4053-4163-bedd-0fd5f21a0881" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], + "x-ms-correlation-request-id": [ "93f6031e-46f4-4138-a6a8-8dcc04617d72" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T221350Z:93f6031e-46f4-4138-a6a8-8dcc04617d72" ], + "Date": [ "Wed, 03 Mar 2021 22:13:50 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "436" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"default\",\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1/databases/default\",\"type\":\"Microsoft.Cache/redisEnterprise/databases\",\"properties\":{\"clientProtocol\":\"Encrypted\",\"port\":10000,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"clusteringPolicy\":\"OSSCluster\",\"evictionPolicy\":\"VolatileLRU\"}}", + "isContentBase64": false + } + }, + "New-AzRedisEnterpriseCache+[NoContext]+CreateNoDatabase+$PUT+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test2-qxv04oyt?api-version=2021-03-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test2-qxv04oyt?api-version=2021-03-01", + "Content": "{\r\n \"location\": \"East US\",\r\n \"sku\": {\r\n \"name\": \"EnterpriseFlash_F300\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "83" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test2-qxv04oyt?api-version=2021-03-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2?api-version=2021-03-01" ], + "x-ms-request-id": [ "8b82c9e8-57b8-4c4f-ba2f-aceaf3b6d491" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], + "x-ms-correlation-request-id": [ "b2543090-46d7-4fac-9223-eb287c64f691" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T221353Z:b2543090-46d7-4fac-9223-eb287c64f691" ], + "Date": [ "Wed, 03 Mar 2021 22:13:53 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "509" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"location\": \"East US\",\r\n \"name\": \"ps-cache-test2-qxv04oyt\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test2-qxv04oyt\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": null,\r\n \"sku\": {\r\n \"name\": \"EnterpriseFlash_F300\",\r\n \"capacity\": 3\r\n },\r\n \"properties\": {\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"provisioningState\": \"Creating\",\r\n \"resourceState\": \"Creating\"\r\n }\r\n}", + "isContentBase64": false + } + }, + "New-AzRedisEnterpriseCache+[NoContext]+CreateNoDatabase+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2?api-version=2021-03-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "23" ], + "x-ms-client-request-id": [ "be18c468-4893-4eb1-8361-a99757abde32" ], "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCache" ], "FullCommandName": [ "New-AzRedisEnterpriseCache_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -698,33 +895,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "360942c9-44f3-410b-a4d4-4fecdfd83d40" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "c54ff3d2-f9a2-4704-8e42-4c9d4c13eab1" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], - "x-ms-correlation-request-id": [ "24a71b0a-8487-4cac-b39c-159d594abd91" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T010041Z:24a71b0a-8487-4cac-b39c-159d594abd91" ], - "Date": [ "Sat, 05 Dec 2020 01:00:41 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], + "x-ms-correlation-request-id": [ "388f9697-3b58-4a1d-ab10-40dfa876d270" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T221423Z:388f9697-3b58-4a1d-ab10-40dfa876d270" ], + "Date": [ "Wed, 03 Mar 2021 22:14:23 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "319" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"name\":\"60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T00:52:07.155048+00:00\",\"endTime\":\"2020-12-05T00:52:09.6640327+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2\",\"name\":\"7651c1d8-1dd6-4d8c-ad49-1a8f169476b2\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:13:53.0671597+00:00\",\"endTime\":\"2021-03-03T22:13:53.3472213+00:00\"}", + "isContentBase64": false } }, - "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview+19": { + "New-AzRedisEnterpriseCache+[NoContext]+CreateNoDatabase+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2?api-version=2021-03-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "20" ], - "x-ms-client-request-id": [ "ce3d1e25-99bb-42ed-91d5-77874778baeb" ], + "x-ms-unique-id": [ "24" ], + "x-ms-client-request-id": [ "be18c468-4893-4eb1-8361-a99757abde32" ], "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCache" ], "FullCommandName": [ "New-AzRedisEnterpriseCache_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -738,33 +937,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "32d34e5a-194a-4514-8b75-bbbf2798e002" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "c0b5a655-7d4e-4512-8aba-88d4e82a8b2a" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], - "x-ms-correlation-request-id": [ "c80b60ef-ec3f-4257-a71a-656c4e6a2683" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T010112Z:c80b60ef-ec3f-4257-a71a-656c4e6a2683" ], - "Date": [ "Sat, 05 Dec 2020 01:01:12 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], + "x-ms-correlation-request-id": [ "32a7c6d8-a59d-467e-9381-6c9c2ce685cf" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T221453Z:32a7c6d8-a59d-467e-9381-6c9c2ce685cf" ], + "Date": [ "Wed, 03 Mar 2021 22:14:53 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "319" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"name\":\"60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T00:52:07.155048+00:00\",\"endTime\":\"2020-12-05T00:52:09.6640327+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2\",\"name\":\"7651c1d8-1dd6-4d8c-ad49-1a8f169476b2\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:13:53.0671597+00:00\",\"endTime\":\"2021-03-03T22:13:53.3472213+00:00\"}", + "isContentBase64": false } }, - "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview+20": { + "New-AzRedisEnterpriseCache+[NoContext]+CreateNoDatabase+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2?api-version=2021-03-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "21" ], - "x-ms-client-request-id": [ "ce3d1e25-99bb-42ed-91d5-77874778baeb" ], + "x-ms-unique-id": [ "25" ], + "x-ms-client-request-id": [ "be18c468-4893-4eb1-8361-a99757abde32" ], "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCache" ], "FullCommandName": [ "New-AzRedisEnterpriseCache_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -778,33 +979,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "b77c7883-bcbc-458e-89c4-fc84b67be878" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "8a98c309-1080-42d6-b6af-0d83fb78a19b" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], - "x-ms-correlation-request-id": [ "0e66c3d2-0ee4-4703-9600-c9ba7e211802" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T010142Z:0e66c3d2-0ee4-4703-9600-c9ba7e211802" ], - "Date": [ "Sat, 05 Dec 2020 01:01:41 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], + "x-ms-correlation-request-id": [ "d817d1c2-a9c6-41af-b33c-50e959fbc22e" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T221524Z:d817d1c2-a9c6-41af-b33c-50e959fbc22e" ], + "Date": [ "Wed, 03 Mar 2021 22:15:23 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "319" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"name\":\"60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T00:52:07.155048+00:00\",\"endTime\":\"2020-12-05T00:52:09.6640327+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2\",\"name\":\"7651c1d8-1dd6-4d8c-ad49-1a8f169476b2\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:13:53.0671597+00:00\",\"endTime\":\"2021-03-03T22:13:53.3472213+00:00\"}", + "isContentBase64": false } }, - "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview+21": { + "New-AzRedisEnterpriseCache+[NoContext]+CreateNoDatabase+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2?api-version=2021-03-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "22" ], - "x-ms-client-request-id": [ "ce3d1e25-99bb-42ed-91d5-77874778baeb" ], + "x-ms-unique-id": [ "26" ], + "x-ms-client-request-id": [ "be18c468-4893-4eb1-8361-a99757abde32" ], "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCache" ], "FullCommandName": [ "New-AzRedisEnterpriseCache_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -818,33 +1021,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "b1d3db42-0c26-4471-924b-49d31b591f5f" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "c1ce8fcc-b97a-4fa5-a169-886c678e8696" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], - "x-ms-correlation-request-id": [ "6e98b1f1-d422-41c0-8d08-2ff3963a91ee" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T010212Z:6e98b1f1-d422-41c0-8d08-2ff3963a91ee" ], - "Date": [ "Sat, 05 Dec 2020 01:02:11 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11976" ], + "x-ms-correlation-request-id": [ "3ca54900-7a04-4845-a9ea-5a5dc05411c7" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T221554Z:3ca54900-7a04-4845-a9ea-5a5dc05411c7" ], + "Date": [ "Wed, 03 Mar 2021 22:15:53 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "319" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"name\":\"60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T00:52:07.155048+00:00\",\"endTime\":\"2020-12-05T00:52:09.6640327+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2\",\"name\":\"7651c1d8-1dd6-4d8c-ad49-1a8f169476b2\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:13:53.0671597+00:00\",\"endTime\":\"2021-03-03T22:13:53.3472213+00:00\"}", + "isContentBase64": false } }, - "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview+22": { + "New-AzRedisEnterpriseCache+[NoContext]+CreateNoDatabase+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2?api-version=2021-03-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "23" ], - "x-ms-client-request-id": [ "ce3d1e25-99bb-42ed-91d5-77874778baeb" ], + "x-ms-unique-id": [ "27" ], + "x-ms-client-request-id": [ "be18c468-4893-4eb1-8361-a99757abde32" ], "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCache" ], "FullCommandName": [ "New-AzRedisEnterpriseCache_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -858,33 +1063,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "3beddbec-5a66-4029-9e81-2acf7242c186" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "c6ec9840-e6b5-4a1f-b936-30a05ad002be" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11975" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-correlation-request-id": [ "2d3d8778-4439-408f-a06e-7c49b5dc3f29" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T010242Z:2d3d8778-4439-408f-a06e-7c49b5dc3f29" ], - "Date": [ "Sat, 05 Dec 2020 01:02:42 GMT" ] + "x-ms-correlation-request-id": [ "a890169f-ab88-4959-bf1c-d43bc1c02822" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T221624Z:a890169f-ab88-4959-bf1c-d43bc1c02822" ], + "Date": [ "Wed, 03 Mar 2021 22:16:24 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "319" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"name\":\"60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T00:52:07.155048+00:00\",\"endTime\":\"2020-12-05T00:52:09.6640327+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2\",\"name\":\"7651c1d8-1dd6-4d8c-ad49-1a8f169476b2\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:13:53.0671597+00:00\",\"endTime\":\"2021-03-03T22:13:53.3472213+00:00\"}", + "isContentBase64": false } }, - "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview+23": { + "New-AzRedisEnterpriseCache+[NoContext]+CreateNoDatabase+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2?api-version=2021-03-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "24" ], - "x-ms-client-request-id": [ "ce3d1e25-99bb-42ed-91d5-77874778baeb" ], + "x-ms-unique-id": [ "28" ], + "x-ms-client-request-id": [ "be18c468-4893-4eb1-8361-a99757abde32" ], "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCache" ], "FullCommandName": [ "New-AzRedisEnterpriseCache_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -898,33 +1105,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "180e0039-f032-4348-8163-c4ca300a6535" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "0d193332-008a-48c0-af62-6a2ed3f8ac0e" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], - "x-ms-correlation-request-id": [ "2dcab103-34d1-4739-899a-68871c91761c" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T010312Z:2dcab103-34d1-4739-899a-68871c91761c" ], - "Date": [ "Sat, 05 Dec 2020 01:03:12 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11974" ], + "x-ms-correlation-request-id": [ "1c1739d1-2a8a-4dbc-ac14-69aedffbce08" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T221655Z:1c1739d1-2a8a-4dbc-ac14-69aedffbce08" ], + "Date": [ "Wed, 03 Mar 2021 22:16:54 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "318" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"name\":\"60cd6f0b-501b-410c-a6b2-0c1e42ca8f1b\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-05T00:52:07.155048+00:00\",\"endTime\":\"2020-12-05T01:03:01.6749422+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2\",\"name\":\"7651c1d8-1dd6-4d8c-ad49-1a8f169476b2\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:13:53.0671597+00:00\",\"endTime\":\"2021-03-03T22:13:53.3472213+00:00\"}", + "isContentBase64": false } }, - "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test?api-version=2020-10-01-preview+24": { + "New-AzRedisEnterpriseCache+[NoContext]+CreateNoDatabase+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2?api-version=2021-03-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "25" ], - "x-ms-client-request-id": [ "ce3d1e25-99bb-42ed-91d5-77874778baeb" ], + "x-ms-unique-id": [ "29" ], + "x-ms-client-request-id": [ "be18c468-4893-4eb1-8361-a99757abde32" ], "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCache" ], "FullCommandName": [ "New-AzRedisEnterpriseCache_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -938,72 +1147,79 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "4712ce67-c97a-4a93-93a3-f77c8258ee84" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "9234d140-4d9b-4c8c-b319-9277de03e5bf" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11976" ], - "x-ms-correlation-request-id": [ "f0c790ca-c3b5-4d22-9520-69f60691c6c5" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T010313Z:f0c790ca-c3b5-4d22-9520-69f60691c6c5" ], - "Date": [ "Sat, 05 Dec 2020 01:03:12 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11973" ], + "x-ms-correlation-request-id": [ "9bb4c111-ac5c-447b-a54d-e2e59883d5ec" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T221725Z:9bb4c111-ac5c-447b-a54d-e2e59883d5ec" ], + "Date": [ "Wed, 03 Mar 2021 22:17:24 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "534" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"location\": \"East US\",\r\n \"name\": \"ps-cache-test\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Enterprise_E10\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceState\": \"Running\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2\",\"name\":\"7651c1d8-1dd6-4d8c-ad49-1a8f169476b2\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:13:53.0671597+00:00\",\"endTime\":\"2021-03-03T22:13:53.3472213+00:00\"}", + "isContentBase64": false } }, - "New-AzRedisEnterpriseCache+[NoContext]+Create+$PUT+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test/databases/default?api-version=2020-10-01-preview+25": { + "New-AzRedisEnterpriseCache+[NoContext]+CreateNoDatabase+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2?api-version=2021-03-01+9": { "Request": { - "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test/databases/default?api-version=2020-10-01-preview", - "Content": "{\r\n \"properties\": {\r\n \"clientProtocol\": \"Encrypted\",\r\n \"clusteringPolicy\": \"OSSCluster\",\r\n \"evictionPolicy\": \"VolatileLRU\"\r\n }\r\n}", + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "30" ], + "x-ms-client-request-id": [ "be18c468-4893-4eb1-8361-a99757abde32" ], + "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCache" ], + "FullCommandName": [ "New-AzRedisEnterpriseCache_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] }, "ContentHeaders": { - "Content-Type": [ "application/json" ], - "Content-Length": [ "140" ] } }, "Response": { - "StatusCode": 201, + "StatusCode": 200, "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test/databases/default?api-version=2020-10-01-preview" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/ce535704-c6d1-4a4d-9b8e-9eb6f8389066?api-version=2020-10-01-preview" ], - "x-ms-request-id": [ "065d2573-0764-43e2-a53c-fce17f9a9332" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "098608ad-3f62-4039-b0fb-2cc0ccfc92ab" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], - "x-ms-correlation-request-id": [ "7b58caaa-9e20-4661-9d02-96c2db783d76" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T010313Z:7b58caaa-9e20-4661-9d02-96c2db783d76" ], - "Date": [ "Sat, 05 Dec 2020 01:03:13 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11972" ], + "x-ms-correlation-request-id": [ "cc8ffa9f-074b-46b6-a50d-524428cf4a36" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T221755Z:cc8ffa9f-074b-46b6-a50d-524428cf4a36" ], + "Date": [ "Wed, 03 Mar 2021 22:17:54 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "492" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"name\": \"default\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test/databases/default\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise/databases\",\r\n \"properties\": {\r\n \"clientProtocol\": \"Encrypted\",\r\n \"port\": 10000,\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceState\": \"Running\",\r\n \"clusteringPolicy\": \"OSSCluster\",\r\n \"evictionPolicy\": \"VolatileLRU\"\r\n }\r\n}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2\",\"name\":\"7651c1d8-1dd6-4d8c-ad49-1a8f169476b2\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:13:53.0671597+00:00\",\"endTime\":\"2021-03-03T22:13:53.3472213+00:00\"}", + "isContentBase64": false } }, - "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/ce535704-c6d1-4a4d-9b8e-9eb6f8389066?api-version=2020-10-01-preview+26": { + "New-AzRedisEnterpriseCache+[NoContext]+CreateNoDatabase+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2?api-version=2021-03-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/ce535704-c6d1-4a4d-9b8e-9eb6f8389066?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "27" ], - "x-ms-client-request-id": [ "f47de82d-aebc-4602-b340-1d2d3d61743c" ], - "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCacheDatabase" ], - "FullCommandName": [ "New-AzRedisEnterpriseCacheDatabase_CreateExpanded" ], + "x-ms-unique-id": [ "31" ], + "x-ms-client-request-id": [ "be18c468-4893-4eb1-8361-a99757abde32" ], + "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCache" ], + "FullCommandName": [ "New-AzRedisEnterpriseCache_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] }, @@ -1015,35 +1231,37 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "ff120b9d-897f-4026-9fec-7b94dd916cf5" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "ce9142e7-694a-4135-81ab-a131188dee4f" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11975" ], - "x-ms-correlation-request-id": [ "271dedcf-0497-42a4-a36c-a1e2b62d3bed" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T010343Z:271dedcf-0497-42a4-a36c-a1e2b62d3bed" ], - "Date": [ "Sat, 05 Dec 2020 01:03:43 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11971" ], + "x-ms-correlation-request-id": [ "0f7b1a2c-d155-456b-870e-54f8deb983d3" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T221825Z:0f7b1a2c-d155-456b-870e-54f8deb983d3" ], + "Date": [ "Wed, 03 Mar 2021 22:18:25 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "319" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/ce535704-c6d1-4a4d-9b8e-9eb6f8389066\",\"name\":\"ce535704-c6d1-4a4d-9b8e-9eb6f8389066\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-05T01:03:13.2607023+00:00\",\"endTime\":\"2020-12-05T01:03:16.6088363+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2\",\"name\":\"7651c1d8-1dd6-4d8c-ad49-1a8f169476b2\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:13:53.0671597+00:00\",\"endTime\":\"2021-03-03T22:13:53.3472213+00:00\"}", + "isContentBase64": false } }, - "New-AzRedisEnterpriseCache+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test/databases/default?api-version=2020-10-01-preview+27": { + "New-AzRedisEnterpriseCache+[NoContext]+CreateNoDatabase+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2?api-version=2021-03-01+11": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test/databases/default?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "28" ], - "x-ms-client-request-id": [ "f47de82d-aebc-4602-b340-1d2d3d61743c" ], - "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCacheDatabase" ], - "FullCommandName": [ "New-AzRedisEnterpriseCacheDatabase_CreateExpanded" ], + "x-ms-unique-id": [ "32" ], + "x-ms-client-request-id": [ "be18c468-4893-4eb1-8361-a99757abde32" ], + "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCache" ], + "FullCommandName": [ "New-AzRedisEnterpriseCache_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] }, @@ -1055,22 +1273,191 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "a8e2793f-3b9c-4eb2-abe5-7fd419dc4841" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "7756684f-c4ce-4cc3-af3e-105452e6e025" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11974" ], - "x-ms-correlation-request-id": [ "e92330f2-3553-4c4d-8a3a-233cf88d4a65" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T010343Z:e92330f2-3553-4c4d-8a3a-233cf88d4a65" ], - "Date": [ "Sat, 05 Dec 2020 01:03:43 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11970" ], + "x-ms-correlation-request-id": [ "05473121-87ac-44f6-8afe-ac70fc55a1ec" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T221856Z:05473121-87ac-44f6-8afe-ac70fc55a1ec" ], + "Date": [ "Wed, 03 Mar 2021 22:18:55 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "320" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2\",\"name\":\"7651c1d8-1dd6-4d8c-ad49-1a8f169476b2\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:13:53.0671597+00:00\",\"endTime\":\"2021-03-03T22:13:53.3472213+00:00\"}", + "isContentBase64": false + } + }, + "New-AzRedisEnterpriseCache+[NoContext]+CreateNoDatabase+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2?api-version=2021-03-01+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "33" ], + "x-ms-client-request-id": [ "be18c468-4893-4eb1-8361-a99757abde32" ], + "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCache" ], + "FullCommandName": [ "New-AzRedisEnterpriseCache_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "a609d4d6-3140-46fd-b233-48127c58813d" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11969" ], + "x-ms-correlation-request-id": [ "a995826e-58a9-418c-acf1-4834a0b5f906" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T221926Z:a995826e-58a9-418c-acf1-4834a0b5f906" ], + "Date": [ "Wed, 03 Mar 2021 22:19:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "320" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2\",\"name\":\"7651c1d8-1dd6-4d8c-ad49-1a8f169476b2\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:13:53.0671597+00:00\",\"endTime\":\"2021-03-03T22:13:53.3472213+00:00\"}", + "isContentBase64": false + } + }, + "New-AzRedisEnterpriseCache+[NoContext]+CreateNoDatabase+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2?api-version=2021-03-01+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "34" ], + "x-ms-client-request-id": [ "be18c468-4893-4eb1-8361-a99757abde32" ], + "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCache" ], + "FullCommandName": [ "New-AzRedisEnterpriseCache_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "c13b7158-db51-4a47-85d0-9026ea346b6f" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11968" ], + "x-ms-correlation-request-id": [ "bd4da20e-26cf-4385-8157-1238fa608111" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T221956Z:bd4da20e-26cf-4385-8157-1238fa608111" ], + "Date": [ "Wed, 03 Mar 2021 22:19:56 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "320" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2\",\"name\":\"7651c1d8-1dd6-4d8c-ad49-1a8f169476b2\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:13:53.0671597+00:00\",\"endTime\":\"2021-03-03T22:13:53.3472213+00:00\"}", + "isContentBase64": false + } + }, + "New-AzRedisEnterpriseCache+[NoContext]+CreateNoDatabase+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2?api-version=2021-03-01+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "35" ], + "x-ms-client-request-id": [ "be18c468-4893-4eb1-8361-a99757abde32" ], + "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCache" ], + "FullCommandName": [ "New-AzRedisEnterpriseCache_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "a457a0c9-8b83-4ac4-a938-b46c6e6581a9" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11967" ], + "x-ms-correlation-request-id": [ "5f2d77ad-f945-487d-83d4-8add374c46cb" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222026Z:5f2d77ad-f945-487d-83d4-8add374c46cb" ], + "Date": [ "Wed, 03 Mar 2021 22:20:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "318" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/7651c1d8-1dd6-4d8c-ad49-1a8f169476b2\",\"name\":\"7651c1d8-1dd6-4d8c-ad49-1a8f169476b2\",\"status\":\"Succeeded\",\"startTime\":\"2021-03-03T22:13:53.0671597+00:00\",\"endTime\":\"2021-03-03T22:20:16.717842+00:00\"}", + "isContentBase64": false + } + }, + "New-AzRedisEnterpriseCache+[NoContext]+CreateNoDatabase+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test2-qxv04oyt?api-version=2021-03-01+15": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test2-qxv04oyt?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "36" ], + "x-ms-client-request-id": [ "be18c468-4893-4eb1-8361-a99757abde32" ], + "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCache" ], + "FullCommandName": [ "New-AzRedisEnterpriseCache_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "14f0430b-de22-4a0d-b517-36bd63475794" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11966" ], + "x-ms-correlation-request-id": [ "700d6370-187a-4851-967c-078191eecb76" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222026Z:700d6370-187a-4851-967c-078191eecb76" ], + "Date": [ "Wed, 03 Mar 2021 22:20:26 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "424" ], + "Content-Length": [ "546" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"name\":\"default\",\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test/databases/default\",\"type\":\"Microsoft.Cache/redisEnterprise/databases\",\"properties\":{\"clientProtocol\":\"Encrypted\",\"port\":10000,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"clusteringPolicy\":\"OSSCluster\",\"evictionPolicy\":\"VolatileLRU\"}}" + "Content": "{\r\n \"location\": \"East US\",\r\n \"name\": \"ps-cache-test2-qxv04oyt\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test2-qxv04oyt\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"EnterpriseFlash_F300\",\r\n \"capacity\": 3\r\n },\r\n \"properties\": {\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceState\": \"Running\",\r\n \"privateEndpointConnections\": []\r\n }\r\n}", + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/RedisEnterpriseCache/test/New-AzRedisEnterpriseCache.Tests.ps1 b/src/RedisEnterpriseCache/test/New-AzRedisEnterpriseCache.Tests.ps1 index 69b4d8efdafd..801cb5815f41 100644 --- a/src/RedisEnterpriseCache/test/New-AzRedisEnterpriseCache.Tests.ps1 +++ b/src/RedisEnterpriseCache/test/New-AzRedisEnterpriseCache.Tests.ps1 @@ -19,7 +19,8 @@ Describe 'New-AzRedisEnterpriseCache' { Location = $env.Location SubscriptionId = $env.SubscriptionId Sku = "Enterprise_E10" - Capacity = 2 + Capacity = 4 + MinimumTlsVersion = "1.2" Zone = @("1", "2", "3") ClientProtocol = "Encrypted" ClusteringPolicy = "OSSCluster" @@ -34,6 +35,7 @@ Describe 'New-AzRedisEnterpriseCache' { $cache.ProvisioningState | Should -Be "Succeeded" $cache.ResourceState | Should -Be "Running" $cache.Zone | Should -Be $splat.Zone + $cache.Database.Count | Should -Be 1 $databaseName = "default" $cache.Database[$databaseName].Name | Should -Be $databaseName $cache.Database[$databaseName].Type | Should -Be "Microsoft.Cache/redisEnterprise/databases" @@ -43,4 +45,24 @@ Describe 'New-AzRedisEnterpriseCache' { $cache.Database[$databaseName].ProvisioningState | Should -Be "Succeeded" $cache.Database[$databaseName].ResourceState | Should -Be "Running" } + + It 'CreateNoDatabase' { + $splat = @{ + Name = $env.ClusterName2 + ResourceGroupName = $env.ResourceGroupName + Location = $env.Location + SubscriptionId = $env.SubscriptionId + Sku = "EnterpriseFlash_F300" + NoDatabase = $true + } + $cache = New-AzRedisEnterpriseCache @splat + $cache.Name | Should -Be $splat.Name + $cache.Location | Should -Be $splat.Location + $cache.SkuName | Should -Be $splat.Sku + $cache.SkuCapacity | Should -Be 3 + $cache.Type | Should -Be "Microsoft.Cache/redisEnterprise" + $cache.ProvisioningState | Should -Be "Succeeded" + $cache.ResourceState | Should -Be "Running" + $cache.Database.Count | Should -Be 0 + } } diff --git a/src/RedisEnterpriseCache/test/New-AzRedisEnterpriseCacheDatabase.Recording.json b/src/RedisEnterpriseCache/test/New-AzRedisEnterpriseCacheDatabase.Recording.json new file mode 100644 index 000000000000..5dbe521eddf6 --- /dev/null +++ b/src/RedisEnterpriseCache/test/New-AzRedisEnterpriseCacheDatabase.Recording.json @@ -0,0 +1,167 @@ +{ + "New-AzRedisEnterpriseCacheDatabase+[NoContext]+Create+$PUT+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test2-qxv04oyt/databases/default?api-version=2021-03-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test2-qxv04oyt/databases/default?api-version=2021-03-01", + "Content": "{\r\n \"properties\": {\r\n \"clientProtocol\": \"Encrypted\",\r\n \"port\": 10000,\r\n \"clusteringPolicy\": \"EnterpriseCluster\",\r\n \"evictionPolicy\": \"NoEviction\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "166" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test2-qxv04oyt/databases/default?api-version=2021-03-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/6879ac08-0459-4fb2-ab14-3d31e7f9401f?api-version=2021-03-01" ], + "x-ms-request-id": [ "42720e25-e9a7-4bf9-9ff4-b48104dc12c7" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], + "x-ms-correlation-request-id": [ "04efb28b-b369-4099-bb28-100ccd63ba60" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222028Z:04efb28b-b369-4099-bb28-100ccd63ba60" ], + "Date": [ "Wed, 03 Mar 2021 22:20:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "510" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"name\": \"default\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test2-qxv04oyt/databases/default\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise/databases\",\r\n \"properties\": {\r\n \"clientProtocol\": \"Encrypted\",\r\n \"port\": 10000,\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceState\": \"Running\",\r\n \"clusteringPolicy\": \"EnterpriseCluster\",\r\n \"evictionPolicy\": \"NoEviction\"\r\n }\r\n}", + "isContentBase64": false + } + }, + "New-AzRedisEnterpriseCacheDatabase+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/6879ac08-0459-4fb2-ab14-3d31e7f9401f?api-version=2021-03-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/6879ac08-0459-4fb2-ab14-3d31e7f9401f?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "38" ], + "x-ms-client-request-id": [ "fdd23c29-5e7d-43be-be62-eef4614a1695" ], + "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCacheDatabase" ], + "FullCommandName": [ "New-AzRedisEnterpriseCacheDatabase_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "fac0a181-788c-4983-85c3-3ff96c6979ca" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11965" ], + "x-ms-correlation-request-id": [ "281de5b1-8158-4d67-a05f-7f5c3b0760d5" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222058Z:281de5b1-8158-4d67-a05f-7f5c3b0760d5" ], + "Date": [ "Wed, 03 Mar 2021 22:20:57 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "320" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/6879ac08-0459-4fb2-ab14-3d31e7f9401f\",\"name\":\"6879ac08-0459-4fb2-ab14-3d31e7f9401f\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:20:27.9432633+00:00\",\"endTime\":\"2021-03-03T22:20:28.9571571+00:00\"}", + "isContentBase64": false + } + }, + "New-AzRedisEnterpriseCacheDatabase+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/6879ac08-0459-4fb2-ab14-3d31e7f9401f?api-version=2021-03-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/6879ac08-0459-4fb2-ab14-3d31e7f9401f?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "39" ], + "x-ms-client-request-id": [ "fdd23c29-5e7d-43be-be62-eef4614a1695" ], + "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCacheDatabase" ], + "FullCommandName": [ "New-AzRedisEnterpriseCacheDatabase_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "9a32903d-1ca2-477d-a24c-3f140d291f28" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11964" ], + "x-ms-correlation-request-id": [ "1eaefe46-5bf7-497a-beb2-d099ca54e3b3" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222128Z:1eaefe46-5bf7-497a-beb2-d099ca54e3b3" ], + "Date": [ "Wed, 03 Mar 2021 22:21:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "317" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/6879ac08-0459-4fb2-ab14-3d31e7f9401f\",\"name\":\"6879ac08-0459-4fb2-ab14-3d31e7f9401f\",\"status\":\"Succeeded\",\"startTime\":\"2021-03-03T22:20:27.9432633+00:00\",\"endTime\":\"2021-03-03T22:21:00.26235+00:00\"}", + "isContentBase64": false + } + }, + "New-AzRedisEnterpriseCacheDatabase+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test2-qxv04oyt/databases/default?api-version=2021-03-01+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test2-qxv04oyt/databases/default?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "40" ], + "x-ms-client-request-id": [ "fdd23c29-5e7d-43be-be62-eef4614a1695" ], + "CommandName": [ "Az.RedisEnterpriseCache.internal\\New-AzRedisEnterpriseCacheDatabase" ], + "FullCommandName": [ "New-AzRedisEnterpriseCacheDatabase_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "d860a6ed-a258-40ef-a440-d286e3fc6e65" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11963" ], + "x-ms-correlation-request-id": [ "5783afe2-f77f-4339-b9eb-502df619a3f4" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222128Z:5783afe2-f77f-4339-b9eb-502df619a3f4" ], + "Date": [ "Wed, 03 Mar 2021 22:21:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "442" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"default\",\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test2-qxv04oyt/databases/default\",\"type\":\"Microsoft.Cache/redisEnterprise/databases\",\"properties\":{\"clientProtocol\":\"Encrypted\",\"port\":10000,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"clusteringPolicy\":\"EnterpriseCluster\",\"evictionPolicy\":\"NoEviction\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/RedisEnterpriseCache/test/New-AzRedisEnterpriseCacheDatabase.Tests.ps1 b/src/RedisEnterpriseCache/test/New-AzRedisEnterpriseCacheDatabase.Tests.ps1 new file mode 100644 index 000000000000..1e020c60bacd --- /dev/null +++ b/src/RedisEnterpriseCache/test/New-AzRedisEnterpriseCacheDatabase.Tests.ps1 @@ -0,0 +1,36 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'New-AzRedisEnterpriseCacheDatabase.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'New-AzRedisEnterpriseCacheDatabase' { + It 'Create' { + $splat = @{ + Name = $env.ClusterName2 + ResourceGroupName = $env.ResourceGroupName + SubscriptionId = $env.SubscriptionId + ClientProtocol = "Encrypted" + ClusteringPolicy = "EnterpriseCluster" + EvictionPolicy = "NoEviction" + Port = 10000 + } + $database = New-AzRedisEnterpriseCacheDatabase @splat + $databaseName = "default" + $database.Name | Should -Be $databaseName + $database.Type | Should -Be "Microsoft.Cache/redisEnterprise/databases" + $database.ClientProtocol | Should -Be $splat.ClientProtocol + $database.ClusteringPolicy | Should -Be $splat.ClusteringPolicy + $database.EvictionPolicy | Should -Be $splat.EvictionPolicy + $database.Port | Should -Be $splat.Port + $database.ProvisioningState | Should -Be "Succeeded" + $database.ResourceState | Should -Be "Running" + } +} diff --git a/src/RedisEnterpriseCache/test/New-AzRedisEnterpriseCacheDatabaseKey.Recording.json b/src/RedisEnterpriseCache/test/New-AzRedisEnterpriseCacheDatabaseKey.Recording.json deleted file mode 100644 index 89cfbaf7341e..000000000000 --- a/src/RedisEnterpriseCache/test/New-AzRedisEnterpriseCacheDatabaseKey.Recording.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "New-AzRedisEnterpriseCacheDatabaseKey+[NoContext]+RegenerateExpanded+$POST+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test/databases/default/regenerateKey?api-version=2020-10-01-preview+1": { - "Request": { - "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test/databases/default/regenerateKey?api-version=2020-10-01-preview", - "Content": "{\r\n \"keyType\": \"Primary\"\r\n}", - "Headers": { - }, - "ContentHeaders": { - "Content-Type": [ "application/json" ], - "Content-Length": [ "28" ] - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "81bf1e6d-c13e-4ac4-b3da-819a9ca2e715" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], - "x-ms-correlation-request-id": [ "12ecff33-c280-43d4-8d6e-eb6b89035b3d" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T010344Z:12ecff33-c280-43d4-8d6e-eb6b89035b3d" ], - "Date": [ "Sat, 05 Dec 2020 01:03:44 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "135" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\r\n \"primaryKey\": \"vurFPjwfiTLSGc2usXE63GgRRJWS07U3pwrDUWlN1I0=\",\r\n \"secondaryKey\": \"vurFPjwfiTLSGc2usXE63GgRRJWS07U3pwrDUWlN1I0=\"\r\n}" - } - }, - "New-AzRedisEnterpriseCacheDatabaseKey+[NoContext]+RegenerateExpanded+$POST+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test/databases/default/regenerateKey?api-version=2020-10-01-preview+2": { - "Request": { - "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test/databases/default/regenerateKey?api-version=2020-10-01-preview", - "Content": "{\r\n \"keyType\": \"Secondary\"\r\n}", - "Headers": { - }, - "ContentHeaders": { - "Content-Type": [ "application/json" ], - "Content-Length": [ "30" ] - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "aaf02210-c329-4a52-97bf-3435166a6d6d" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], - "x-ms-correlation-request-id": [ "de6f5af1-2002-491c-ba74-2e31e0564dfc" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T010348Z:de6f5af1-2002-491c-ba74-2e31e0564dfc" ], - "Date": [ "Sat, 05 Dec 2020 01:03:47 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "135" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\r\n \"primaryKey\": \"TbLFC0DybtETXlDS6NKn3gZksF2D8kBpEfn8tuIKi+g=\",\r\n \"secondaryKey\": \"TbLFC0DybtETXlDS6NKn3gZksF2D8kBpEfn8tuIKi+g=\"\r\n}" - } - } -} \ No newline at end of file diff --git a/src/RedisEnterpriseCache/test/New-AzRedisEnterpriseCacheKey.Recording.json b/src/RedisEnterpriseCache/test/New-AzRedisEnterpriseCacheKey.Recording.json new file mode 100644 index 000000000000..6f3f1ff76798 --- /dev/null +++ b/src/RedisEnterpriseCache/test/New-AzRedisEnterpriseCacheKey.Recording.json @@ -0,0 +1,76 @@ +{ + "New-AzRedisEnterpriseCacheKey+[NoContext]+Regenerate+$POST+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1/databases/default/regenerateKey?api-version=2021-03-01+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1/databases/default/regenerateKey?api-version=2021-03-01", + "Content": "{\r\n \"keyType\": \"Primary\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "28" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "7ffdcb8d-0295-4153-9666-06475e4690c8" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "c80c91d6-d757-444e-a4b0-1e39aa6e8146" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222129Z:c80c91d6-d757-444e-a4b0-1e39aa6e8146" ], + "Date": [ "Wed, 03 Mar 2021 22:21:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "135" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"primaryKey\": \"new-primary-key\",\r\n \"secondaryKey\": \"secondary-key\"\r\n}", + "isContentBase64": false + } + }, + "New-AzRedisEnterpriseCacheKey+[NoContext]+Regenerate+$POST+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1/databases/default/regenerateKey?api-version=2021-03-01+2": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1/databases/default/regenerateKey?api-version=2021-03-01", + "Content": "{\r\n \"keyType\": \"Secondary\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "30" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "9616b81d-99a3-4be2-bd7f-bcfcbefb049e" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "fcb9d90c-3414-4682-b922-1ecc5565664a" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222130Z:fcb9d90c-3414-4682-b922-1ecc5565664a" ], + "Date": [ "Wed, 03 Mar 2021 22:21:29 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "135" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"primaryKey\": \"primary-key\",\r\n \"secondaryKey\": \"new-secondary-key\"\r\n}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/RedisEnterpriseCache/test/New-AzRedisEnterpriseCacheDatabaseKey.Tests.ps1 b/src/RedisEnterpriseCache/test/New-AzRedisEnterpriseCacheKey.Tests.ps1 similarity index 80% rename from src/RedisEnterpriseCache/test/New-AzRedisEnterpriseCacheDatabaseKey.Tests.ps1 rename to src/RedisEnterpriseCache/test/New-AzRedisEnterpriseCacheKey.Tests.ps1 index d392fdb3d239..5b3380fad29b 100644 --- a/src/RedisEnterpriseCache/test/New-AzRedisEnterpriseCacheDatabaseKey.Tests.ps1 +++ b/src/RedisEnterpriseCache/test/New-AzRedisEnterpriseCacheKey.Tests.ps1 @@ -3,7 +3,7 @@ if (-Not (Test-Path -Path $loadEnvPath)) { $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' } . ($loadEnvPath) -$TestRecordingFile = Join-Path $PSScriptRoot 'New-AzRedisEnterpriseCacheDatabaseKey.Recording.json' +$TestRecordingFile = Join-Path $PSScriptRoot 'New-AzRedisEnterpriseCacheKey.Recording.json' $currentPath = $PSScriptRoot while(-not $mockingPath) { $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File @@ -11,14 +11,14 @@ while(-not $mockingPath) { } . ($mockingPath | Select-Object -First 1).FullName -Describe 'New-AzRedisEnterpriseCacheDatabaseKey' { - It 'RegenerateExpanded' { +Describe 'New-AzRedisEnterpriseCacheKey' { + It 'Regenerate' { $splat = @{ Name = $env.ClusterName ResourceGroupName = $env.ResourceGroupName KeyType = "Primary" } - $databaseKeys = New-AzRedisEnterpriseCacheDatabaseKey @splat + $databaseKeys = New-AzRedisEnterpriseCacheKey @splat $databaseKeys.PrimaryKey | Should -Not -Be $null $databaseKeys.SecondaryKey | Should -Not -Be $null @@ -27,8 +27,8 @@ Describe 'New-AzRedisEnterpriseCacheDatabaseKey' { ResourceGroupName = $env.ResourceGroupName KeyType = "Secondary" } - $databaseKeys = New-AzRedisEnterpriseCacheDatabaseKey @splat + $databaseKeys = New-AzRedisEnterpriseCacheKey @splat $databaseKeys.PrimaryKey | Should -Not -Be $null $databaseKeys.SecondaryKey | Should -Not -Be $null } -} \ No newline at end of file +} diff --git a/src/RedisEnterpriseCache/test/Remove-AzRedisEnterpriseCache.Recording.json b/src/RedisEnterpriseCache/test/Remove-AzRedisEnterpriseCache.Recording.json index 82bc44db7884..be8d3b05e1e7 100644 --- a/src/RedisEnterpriseCache/test/Remove-AzRedisEnterpriseCache.Recording.json +++ b/src/RedisEnterpriseCache/test/Remove-AzRedisEnterpriseCache.Recording.json @@ -1,12 +1,13 @@ { - "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test?api-version=2020-10-01-preview+1": { + "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1?api-version=2021-03-01+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "37" ], - "x-ms-client-request-id": [ "24bcc126-9b26-4b8c-a305-4fb2dfba9be2" ], + "x-ms-unique-id": [ "72" ], + "x-ms-client-request-id": [ "f3df9a2c-ce07-498c-8e94-0cefe7a2d110" ], "CommandName": [ "Remove-AzRedisEnterpriseCache" ], "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -21,35 +22,37 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test/operationresults/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview" ], - "x-ms-request-id": [ "c9b6e5f1-df80-440c-96f7-f14bed49b779" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "Location": [ "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1/operationresults/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01" ], + "x-ms-request-id": [ "2df805d6-fc35-4bdf-ba0f-cfb6ab697134" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], - "x-ms-correlation-request-id": [ "7eeb9385-53f6-458a-b4cd-d8f5e63acf1a" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T010352Z:7eeb9385-53f6-458a-b4cd-d8f5e63acf1a" ], - "Date": [ "Sat, 05 Dec 2020 01:03:51 GMT" ] + "x-ms-correlation-request-id": [ "b264f476-ec62-4012-b53f-67ba2d6cd2aa" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222950Z:b264f476-ec62-4012-b53f-67ba2d6cd2aa" ], + "Date": [ "Wed, 03 Mar 2021 22:29:50 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "534" ], + "Content-Length": [ "589" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"location\": \"East US\",\r\n \"name\": \"ps-cache-test\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-pkstny/providers/Microsoft.Cache/redisEnterprise/ps-cache-test\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Enterprise_E10\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Deleting\",\r\n \"resourceState\": \"Deleting\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n}" + "Content": "{\r\n \"location\": \"East US\",\r\n \"name\": \"ps-cache-test1-dhf6qri1\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test1-dhf6qri1\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Enterprise_E10\",\r\n \"capacity\": 4\r\n },\r\n \"properties\": {\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"provisioningState\": \"Deleting\",\r\n \"resourceState\": \"Deleting\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n}", + "isContentBase64": false } }, - "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview+2": { + "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "38" ], - "x-ms-client-request-id": [ "24bcc126-9b26-4b8c-a305-4fb2dfba9be2" ], + "x-ms-unique-id": [ "73" ], + "x-ms-client-request-id": [ "f3df9a2c-ce07-498c-8e94-0cefe7a2d110" ], "CommandName": [ "Remove-AzRedisEnterpriseCache" ], "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -63,33 +66,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "73706f31-ee07-4817-bbb6-2d3d7a954f0f" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "9b7a718a-4b82-4b80-9d51-1bcb9f7f1589" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11968" ], - "x-ms-correlation-request-id": [ "9d8281c4-e654-460d-9d0f-27c7b683b132" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T010422Z:9d8281c4-e654-460d-9d0f-27c7b683b132" ], - "Date": [ "Sat, 05 Dec 2020 01:04:22 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-correlation-request-id": [ "caa1232e-40ee-41a5-beba-0674446e1ae5" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T223020Z:caa1232e-40ee-41a5-beba-0674446e1ae5" ], + "Date": [ "Wed, 03 Mar 2021 22:30:20 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "318" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51\",\"name\":\"82537d3f-e368-46db-b801-1b5147ba0e51\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T01:03:51.777129+00:00\",\"endTime\":\"2020-12-05T01:03:52.714672+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91\",\"name\":\"4e908b08-dd9f-4bb3-b71c-c83c4c512b91\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:29:50.5659937+00:00\",\"endTime\":\"2021-03-03T22:29:52.6564907+00:00\"}", + "isContentBase64": false } }, - "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview+3": { + "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "39" ], - "x-ms-client-request-id": [ "24bcc126-9b26-4b8c-a305-4fb2dfba9be2" ], + "x-ms-unique-id": [ "74" ], + "x-ms-client-request-id": [ "f3df9a2c-ce07-498c-8e94-0cefe7a2d110" ], "CommandName": [ "Remove-AzRedisEnterpriseCache" ], "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -103,33 +108,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "397a194a-8b54-4ebb-aed7-5c936cb5f1b5" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "6614299e-ba39-4910-9393-f8ececf71b4c" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11967" ], - "x-ms-correlation-request-id": [ "feb5b578-dc91-4221-a22f-c76b30affc38" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T010452Z:feb5b578-dc91-4221-a22f-c76b30affc38" ], - "Date": [ "Sat, 05 Dec 2020 01:04:51 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-correlation-request-id": [ "18a78ac8-4d6a-4c7a-8cb2-435ef1d7a7aa" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T223051Z:18a78ac8-4d6a-4c7a-8cb2-435ef1d7a7aa" ], + "Date": [ "Wed, 03 Mar 2021 22:30:50 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "318" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51\",\"name\":\"82537d3f-e368-46db-b801-1b5147ba0e51\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T01:03:51.777129+00:00\",\"endTime\":\"2020-12-05T01:03:52.714672+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91\",\"name\":\"4e908b08-dd9f-4bb3-b71c-c83c4c512b91\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:29:50.5659937+00:00\",\"endTime\":\"2021-03-03T22:29:52.6564907+00:00\"}", + "isContentBase64": false } }, - "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview+4": { + "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "40" ], - "x-ms-client-request-id": [ "24bcc126-9b26-4b8c-a305-4fb2dfba9be2" ], + "x-ms-unique-id": [ "75" ], + "x-ms-client-request-id": [ "f3df9a2c-ce07-498c-8e94-0cefe7a2d110" ], "CommandName": [ "Remove-AzRedisEnterpriseCache" ], "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -143,33 +150,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "1d40a5b4-d1a0-4f78-9cb9-49c61479f2b0" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "e8fd4e95-946d-4a24-80fe-04e4ea1c88f1" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11966" ], - "x-ms-correlation-request-id": [ "090c54fb-fbeb-41be-832c-097ccf1cd373" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T010522Z:090c54fb-fbeb-41be-832c-097ccf1cd373" ], - "Date": [ "Sat, 05 Dec 2020 01:05:21 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-correlation-request-id": [ "9095bb6f-3653-41cf-8ac4-3c2e17e09f62" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T223121Z:9095bb6f-3653-41cf-8ac4-3c2e17e09f62" ], + "Date": [ "Wed, 03 Mar 2021 22:31:21 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "318" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51\",\"name\":\"82537d3f-e368-46db-b801-1b5147ba0e51\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T01:03:51.777129+00:00\",\"endTime\":\"2020-12-05T01:03:52.714672+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91\",\"name\":\"4e908b08-dd9f-4bb3-b71c-c83c4c512b91\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:29:50.5659937+00:00\",\"endTime\":\"2021-03-03T22:29:52.6564907+00:00\"}", + "isContentBase64": false } }, - "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview+5": { + "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "41" ], - "x-ms-client-request-id": [ "24bcc126-9b26-4b8c-a305-4fb2dfba9be2" ], + "x-ms-unique-id": [ "76" ], + "x-ms-client-request-id": [ "f3df9a2c-ce07-498c-8e94-0cefe7a2d110" ], "CommandName": [ "Remove-AzRedisEnterpriseCache" ], "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -183,33 +192,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "d7124490-9ae2-42d3-996c-7fe9cecb588e" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "9333e37d-7e90-4f52-b756-b20eb237aade" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11965" ], - "x-ms-correlation-request-id": [ "803edcbe-21f8-43c6-bbd4-58333f4d8669" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T010552Z:803edcbe-21f8-43c6-bbd4-58333f4d8669" ], - "Date": [ "Sat, 05 Dec 2020 01:05:52 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "x-ms-correlation-request-id": [ "7dc51266-326b-4995-bb04-a60356a8bed6" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T223151Z:7dc51266-326b-4995-bb04-a60356a8bed6" ], + "Date": [ "Wed, 03 Mar 2021 22:31:51 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "318" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51\",\"name\":\"82537d3f-e368-46db-b801-1b5147ba0e51\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T01:03:51.777129+00:00\",\"endTime\":\"2020-12-05T01:03:52.714672+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91\",\"name\":\"4e908b08-dd9f-4bb3-b71c-c83c4c512b91\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:29:50.5659937+00:00\",\"endTime\":\"2021-03-03T22:29:52.6564907+00:00\"}", + "isContentBase64": false } }, - "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview+6": { + "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "42" ], - "x-ms-client-request-id": [ "24bcc126-9b26-4b8c-a305-4fb2dfba9be2" ], + "x-ms-unique-id": [ "77" ], + "x-ms-client-request-id": [ "f3df9a2c-ce07-498c-8e94-0cefe7a2d110" ], "CommandName": [ "Remove-AzRedisEnterpriseCache" ], "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -223,33 +234,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "5eb8628b-ac1a-4773-a082-11b7323ed962" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "a0db84d0-bcae-4954-b373-229738248008" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11964" ], - "x-ms-correlation-request-id": [ "ce39bc65-6e09-47c6-b33c-c64c74f0ee20" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T010622Z:ce39bc65-6e09-47c6-b33c-c64c74f0ee20" ], - "Date": [ "Sat, 05 Dec 2020 01:06:21 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "5835f89c-489e-46e0-9aa7-bb25fd8542c0" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T223221Z:5835f89c-489e-46e0-9aa7-bb25fd8542c0" ], + "Date": [ "Wed, 03 Mar 2021 22:32:21 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "318" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51\",\"name\":\"82537d3f-e368-46db-b801-1b5147ba0e51\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T01:03:51.777129+00:00\",\"endTime\":\"2020-12-05T01:03:52.714672+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91\",\"name\":\"4e908b08-dd9f-4bb3-b71c-c83c4c512b91\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:29:50.5659937+00:00\",\"endTime\":\"2021-03-03T22:29:52.6564907+00:00\"}", + "isContentBase64": false } }, - "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview+7": { + "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "43" ], - "x-ms-client-request-id": [ "24bcc126-9b26-4b8c-a305-4fb2dfba9be2" ], + "x-ms-unique-id": [ "78" ], + "x-ms-client-request-id": [ "f3df9a2c-ce07-498c-8e94-0cefe7a2d110" ], "CommandName": [ "Remove-AzRedisEnterpriseCache" ], "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -263,33 +276,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "777b6ce3-ccc4-4825-9713-2a6dc6d8f7c2" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "b2acc3e8-e855-490f-880c-d1edbf2520b6" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11963" ], - "x-ms-correlation-request-id": [ "c490b7e5-4484-4d47-b77f-f17d140a11f4" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T010652Z:c490b7e5-4484-4d47-b77f-f17d140a11f4" ], - "Date": [ "Sat, 05 Dec 2020 01:06:51 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-correlation-request-id": [ "6362b695-e9c4-41b8-8dd7-159440c36375" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T223251Z:6362b695-e9c4-41b8-8dd7-159440c36375" ], + "Date": [ "Wed, 03 Mar 2021 22:32:51 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "318" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51\",\"name\":\"82537d3f-e368-46db-b801-1b5147ba0e51\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T01:03:51.777129+00:00\",\"endTime\":\"2020-12-05T01:03:52.714672+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91\",\"name\":\"4e908b08-dd9f-4bb3-b71c-c83c4c512b91\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:29:50.5659937+00:00\",\"endTime\":\"2021-03-03T22:29:52.6564907+00:00\"}", + "isContentBase64": false } }, - "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview+8": { + "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "44" ], - "x-ms-client-request-id": [ "24bcc126-9b26-4b8c-a305-4fb2dfba9be2" ], + "x-ms-unique-id": [ "79" ], + "x-ms-client-request-id": [ "f3df9a2c-ce07-498c-8e94-0cefe7a2d110" ], "CommandName": [ "Remove-AzRedisEnterpriseCache" ], "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -303,33 +318,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "2a4c3be5-0c7b-4edb-8faf-d33578910d15" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "a546a141-89e3-4be0-b49a-18adf8a7c5da" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11962" ], - "x-ms-correlation-request-id": [ "bc448571-e34c-43cd-baa3-78b473335a40" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T010722Z:bc448571-e34c-43cd-baa3-78b473335a40" ], - "Date": [ "Sat, 05 Dec 2020 01:07:22 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-correlation-request-id": [ "5823c3f4-5ba7-4b28-9920-ff2fbaf770da" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T223322Z:5823c3f4-5ba7-4b28-9920-ff2fbaf770da" ], + "Date": [ "Wed, 03 Mar 2021 22:33:22 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "318" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51\",\"name\":\"82537d3f-e368-46db-b801-1b5147ba0e51\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T01:03:51.777129+00:00\",\"endTime\":\"2020-12-05T01:03:52.714672+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91\",\"name\":\"4e908b08-dd9f-4bb3-b71c-c83c4c512b91\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:29:50.5659937+00:00\",\"endTime\":\"2021-03-03T22:29:52.6564907+00:00\"}", + "isContentBase64": false } }, - "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview+9": { + "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "45" ], - "x-ms-client-request-id": [ "24bcc126-9b26-4b8c-a305-4fb2dfba9be2" ], + "x-ms-unique-id": [ "80" ], + "x-ms-client-request-id": [ "f3df9a2c-ce07-498c-8e94-0cefe7a2d110" ], "CommandName": [ "Remove-AzRedisEnterpriseCache" ], "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -343,33 +360,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "ca2cc337-007d-4dda-a061-6275b07044c5" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "ba6f45df-f8a8-4359-adba-609b6b3b37ca" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11961" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-correlation-request-id": [ "9d4ffd1c-754e-499e-b235-d147877a57a7" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T010752Z:9d4ffd1c-754e-499e-b235-d147877a57a7" ], - "Date": [ "Sat, 05 Dec 2020 01:07:52 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], + "x-ms-correlation-request-id": [ "f7775af7-2fbe-4f1d-8d7f-b71f7363817e" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T223352Z:f7775af7-2fbe-4f1d-8d7f-b71f7363817e" ], + "Date": [ "Wed, 03 Mar 2021 22:33:52 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "318" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51\",\"name\":\"82537d3f-e368-46db-b801-1b5147ba0e51\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T01:03:51.777129+00:00\",\"endTime\":\"2020-12-05T01:03:52.714672+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91\",\"name\":\"4e908b08-dd9f-4bb3-b71c-c83c4c512b91\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:29:50.5659937+00:00\",\"endTime\":\"2021-03-03T22:29:52.6564907+00:00\"}", + "isContentBase64": false } }, - "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview+10": { + "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "46" ], - "x-ms-client-request-id": [ "24bcc126-9b26-4b8c-a305-4fb2dfba9be2" ], + "x-ms-unique-id": [ "81" ], + "x-ms-client-request-id": [ "f3df9a2c-ce07-498c-8e94-0cefe7a2d110" ], "CommandName": [ "Remove-AzRedisEnterpriseCache" ], "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -383,33 +402,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "04a22bbe-3a54-40d5-b4ba-05dd2dea1f50" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "559109cf-7f72-41f2-a61e-3a12c37b890c" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11960" ], - "x-ms-correlation-request-id": [ "25e63e97-c302-47b0-b11f-a6b1d9b9eed3" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T010823Z:25e63e97-c302-47b0-b11f-a6b1d9b9eed3" ], - "Date": [ "Sat, 05 Dec 2020 01:08:22 GMT" ] + "x-ms-correlation-request-id": [ "0916d20d-6186-4a09-acf3-6dcfd93675c8" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T223422Z:0916d20d-6186-4a09-acf3-6dcfd93675c8" ], + "Date": [ "Wed, 03 Mar 2021 22:34:22 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "318" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51\",\"name\":\"82537d3f-e368-46db-b801-1b5147ba0e51\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T01:03:51.777129+00:00\",\"endTime\":\"2020-12-05T01:03:52.714672+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91\",\"name\":\"4e908b08-dd9f-4bb3-b71c-c83c4c512b91\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:29:50.5659937+00:00\",\"endTime\":\"2021-03-03T22:29:52.6564907+00:00\"}", + "isContentBase64": false } }, - "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview+11": { + "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01+11": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "47" ], - "x-ms-client-request-id": [ "24bcc126-9b26-4b8c-a305-4fb2dfba9be2" ], + "x-ms-unique-id": [ "82" ], + "x-ms-client-request-id": [ "f3df9a2c-ce07-498c-8e94-0cefe7a2d110" ], "CommandName": [ "Remove-AzRedisEnterpriseCache" ], "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -423,33 +444,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "e2a233ff-e3db-4afc-b3f8-0f77c7bdb537" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "279209f5-ff27-434b-a147-822bd1a7c666" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11959" ], - "x-ms-correlation-request-id": [ "2103802a-09bc-4691-82e5-fa2158d37453" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T010853Z:2103802a-09bc-4691-82e5-fa2158d37453" ], - "Date": [ "Sat, 05 Dec 2020 01:08:53 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], + "x-ms-correlation-request-id": [ "3fe742a8-17f8-411a-bb0f-be5c71e2ec64" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T223452Z:3fe742a8-17f8-411a-bb0f-be5c71e2ec64" ], + "Date": [ "Wed, 03 Mar 2021 22:34:52 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "318" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51\",\"name\":\"82537d3f-e368-46db-b801-1b5147ba0e51\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T01:03:51.777129+00:00\",\"endTime\":\"2020-12-05T01:03:52.714672+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91\",\"name\":\"4e908b08-dd9f-4bb3-b71c-c83c4c512b91\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:29:50.5659937+00:00\",\"endTime\":\"2021-03-03T22:29:52.6564907+00:00\"}", + "isContentBase64": false } }, - "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview+12": { + "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01+12": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "48" ], - "x-ms-client-request-id": [ "24bcc126-9b26-4b8c-a305-4fb2dfba9be2" ], + "x-ms-unique-id": [ "83" ], + "x-ms-client-request-id": [ "f3df9a2c-ce07-498c-8e94-0cefe7a2d110" ], "CommandName": [ "Remove-AzRedisEnterpriseCache" ], "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -463,33 +486,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "512e8cad-2508-4963-bde5-e4bab47180d2" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "4f3342c0-1f09-499d-a97f-f30ab3f447a0" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11958" ], - "x-ms-correlation-request-id": [ "7c65f5d8-c356-468f-b19b-7b5e49a1c868" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T010923Z:7c65f5d8-c356-468f-b19b-7b5e49a1c868" ], - "Date": [ "Sat, 05 Dec 2020 01:09:23 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], + "x-ms-correlation-request-id": [ "919cde5e-86fc-4fd5-8588-89d834d34a39" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T223523Z:919cde5e-86fc-4fd5-8588-89d834d34a39" ], + "Date": [ "Wed, 03 Mar 2021 22:35:22 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "318" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51\",\"name\":\"82537d3f-e368-46db-b801-1b5147ba0e51\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T01:03:51.777129+00:00\",\"endTime\":\"2020-12-05T01:03:52.714672+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91\",\"name\":\"4e908b08-dd9f-4bb3-b71c-c83c4c512b91\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:29:50.5659937+00:00\",\"endTime\":\"2021-03-03T22:29:52.6564907+00:00\"}", + "isContentBase64": false } }, - "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview+13": { + "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01+13": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "49" ], - "x-ms-client-request-id": [ "24bcc126-9b26-4b8c-a305-4fb2dfba9be2" ], + "x-ms-unique-id": [ "84" ], + "x-ms-client-request-id": [ "f3df9a2c-ce07-498c-8e94-0cefe7a2d110" ], "CommandName": [ "Remove-AzRedisEnterpriseCache" ], "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -503,33 +528,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "65174309-022f-497e-b40d-794624f280cd" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "cd0bcf2c-7894-4df3-a797-b09a60177f4f" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11957" ], - "x-ms-correlation-request-id": [ "2ad98285-0e20-4028-becb-d24729a54023" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T010953Z:2ad98285-0e20-4028-becb-d24729a54023" ], - "Date": [ "Sat, 05 Dec 2020 01:09:53 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], + "x-ms-correlation-request-id": [ "21f92fe5-0940-438a-9a38-ae7d0bcbef49" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T223553Z:21f92fe5-0940-438a-9a38-ae7d0bcbef49" ], + "Date": [ "Wed, 03 Mar 2021 22:35:53 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "318" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51\",\"name\":\"82537d3f-e368-46db-b801-1b5147ba0e51\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T01:03:51.777129+00:00\",\"endTime\":\"2020-12-05T01:03:52.714672+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91\",\"name\":\"4e908b08-dd9f-4bb3-b71c-c83c4c512b91\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:29:50.5659937+00:00\",\"endTime\":\"2021-03-03T22:29:52.6564907+00:00\"}", + "isContentBase64": false } }, - "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview+14": { + "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01+14": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "50" ], - "x-ms-client-request-id": [ "24bcc126-9b26-4b8c-a305-4fb2dfba9be2" ], + "x-ms-unique-id": [ "85" ], + "x-ms-client-request-id": [ "f3df9a2c-ce07-498c-8e94-0cefe7a2d110" ], "CommandName": [ "Remove-AzRedisEnterpriseCache" ], "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -543,33 +570,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "a83ecd49-2085-44cd-8cc4-1b60127b7f6c" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "a28a3fd1-6734-4ae6-b9dc-3f4a965d4588" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11956" ], - "x-ms-correlation-request-id": [ "bb4d4a19-bd8a-42bf-a97f-93f8a11022b5" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T011023Z:bb4d4a19-bd8a-42bf-a97f-93f8a11022b5" ], - "Date": [ "Sat, 05 Dec 2020 01:10:23 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11976" ], + "x-ms-correlation-request-id": [ "3ba506b7-95ff-4c4b-9854-bc4b22cb286e" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T223623Z:3ba506b7-95ff-4c4b-9854-bc4b22cb286e" ], + "Date": [ "Wed, 03 Mar 2021 22:36:22 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "318" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51\",\"name\":\"82537d3f-e368-46db-b801-1b5147ba0e51\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T01:03:51.777129+00:00\",\"endTime\":\"2020-12-05T01:03:52.714672+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91\",\"name\":\"4e908b08-dd9f-4bb3-b71c-c83c4c512b91\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:29:50.5659937+00:00\",\"endTime\":\"2021-03-03T22:29:52.6564907+00:00\"}", + "isContentBase64": false } }, - "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview+15": { + "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01+15": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "51" ], - "x-ms-client-request-id": [ "24bcc126-9b26-4b8c-a305-4fb2dfba9be2" ], + "x-ms-unique-id": [ "86" ], + "x-ms-client-request-id": [ "f3df9a2c-ce07-498c-8e94-0cefe7a2d110" ], "CommandName": [ "Remove-AzRedisEnterpriseCache" ], "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -583,33 +612,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "dcab1d77-fe36-4c23-8706-723ff70da723" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "1d5e035f-057b-4548-9a1a-a6e4db1da402" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11955" ], - "x-ms-correlation-request-id": [ "f5e76cdc-47cd-479d-b928-df6d4761e820" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T011053Z:f5e76cdc-47cd-479d-b928-df6d4761e820" ], - "Date": [ "Sat, 05 Dec 2020 01:10:52 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11975" ], + "x-ms-correlation-request-id": [ "196a1317-716e-4ae2-bbd6-da00cfa7203f" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T223653Z:196a1317-716e-4ae2-bbd6-da00cfa7203f" ], + "Date": [ "Wed, 03 Mar 2021 22:36:52 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "318" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51\",\"name\":\"82537d3f-e368-46db-b801-1b5147ba0e51\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T01:03:51.777129+00:00\",\"endTime\":\"2020-12-05T01:03:52.714672+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91\",\"name\":\"4e908b08-dd9f-4bb3-b71c-c83c4c512b91\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:29:50.5659937+00:00\",\"endTime\":\"2021-03-03T22:29:52.6564907+00:00\"}", + "isContentBase64": false } }, - "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview+16": { + "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01+16": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "52" ], - "x-ms-client-request-id": [ "24bcc126-9b26-4b8c-a305-4fb2dfba9be2" ], + "x-ms-unique-id": [ "87" ], + "x-ms-client-request-id": [ "f3df9a2c-ce07-498c-8e94-0cefe7a2d110" ], "CommandName": [ "Remove-AzRedisEnterpriseCache" ], "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -623,33 +654,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "f69457a4-7e8b-47c3-8b80-83416a128a84" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "41b94db9-4b3a-4e14-894b-a674300cfbaa" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11954" ], - "x-ms-correlation-request-id": [ "45f08426-9a1c-4637-8e7d-895a3f07c2a5" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T011123Z:45f08426-9a1c-4637-8e7d-895a3f07c2a5" ], - "Date": [ "Sat, 05 Dec 2020 01:11:23 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11974" ], + "x-ms-correlation-request-id": [ "40b05f9e-7392-4ac0-8270-99468106cbfa" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T223723Z:40b05f9e-7392-4ac0-8270-99468106cbfa" ], + "Date": [ "Wed, 03 Mar 2021 22:37:23 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "318" ], + "Content-Length": [ "320" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51\",\"name\":\"82537d3f-e368-46db-b801-1b5147ba0e51\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T01:03:51.777129+00:00\",\"endTime\":\"2020-12-05T01:03:52.714672+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91\",\"name\":\"4e908b08-dd9f-4bb3-b71c-c83c4c512b91\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:29:50.5659937+00:00\",\"endTime\":\"2021-03-03T22:29:52.6564907+00:00\"}", + "isContentBase64": false } }, - "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview+17": { + "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01+17": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "53" ], - "x-ms-client-request-id": [ "24bcc126-9b26-4b8c-a305-4fb2dfba9be2" ], + "x-ms-unique-id": [ "88" ], + "x-ms-client-request-id": [ "f3df9a2c-ce07-498c-8e94-0cefe7a2d110" ], "CommandName": [ "Remove-AzRedisEnterpriseCache" ], "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -663,33 +696,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "21f293f2-dd9b-408f-aaf1-bd3c867d48d5" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "43ed5370-06f3-41de-af96-8cdc50585860" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11953" ], - "x-ms-correlation-request-id": [ "9461ef8f-c53c-43c0-8fce-8b40950226da" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T011154Z:9461ef8f-c53c-43c0-8fce-8b40950226da" ], - "Date": [ "Sat, 05 Dec 2020 01:11:53 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11973" ], + "x-ms-correlation-request-id": [ "23187db1-8916-4e51-be40-57c7f4af4088" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T223753Z:23187db1-8916-4e51-be40-57c7f4af4088" ], + "Date": [ "Wed, 03 Mar 2021 22:37:53 GMT" ] }, "ContentHeaders": { "Content-Length": [ "318" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51\",\"name\":\"82537d3f-e368-46db-b801-1b5147ba0e51\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T01:03:51.777129+00:00\",\"endTime\":\"2020-12-05T01:03:52.714672+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91\",\"name\":\"4e908b08-dd9f-4bb3-b71c-c83c4c512b91\",\"status\":\"Succeeded\",\"startTime\":\"2021-03-03T22:29:50.5659937+00:00\",\"endTime\":\"2021-03-03T22:37:38.677734+00:00\"}", + "isContentBase64": false } }, - "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview+18": { + "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01+18": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "54" ], - "x-ms-client-request-id": [ "24bcc126-9b26-4b8c-a305-4fb2dfba9be2" ], + "x-ms-unique-id": [ "89" ], + "x-ms-client-request-id": [ "f3df9a2c-ce07-498c-8e94-0cefe7a2d110" ], "CommandName": [ "Remove-AzRedisEnterpriseCache" ], "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -703,262 +738,61 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "5b5d27fa-75c8-4027-8042-723c0f3d4060" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-request-id": [ "c0dd4122-caf8-44e3-bb13-dec292602d54" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11952" ], - "x-ms-correlation-request-id": [ "a8bffd75-a706-467b-8b2e-bc1e936a1dbe" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T011224Z:a8bffd75-a706-467b-8b2e-bc1e936a1dbe" ], - "Date": [ "Sat, 05 Dec 2020 01:12:23 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11972" ], + "x-ms-correlation-request-id": [ "c2b02b08-724e-43fb-ab7a-a23b358f5d4d" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T223754Z:c2b02b08-724e-43fb-ab7a-a23b358f5d4d" ], + "Date": [ "Wed, 03 Mar 2021 22:37:53 GMT" ] }, "ContentHeaders": { "Content-Length": [ "318" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51\",\"name\":\"82537d3f-e368-46db-b801-1b5147ba0e51\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T01:03:51.777129+00:00\",\"endTime\":\"2020-12-05T01:03:52.714672+00:00\"}" + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/4e908b08-dd9f-4bb3-b71c-c83c4c512b91\",\"name\":\"4e908b08-dd9f-4bb3-b71c-c83c4c512b91\",\"status\":\"Succeeded\",\"startTime\":\"2021-03-03T22:29:50.5659937+00:00\",\"endTime\":\"2021-03-03T22:37:38.677734+00:00\"}", + "isContentBase64": false } }, - "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview+19": { + "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test2-qxv04oyt?api-version=2021-03-01+19": { "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "55" ], - "x-ms-client-request-id": [ "24bcc126-9b26-4b8c-a305-4fb2dfba9be2" ], - "CommandName": [ "Remove-AzRedisEnterpriseCache" ], - "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "4a557e56-4d03-49f2-8bb3-6fef4f8306b5" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11951" ], - "x-ms-correlation-request-id": [ "81198007-3009-4688-9681-5140f5b7f1c5" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T011254Z:81198007-3009-4688-9681-5140f5b7f1c5" ], - "Date": [ "Sat, 05 Dec 2020 01:12:54 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "318" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51\",\"name\":\"82537d3f-e368-46db-b801-1b5147ba0e51\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T01:03:51.777129+00:00\",\"endTime\":\"2020-12-05T01:03:52.714672+00:00\"}" - } - }, - "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview+20": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "56" ], - "x-ms-client-request-id": [ "24bcc126-9b26-4b8c-a305-4fb2dfba9be2" ], - "CommandName": [ "Remove-AzRedisEnterpriseCache" ], - "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "c44fc9f1-440c-4943-84aa-d3a5cb1545d0" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11950" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-correlation-request-id": [ "28707662-5ecb-4205-84eb-43e91f252fdd" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T011324Z:28707662-5ecb-4205-84eb-43e91f252fdd" ], - "Date": [ "Sat, 05 Dec 2020 01:13:24 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "318" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51\",\"name\":\"82537d3f-e368-46db-b801-1b5147ba0e51\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T01:03:51.777129+00:00\",\"endTime\":\"2020-12-05T01:03:52.714672+00:00\"}" - } - }, - "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview+21": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "57" ], - "x-ms-client-request-id": [ "24bcc126-9b26-4b8c-a305-4fb2dfba9be2" ], - "CommandName": [ "Remove-AzRedisEnterpriseCache" ], - "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "6d60feb6-c528-453b-8562-8ef7f7de0fb2" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11949" ], - "x-ms-correlation-request-id": [ "487ef2b4-7750-4ff5-a725-7545c5874353" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T011354Z:487ef2b4-7750-4ff5-a725-7545c5874353" ], - "Date": [ "Sat, 05 Dec 2020 01:13:54 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "318" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51\",\"name\":\"82537d3f-e368-46db-b801-1b5147ba0e51\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T01:03:51.777129+00:00\",\"endTime\":\"2020-12-05T01:03:52.714672+00:00\"}" - } - }, - "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview+22": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "58" ], - "x-ms-client-request-id": [ "24bcc126-9b26-4b8c-a305-4fb2dfba9be2" ], - "CommandName": [ "Remove-AzRedisEnterpriseCache" ], - "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "72669319-1e26-4cdb-8583-cc6856083812" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11948" ], - "x-ms-correlation-request-id": [ "2fe15dd4-7177-49da-8ef7-ae73cc194f00" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T011424Z:2fe15dd4-7177-49da-8ef7-ae73cc194f00" ], - "Date": [ "Sat, 05 Dec 2020 01:14:24 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "318" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51\",\"name\":\"82537d3f-e368-46db-b801-1b5147ba0e51\",\"status\":\"InProgress\",\"startTime\":\"2020-12-05T01:03:51.777129+00:00\",\"endTime\":\"2020-12-05T01:03:52.714672+00:00\"}" - } - }, - "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview+23": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview", + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test2-qxv04oyt?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "59" ], - "x-ms-client-request-id": [ "24bcc126-9b26-4b8c-a305-4fb2dfba9be2" ], + "x-ms-unique-id": [ "90" ], + "x-ms-client-request-id": [ "ec6864a3-5a21-4c89-9cd5-d341ecd5b626" ], "CommandName": [ "Remove-AzRedisEnterpriseCache" ], "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { } }, "Response": { - "StatusCode": 200, + "StatusCode": 204, "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "d763718f-ba60-4475-a2c1-a9751fa01c52" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14998" ], + "x-ms-request-id": [ "c05b1235-c8f6-458e-b2af-b041efb32a27" ], + "x-ms-correlation-request-id": [ "c05b1235-c8f6-458e-b2af-b041efb32a27" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T223754Z:c05b1235-c8f6-458e-b2af-b041efb32a27" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11947" ], - "x-ms-correlation-request-id": [ "2f7bc3aa-d8e5-40d1-a2f5-49abe7571e1b" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T011454Z:2f7bc3aa-d8e5-40d1-a2f5-49abe7571e1b" ], - "Date": [ "Sat, 05 Dec 2020 01:14:54 GMT" ] + "Date": [ "Wed, 03 Mar 2021 22:37:54 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "318" ], - "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51\",\"name\":\"82537d3f-e368-46db-b801-1b5147ba0e51\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-05T01:03:51.777129+00:00\",\"endTime\":\"2020-12-05T01:14:37.8532718+00:00\"}" - } - }, - "Remove-AzRedisEnterpriseCache+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview+24": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51?api-version=2020-10-01-preview", "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "60" ], - "x-ms-client-request-id": [ "24bcc126-9b26-4b8c-a305-4fb2dfba9be2" ], - "CommandName": [ "Remove-AzRedisEnterpriseCache" ], - "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "a22d8964-43f3-482d-adf0-6eea68919dd1" ], - "x-rp-server-mvid": [ "f86edc6b-6a96-45c8-9297-8d7daae8142d" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11946" ], - "x-ms-correlation-request-id": [ "bf9aee4c-4a92-4c0c-a67c-9ee0585fff91" ], - "x-ms-routing-request-id": [ "WESTUS2:20201205T011455Z:bf9aee4c-4a92-4c0c-a67c-9ee0585fff91" ], - "Date": [ "Sat, 05 Dec 2020 01:14:55 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "318" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/82537d3f-e368-46db-b801-1b5147ba0e51\",\"name\":\"82537d3f-e368-46db-b801-1b5147ba0e51\",\"status\":\"Succeeded\",\"startTime\":\"2020-12-05T01:03:51.777129+00:00\",\"endTime\":\"2020-12-05T01:14:37.8532718+00:00\"}" + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/RedisEnterpriseCache/test/Remove-AzRedisEnterpriseCache.Tests.ps1 b/src/RedisEnterpriseCache/test/Remove-AzRedisEnterpriseCache.Tests.ps1 index 6647b3c509b5..c62f146b4eb0 100644 --- a/src/RedisEnterpriseCache/test/Remove-AzRedisEnterpriseCache.Tests.ps1 +++ b/src/RedisEnterpriseCache/test/Remove-AzRedisEnterpriseCache.Tests.ps1 @@ -18,6 +18,12 @@ Describe 'Remove-AzRedisEnterpriseCache' { ResourceGroupName = $env.ResourceGroupName } Remove-AzRedisEnterpriseCache @splat + + $splat2 = @{ + Name = $env.ClusterName2 + ResourceGroupName = $env.ResourceGroupName + } + Remove-AzRedisEnterpriseCache @splat2 } It 'DeleteViaIdentity' -skip { diff --git a/src/RedisEnterpriseCache/test/Remove-AzRedisEnterpriseCacheDatabase.Recording.json b/src/RedisEnterpriseCache/test/Remove-AzRedisEnterpriseCacheDatabase.Recording.json new file mode 100644 index 000000000000..ceb6a70639e9 --- /dev/null +++ b/src/RedisEnterpriseCache/test/Remove-AzRedisEnterpriseCacheDatabase.Recording.json @@ -0,0 +1,718 @@ +{ + "Remove-AzRedisEnterpriseCacheDatabase+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test2-qxv04oyt?api-version=2021-03-01+1": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test2-qxv04oyt?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "55" ], + "x-ms-client-request-id": [ "4de40394-b089-46fe-a0f5-86c7205f6537" ], + "CommandName": [ "Remove-AzRedisEnterpriseCache" ], + "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test2-qxv04oyt/operationresults/feccf769-b84d-4f72-9b4e-a0f27797204a?api-version=2021-03-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a?api-version=2021-03-01" ], + "x-ms-request-id": [ "c05066e9-3fab-4196-a91c-3b996bf10ee7" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "20f659d6-865f-4dce-8df4-263b10a95a4a" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222135Z:20f659d6-865f-4dce-8df4-263b10a95a4a" ], + "Date": [ "Wed, 03 Mar 2021 22:21:34 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "546" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"location\": \"East US\",\r\n \"name\": \"ps-cache-test2-qxv04oyt\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/ps-redisenterprise-rg-143npg82/providers/Microsoft.Cache/redisEnterprise/ps-cache-test2-qxv04oyt\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"EnterpriseFlash_F300\",\r\n \"capacity\": 3\r\n },\r\n \"properties\": {\r\n \"minimumTlsVersion\": \"1.2\",\r\n \"provisioningState\": \"Deleting\",\r\n \"resourceState\": \"Deleting\",\r\n \"privateEndpointConnections\": []\r\n }\r\n}", + "isContentBase64": false + } + }, + "Remove-AzRedisEnterpriseCacheDatabase+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a?api-version=2021-03-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "56" ], + "x-ms-client-request-id": [ "4de40394-b089-46fe-a0f5-86c7205f6537" ], + "CommandName": [ "Remove-AzRedisEnterpriseCache" ], + "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "f09cf93a-1f94-4eed-9ed7-0444a0efc07a" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11951" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-correlation-request-id": [ "0d8017a6-8b50-406b-b6a0-6f74ca5b5caf" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222205Z:0d8017a6-8b50-406b-b6a0-6f74ca5b5caf" ], + "Date": [ "Wed, 03 Mar 2021 22:22:05 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "320" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a\",\"name\":\"feccf769-b84d-4f72-9b4e-a0f27797204a\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:21:35.3225581+00:00\",\"endTime\":\"2021-03-03T22:21:36.5568535+00:00\"}", + "isContentBase64": false + } + }, + "Remove-AzRedisEnterpriseCacheDatabase+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a?api-version=2021-03-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "57" ], + "x-ms-client-request-id": [ "4de40394-b089-46fe-a0f5-86c7205f6537" ], + "CommandName": [ "Remove-AzRedisEnterpriseCache" ], + "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "a004dff7-aa39-462e-9c05-eea2ad7267d2" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11950" ], + "x-ms-correlation-request-id": [ "44cc63a6-166f-4dd2-a476-971b1851563f" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222236Z:44cc63a6-166f-4dd2-a476-971b1851563f" ], + "Date": [ "Wed, 03 Mar 2021 22:22:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "320" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a\",\"name\":\"feccf769-b84d-4f72-9b4e-a0f27797204a\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:21:35.3225581+00:00\",\"endTime\":\"2021-03-03T22:21:36.5568535+00:00\"}", + "isContentBase64": false + } + }, + "Remove-AzRedisEnterpriseCacheDatabase+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a?api-version=2021-03-01+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "58" ], + "x-ms-client-request-id": [ "4de40394-b089-46fe-a0f5-86c7205f6537" ], + "CommandName": [ "Remove-AzRedisEnterpriseCache" ], + "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "a9e81fed-d5d6-4167-b1e5-cf89a5ead3ff" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11949" ], + "x-ms-correlation-request-id": [ "155f81b1-fc46-4a43-afa0-ed85096fb4e4" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222306Z:155f81b1-fc46-4a43-afa0-ed85096fb4e4" ], + "Date": [ "Wed, 03 Mar 2021 22:23:05 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "320" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a\",\"name\":\"feccf769-b84d-4f72-9b4e-a0f27797204a\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:21:35.3225581+00:00\",\"endTime\":\"2021-03-03T22:21:36.5568535+00:00\"}", + "isContentBase64": false + } + }, + "Remove-AzRedisEnterpriseCacheDatabase+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a?api-version=2021-03-01+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "59" ], + "x-ms-client-request-id": [ "4de40394-b089-46fe-a0f5-86c7205f6537" ], + "CommandName": [ "Remove-AzRedisEnterpriseCache" ], + "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "97c51736-c876-484e-8077-c4fbe31dfc9d" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11948" ], + "x-ms-correlation-request-id": [ "31dffc7b-47c5-46c0-87f7-ce8842e83261" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222336Z:31dffc7b-47c5-46c0-87f7-ce8842e83261" ], + "Date": [ "Wed, 03 Mar 2021 22:23:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "320" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a\",\"name\":\"feccf769-b84d-4f72-9b4e-a0f27797204a\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:21:35.3225581+00:00\",\"endTime\":\"2021-03-03T22:21:36.5568535+00:00\"}", + "isContentBase64": false + } + }, + "Remove-AzRedisEnterpriseCacheDatabase+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a?api-version=2021-03-01+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "60" ], + "x-ms-client-request-id": [ "4de40394-b089-46fe-a0f5-86c7205f6537" ], + "CommandName": [ "Remove-AzRedisEnterpriseCache" ], + "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "90f6d25e-e0a2-47af-830a-c521292b9a8b" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-correlation-request-id": [ "9ac69287-1957-471f-978d-37626e46848f" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222446Z:9ac69287-1957-471f-978d-37626e46848f" ], + "Date": [ "Wed, 03 Mar 2021 22:24:46 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "320" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a\",\"name\":\"feccf769-b84d-4f72-9b4e-a0f27797204a\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:21:35.3225581+00:00\",\"endTime\":\"2021-03-03T22:21:36.5568535+00:00\"}", + "isContentBase64": false + } + }, + "Remove-AzRedisEnterpriseCacheDatabase+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a?api-version=2021-03-01+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "61" ], + "x-ms-client-request-id": [ "4de40394-b089-46fe-a0f5-86c7205f6537" ], + "CommandName": [ "Remove-AzRedisEnterpriseCache" ], + "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "b381b76e-0fae-4bcf-aa41-7144875b2b8f" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-correlation-request-id": [ "7fb010b2-da51-48aa-bd46-2b68befbad2c" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222517Z:7fb010b2-da51-48aa-bd46-2b68befbad2c" ], + "Date": [ "Wed, 03 Mar 2021 22:25:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "320" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a\",\"name\":\"feccf769-b84d-4f72-9b4e-a0f27797204a\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:21:35.3225581+00:00\",\"endTime\":\"2021-03-03T22:21:36.5568535+00:00\"}", + "isContentBase64": false + } + }, + "Remove-AzRedisEnterpriseCacheDatabase+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a?api-version=2021-03-01+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "62" ], + "x-ms-client-request-id": [ "4de40394-b089-46fe-a0f5-86c7205f6537" ], + "CommandName": [ "Remove-AzRedisEnterpriseCache" ], + "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "c2797d42-874e-452d-a204-110d2019dba7" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "fa95a7dc-fe0e-4c64-8ede-66821d475ed1" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222547Z:fa95a7dc-fe0e-4c64-8ede-66821d475ed1" ], + "Date": [ "Wed, 03 Mar 2021 22:25:46 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "320" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a\",\"name\":\"feccf769-b84d-4f72-9b4e-a0f27797204a\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:21:35.3225581+00:00\",\"endTime\":\"2021-03-03T22:21:36.5568535+00:00\"}", + "isContentBase64": false + } + }, + "Remove-AzRedisEnterpriseCacheDatabase+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a?api-version=2021-03-01+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "63" ], + "x-ms-client-request-id": [ "4de40394-b089-46fe-a0f5-86c7205f6537" ], + "CommandName": [ "Remove-AzRedisEnterpriseCache" ], + "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "1624c7f9-654c-4fb5-8662-812034c3fc07" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "e1e41914-6ce0-4c67-a85f-4a7704be3702" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222617Z:e1e41914-6ce0-4c67-a85f-4a7704be3702" ], + "Date": [ "Wed, 03 Mar 2021 22:26:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "320" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a\",\"name\":\"feccf769-b84d-4f72-9b4e-a0f27797204a\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:21:35.3225581+00:00\",\"endTime\":\"2021-03-03T22:21:36.5568535+00:00\"}", + "isContentBase64": false + } + }, + "Remove-AzRedisEnterpriseCacheDatabase+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a?api-version=2021-03-01+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "64" ], + "x-ms-client-request-id": [ "4de40394-b089-46fe-a0f5-86c7205f6537" ], + "CommandName": [ "Remove-AzRedisEnterpriseCache" ], + "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "817958b3-9e00-4582-9495-c2efa0cc10a2" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "7f766b75-7030-4861-ad20-118b847fe0e0" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222647Z:7f766b75-7030-4861-ad20-118b847fe0e0" ], + "Date": [ "Wed, 03 Mar 2021 22:26:47 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "320" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a\",\"name\":\"feccf769-b84d-4f72-9b4e-a0f27797204a\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:21:35.3225581+00:00\",\"endTime\":\"2021-03-03T22:21:36.5568535+00:00\"}", + "isContentBase64": false + } + }, + "Remove-AzRedisEnterpriseCacheDatabase+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a?api-version=2021-03-01+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "65" ], + "x-ms-client-request-id": [ "4de40394-b089-46fe-a0f5-86c7205f6537" ], + "CommandName": [ "Remove-AzRedisEnterpriseCache" ], + "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "dee661ea-3b2b-402e-ab29-733b9483fa65" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "d0ec0fa0-216c-4164-9acf-0eb079036ce5" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222718Z:d0ec0fa0-216c-4164-9acf-0eb079036ce5" ], + "Date": [ "Wed, 03 Mar 2021 22:27:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "320" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a\",\"name\":\"feccf769-b84d-4f72-9b4e-a0f27797204a\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:21:35.3225581+00:00\",\"endTime\":\"2021-03-03T22:21:36.5568535+00:00\"}", + "isContentBase64": false + } + }, + "Remove-AzRedisEnterpriseCacheDatabase+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a?api-version=2021-03-01+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "66" ], + "x-ms-client-request-id": [ "4de40394-b089-46fe-a0f5-86c7205f6537" ], + "CommandName": [ "Remove-AzRedisEnterpriseCache" ], + "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "12e73a43-2d72-4685-83f7-57c309ae05cd" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "4591ac0a-062b-4cb9-96b9-acf5ad199a95" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222748Z:4591ac0a-062b-4cb9-96b9-acf5ad199a95" ], + "Date": [ "Wed, 03 Mar 2021 22:27:47 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "320" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a\",\"name\":\"feccf769-b84d-4f72-9b4e-a0f27797204a\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:21:35.3225581+00:00\",\"endTime\":\"2021-03-03T22:21:36.5568535+00:00\"}", + "isContentBase64": false + } + }, + "Remove-AzRedisEnterpriseCacheDatabase+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a?api-version=2021-03-01+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "67" ], + "x-ms-client-request-id": [ "4de40394-b089-46fe-a0f5-86c7205f6537" ], + "CommandName": [ "Remove-AzRedisEnterpriseCache" ], + "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "a900d7af-8215-44b2-8682-8b9b5d1b198b" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "8344a220-ef1d-4cc7-add5-7c81d4da361f" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222818Z:8344a220-ef1d-4cc7-add5-7c81d4da361f" ], + "Date": [ "Wed, 03 Mar 2021 22:28:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "320" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a\",\"name\":\"feccf769-b84d-4f72-9b4e-a0f27797204a\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:21:35.3225581+00:00\",\"endTime\":\"2021-03-03T22:21:36.5568535+00:00\"}", + "isContentBase64": false + } + }, + "Remove-AzRedisEnterpriseCacheDatabase+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a?api-version=2021-03-01+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "68" ], + "x-ms-client-request-id": [ "4de40394-b089-46fe-a0f5-86c7205f6537" ], + "CommandName": [ "Remove-AzRedisEnterpriseCache" ], + "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "79eee634-f18b-40bc-b7da-d03916bc2d1a" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "3e2716df-45f3-4dc0-b8b1-83497aecdaf2" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222848Z:3e2716df-45f3-4dc0-b8b1-83497aecdaf2" ], + "Date": [ "Wed, 03 Mar 2021 22:28:48 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "320" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a\",\"name\":\"feccf769-b84d-4f72-9b4e-a0f27797204a\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:21:35.3225581+00:00\",\"endTime\":\"2021-03-03T22:21:36.5568535+00:00\"}", + "isContentBase64": false + } + }, + "Remove-AzRedisEnterpriseCacheDatabase+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a?api-version=2021-03-01+15": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "69" ], + "x-ms-client-request-id": [ "4de40394-b089-46fe-a0f5-86c7205f6537" ], + "CommandName": [ "Remove-AzRedisEnterpriseCache" ], + "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "eed4cd44-a16e-4133-9238-9e9d54235700" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "fc4f6119-905c-4ba0-9094-b6cf5e7ce9b0" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222918Z:fc4f6119-905c-4ba0-9094-b6cf5e7ce9b0" ], + "Date": [ "Wed, 03 Mar 2021 22:29:18 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "320" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a\",\"name\":\"feccf769-b84d-4f72-9b4e-a0f27797204a\",\"status\":\"InProgress\",\"startTime\":\"2021-03-03T22:21:35.3225581+00:00\",\"endTime\":\"2021-03-03T22:21:36.5568535+00:00\"}", + "isContentBase64": false + } + }, + "Remove-AzRedisEnterpriseCacheDatabase+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a?api-version=2021-03-01+16": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "70" ], + "x-ms-client-request-id": [ "4de40394-b089-46fe-a0f5-86c7205f6537" ], + "CommandName": [ "Remove-AzRedisEnterpriseCache" ], + "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "841d8787-93f1-495d-8760-dea5bf16922d" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-correlation-request-id": [ "c2646253-a313-4b57-89cb-53c48b04df77" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222949Z:c2646253-a313-4b57-89cb-53c48b04df77" ], + "Date": [ "Wed, 03 Mar 2021 22:29:48 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "319" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a\",\"name\":\"feccf769-b84d-4f72-9b4e-a0f27797204a\",\"status\":\"Succeeded\",\"startTime\":\"2021-03-03T22:21:35.3225581+00:00\",\"endTime\":\"2021-03-03T22:29:21.0872688+00:00\"}", + "isContentBase64": false + } + }, + "Remove-AzRedisEnterpriseCacheDatabase+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a?api-version=2021-03-01+17": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "71" ], + "x-ms-client-request-id": [ "4de40394-b089-46fe-a0f5-86c7205f6537" ], + "CommandName": [ "Remove-AzRedisEnterpriseCache" ], + "FullCommandName": [ "Remove-AzRedisEnterpriseCache_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "d0584c3e-123b-4bca-9d5e-c25d2d76919c" ], + "x-rp-server-mvid": [ "8add1af5-2006-47da-bfe5-9b1738f65b5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "02f0a270-8cf7-4636-8584-9650366f7282" ], + "x-ms-routing-request-id": [ "WESTUS:20210303T222949Z:02f0a270-8cf7-4636-8584-9650366f7282" ], + "Date": [ "Wed, 03 Mar 2021 22:29:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "319" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/feccf769-b84d-4f72-9b4e-a0f27797204a\",\"name\":\"feccf769-b84d-4f72-9b4e-a0f27797204a\",\"status\":\"Succeeded\",\"startTime\":\"2021-03-03T22:21:35.3225581+00:00\",\"endTime\":\"2021-03-03T22:29:21.0872688+00:00\"}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/RedisEnterpriseCache/test/Remove-AzRedisEnterpriseCacheDatabase.Tests.ps1 b/src/RedisEnterpriseCache/test/Remove-AzRedisEnterpriseCacheDatabase.Tests.ps1 new file mode 100644 index 000000000000..72c4b4bb4ce9 --- /dev/null +++ b/src/RedisEnterpriseCache/test/Remove-AzRedisEnterpriseCacheDatabase.Tests.ps1 @@ -0,0 +1,26 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzRedisEnterpriseCacheDatabase.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Remove-AzRedisEnterpriseCacheDatabase' { + It 'Delete' { + $splat = @{ + Name = $env.ClusterName2 + ResourceGroupName = $env.ResourceGroupName + } + Remove-AzRedisEnterpriseCache @splat + } + + It 'DeleteViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/RedisEnterpriseCache/test/env.json b/src/RedisEnterpriseCache/test/env.json index 8a70a3906eb8..472c86c1e5b7 100644 --- a/src/RedisEnterpriseCache/test/env.json +++ b/src/RedisEnterpriseCache/test/env.json @@ -1,7 +1,8 @@ { - "ClusterName": "ps-cache-test", - "ResourceGroupName": "ps-redisenterprise-rg-pkstny", - "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", "SubscriptionId": "e311648e-a318-4a16-836e-f4a91cc73e9b", + "ResourceGroupName": "ps-redisenterprise-rg-143npg82", + "ClusterName": "ps-cache-test1-dhf6qri1", + "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "ClusterName2": "ps-cache-test2-qxv04oyt", "Location": "East US" } diff --git a/src/RedisEnterpriseCache/test/utils.ps1 b/src/RedisEnterpriseCache/test/utils.ps1 index 2bdce9dc0a34..a5ef682598cb 100644 --- a/src/RedisEnterpriseCache/test/utils.ps1 +++ b/src/RedisEnterpriseCache/test/utils.ps1 @@ -12,8 +12,9 @@ function setupEnv() { $env.SubscriptionId = (Get-AzContext).Subscription.Id $env.Tenant = (Get-AzContext).Tenant.Id # For any resources you created for test, you should add it to $env here. - $env.ClusterName = 'ps-cache-test' - $env.ResourceGroupName = 'ps-redisenterprise-rg-' + (RandomString -allChars $false -len 6) + $env.ClusterName = 'ps-cache-test1-' + (RandomString -allChars $false -len 8) + $env.ClusterName2 = 'ps-cache-test2-' + (RandomString -allChars $false -len 8) + $env.ResourceGroupName = 'ps-redisenterprise-rg-' + (RandomString -allChars $false -len 8) $env.Location = 'East US' New-AzResourceGroup -Name $env.ResourceGroupName -Location $env.Location | Out-Null diff --git a/tools/Az/Az.psd1 b/tools/Az/Az.psd1 index 9cc84f1360de..529f974c3e6d 100644 --- a/tools/Az/Az.psd1 +++ b/tools/Az/Az.psd1 @@ -103,6 +103,7 @@ RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.6'; }, @{ModuleName = 'Az.PrivateDns'; RequiredVersion = '1.0.3'; }, @{ModuleName = 'Az.RecoveryServices'; RequiredVersion = '3.4.1'; }, @{ModuleName = 'Az.RedisCache'; RequiredVersion = '1.4.0'; }, + @{ModuleName = 'Az.RedisEnterpriseCache'; RequiredVersion = '1.0.0'; }, @{ModuleName = 'Az.Relay'; RequiredVersion = '1.0.3'; }, @{ModuleName = 'Az.Resources'; RequiredVersion = '3.3.0'; }, @{ModuleName = 'Az.ServiceBus'; RequiredVersion = '1.4.1'; }, diff --git a/tools/VersionController/MinimalVersion.csv b/tools/VersionController/MinimalVersion.csv index 5d8b1f6f1fc4..7cc235f25bc2 100644 --- a/tools/VersionController/MinimalVersion.csv +++ b/tools/VersionController/MinimalVersion.csv @@ -1,2 +1,3 @@ "Module","Minimal Version" -"Az.Databricks","1.1.0" \ No newline at end of file +"Az.Databricks","1.1.0" +"Az.RedisEnterpriseCache","1.0.0" \ No newline at end of file