diff --git a/src/Aks/Aks.Autorest/Az.Aks.format.ps1xml b/src/Aks/Aks.Autorest/Az.Aks.format.ps1xml index 56efa18bd348..0326175ba55b 100644 --- a/src/Aks/Aks.Autorest/Az.Aks.format.ps1xml +++ b/src/Aks/Aks.Autorest/Az.Aks.format.ps1xml @@ -6,34 +6,6 @@ Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.AgentPoolsAbortLatestOperationAcceptedResponseHeaders - - - - - - - - - - - - - - AzureAsyncOperation - - - Location - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.AgentPoolsDeleteAcceptedResponseHeaders - - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.AgentPoolsDeleteAcceptedResponseHeaders - @@ -126,210 +98,6 @@ Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ManagedClustersAbortLatestOperationAcceptedResponseHeaders - - - - - - - - - - - - - - AzureAsyncOperation - - - Location - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ManagedClustersDeleteAcceptedResponseHeaders - - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ManagedClustersDeleteAcceptedResponseHeaders - - - - - - - - - - - - Location - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ManagedClustersGetCommandResultAcceptedResponseHeaders - - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ManagedClustersGetCommandResultAcceptedResponseHeaders - - - - - - - - - - - - Location - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ManagedClustersResetAadProfileAcceptedResponseHeaders - - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ManagedClustersResetAadProfileAcceptedResponseHeaders - - - - - - - - - - - - Location - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders - - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders - - - - - - - - - - - - Location - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ManagedClustersRotateClusterCertificatesAcceptedResponseHeaders - - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ManagedClustersRotateClusterCertificatesAcceptedResponseHeaders - - - - - - - - - - - - Location - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders - - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders - - - - - - - - - - - - Location - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ManagedClustersRunCommandAcceptedResponseHeaders - - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ManagedClustersRunCommandAcceptedResponseHeaders - - - - - - - - - - - - Location - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ManagedClustersStartAcceptedResponseHeaders - - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ManagedClustersStartAcceptedResponseHeaders - - - - - - - - - - - - Location - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ManagedClustersStopAcceptedResponseHeaders - - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ManagedClustersStopAcceptedResponseHeaders - @@ -539,9 +307,6 @@ - - - @@ -549,9 +314,6 @@ Name - - AzureAsyncOperation - diff --git a/src/Aks/Aks.Autorest/README.md b/src/Aks/Aks.Autorest/README.md index 95f8622698b0..ebf01e879784 100644 --- a/src/Aks/Aks.Autorest/README.md +++ b/src/Aks/Aks.Autorest/README.md @@ -30,7 +30,7 @@ For information on how to develop for `Az.Aks`, see [how-to.md](how-to.md). > see https://aka.ms/autorest ``` yaml -branch: 6031674c73a95ffd60f58b5cdd633c94b3360467 +commit: 6031674c73a95ffd60f58b5cdd633c94b3360467 require: - $(this-folder)/../../readme.azure.noprofile.md input-file: @@ -42,6 +42,10 @@ module-version: 0.1.0 subject-prefix: $(service-name) identity-correction-for-post: true +# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option +use-extension: + "@autorest/powershell": "3.x" + directive: - where: subject: ^AgentPool$|^AgentPoolAvailableAgentPoolVersion$|^ManagedClusterAccessProfile$|^ManagedClusterAdminCredentials$|^ManagedClusterMonitoringUserCredentials$|^ManagedClusterUserCredentials$|^PrivateEndpointConnection$|^PrivateLinkResource$|^ResolvePrivateLinkServiceId$|^RotateManagedClusterCertificate$|^ManagedClusterAadProfile$|^ManagedClusterServicePrincipalProfile$|^AgentPoolNodeImageVersion$|^ManagedClusterTag$ diff --git a/src/Aks/Aks.Autorest/build-module.ps1 b/src/Aks/Aks.Autorest/build-module.ps1 index ec83938e700e..efb0e002b0a1 100644 --- a/src/Aks/Aks.Autorest/build-module.ps1 +++ b/src/Aks/Aks.Autorest/build-module.ps1 @@ -143,7 +143,8 @@ if($NoDocs) { $null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue } $null = New-Item -ItemType Directory -Force -Path $docsFolder - Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid + $addComplexInterfaceInfo = ![System.Convert]::ToBoolean('true') + Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid -AddComplexInterfaceInfo:$addComplexInterfaceInfo } Write-Host -ForegroundColor Green 'Creating format.ps1xml...' @@ -162,4 +163,10 @@ Export-TestStub -ModuleName $moduleName -ExportsFolder $exportsFolder -OutputFol Write-Host -ForegroundColor Green 'Creating example stubs...' Export-ExampleStub -ExportsFolder $exportsFolder -OutputFolder $examplesFolder +if (Test-Path (Join-Path $PSScriptRoot 'generate-portal-ux.ps1')) +{ + Write-Host -ForegroundColor Green 'Creating ux metadata...' + . (Join-Path $PSScriptRoot 'generate-portal-ux.ps1') +} + Write-Host -ForegroundColor Green '-------------Done-------------' diff --git a/src/Aks/Aks.Autorest/exports/Get-AzAksMaintenanceConfiguration.ps1 b/src/Aks/Aks.Autorest/exports/Get-AzAksMaintenanceConfiguration.ps1 index 3e82d0b3670d..d18bc5f70589 100644 --- a/src/Aks/Aks.Autorest/exports/Get-AzAksMaintenanceConfiguration.ps1 +++ b/src/Aks/Aks.Autorest/exports/Get-AzAksMaintenanceConfiguration.ps1 @@ -176,6 +176,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/Aks/Aks.Autorest/exports/Get-AzAksManagedClusterCommandResult.ps1 b/src/Aks/Aks.Autorest/exports/Get-AzAksManagedClusterCommandResult.ps1 index 1445354a90a4..99e5cf556108 100644 --- a/src/Aks/Aks.Autorest/exports/Get-AzAksManagedClusterCommandResult.ps1 +++ b/src/Aks/Aks.Autorest/exports/Get-AzAksManagedClusterCommandResult.ps1 @@ -171,6 +171,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/Aks/Aks.Autorest/exports/Get-AzAksManagedClusterOSOption.ps1 b/src/Aks/Aks.Autorest/exports/Get-AzAksManagedClusterOSOption.ps1 index b5b06aa129e6..402ddcb983b2 100644 --- a/src/Aks/Aks.Autorest/exports/Get-AzAksManagedClusterOSOption.ps1 +++ b/src/Aks/Aks.Autorest/exports/Get-AzAksManagedClusterOSOption.ps1 @@ -158,6 +158,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/Aks/Aks.Autorest/exports/Get-AzAksManagedClusterOutboundNetworkDependencyEndpoint.ps1 b/src/Aks/Aks.Autorest/exports/Get-AzAksManagedClusterOutboundNetworkDependencyEndpoint.ps1 index 1facac0da04a..a6865983726e 100644 --- a/src/Aks/Aks.Autorest/exports/Get-AzAksManagedClusterOutboundNetworkDependencyEndpoint.ps1 +++ b/src/Aks/Aks.Autorest/exports/Get-AzAksManagedClusterOutboundNetworkDependencyEndpoint.ps1 @@ -136,6 +136,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/Aks/Aks.Autorest/exports/Get-AzAksNodePoolUpgradeProfile.ps1 b/src/Aks/Aks.Autorest/exports/Get-AzAksNodePoolUpgradeProfile.ps1 index d3c5934fc659..df60f89f1491 100644 --- a/src/Aks/Aks.Autorest/exports/Get-AzAksNodePoolUpgradeProfile.ps1 +++ b/src/Aks/Aks.Autorest/exports/Get-AzAksNodePoolUpgradeProfile.ps1 @@ -166,6 +166,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/Aks/Aks.Autorest/exports/Get-AzAksSnapshot.ps1 b/src/Aks/Aks.Autorest/exports/Get-AzAksSnapshot.ps1 index d3a09c8a950a..41dcd03ede2a 100644 --- a/src/Aks/Aks.Autorest/exports/Get-AzAksSnapshot.ps1 +++ b/src/Aks/Aks.Autorest/exports/Get-AzAksSnapshot.ps1 @@ -172,6 +172,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/Aks/Aks.Autorest/exports/Get-AzAksUpgradeProfile.ps1 b/src/Aks/Aks.Autorest/exports/Get-AzAksUpgradeProfile.ps1 index aff8872dc0de..0b24f7d2f480 100644 --- a/src/Aks/Aks.Autorest/exports/Get-AzAksUpgradeProfile.ps1 +++ b/src/Aks/Aks.Autorest/exports/Get-AzAksUpgradeProfile.ps1 @@ -161,6 +161,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/Aks/Aks.Autorest/exports/Get-AzAksVersion.ps1 b/src/Aks/Aks.Autorest/exports/Get-AzAksVersion.ps1 index 4378357d8e47..64a3c38f6fb5 100644 --- a/src/Aks/Aks.Autorest/exports/Get-AzAksVersion.ps1 +++ b/src/Aks/Aks.Autorest/exports/Get-AzAksVersion.ps1 @@ -128,6 +128,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/Aks/Aks.Autorest/exports/Install-AzAksCliTool.ps1 b/src/Aks/Aks.Autorest/exports/Install-AzAksCliTool.ps1 index ef72095a16fe..fea029bfa560 100644 --- a/src/Aks/Aks.Autorest/exports/Install-AzAksCliTool.ps1 +++ b/src/Aks/Aks.Autorest/exports/Install-AzAksCliTool.ps1 @@ -127,6 +127,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/Aks/Aks.Autorest/exports/Invoke-AzAksAbortAgentPoolLatestOperation.ps1 b/src/Aks/Aks.Autorest/exports/Invoke-AzAksAbortAgentPoolLatestOperation.ps1 index 41644cf4f1bd..4b21bcbaadc7 100644 --- a/src/Aks/Aks.Autorest/exports/Invoke-AzAksAbortAgentPoolLatestOperation.ps1 +++ b/src/Aks/Aks.Autorest/exports/Invoke-AzAksAbortAgentPoolLatestOperation.ps1 @@ -187,6 +187,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/Aks/Aks.Autorest/exports/Invoke-AzAksAbortManagedClusterLatestOperation.ps1 b/src/Aks/Aks.Autorest/exports/Invoke-AzAksAbortManagedClusterLatestOperation.ps1 index 0cde2866a3e2..29067ff5c64d 100644 --- a/src/Aks/Aks.Autorest/exports/Invoke-AzAksAbortManagedClusterLatestOperation.ps1 +++ b/src/Aks/Aks.Autorest/exports/Invoke-AzAksAbortManagedClusterLatestOperation.ps1 @@ -181,6 +181,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/Aks/Aks.Autorest/exports/Invoke-AzAksRotateManagedClusterServiceAccountSigningKey.ps1 b/src/Aks/Aks.Autorest/exports/Invoke-AzAksRotateManagedClusterServiceAccountSigningKey.ps1 index b0f199b86282..2f4b9de3c60d 100644 --- a/src/Aks/Aks.Autorest/exports/Invoke-AzAksRotateManagedClusterServiceAccountSigningKey.ps1 +++ b/src/Aks/Aks.Autorest/exports/Invoke-AzAksRotateManagedClusterServiceAccountSigningKey.ps1 @@ -177,6 +177,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/Aks/Aks.Autorest/exports/New-AzAksMaintenanceConfiguration.ps1 b/src/Aks/Aks.Autorest/exports/New-AzAksMaintenanceConfiguration.ps1 index 4c3f1366f3e9..3b642a3bdadf 100644 --- a/src/Aks/Aks.Autorest/exports/New-AzAksMaintenanceConfiguration.ps1 +++ b/src/Aks/Aks.Autorest/exports/New-AzAksMaintenanceConfiguration.ps1 @@ -169,6 +169,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/Aks/Aks.Autorest/exports/New-AzAksSnapshot.ps1 b/src/Aks/Aks.Autorest/exports/New-AzAksSnapshot.ps1 index d6e14e471c54..958e05502087 100644 --- a/src/Aks/Aks.Autorest/exports/New-AzAksSnapshot.ps1 +++ b/src/Aks/Aks.Autorest/exports/New-AzAksSnapshot.ps1 @@ -161,6 +161,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/Aks/Aks.Autorest/exports/New-AzAksTimeInWeekObject.ps1 b/src/Aks/Aks.Autorest/exports/New-AzAksTimeInWeekObject.ps1 index 36e540e4ebb4..9a6c8d9a2b2f 100644 --- a/src/Aks/Aks.Autorest/exports/New-AzAksTimeInWeekObject.ps1 +++ b/src/Aks/Aks.Autorest/exports/New-AzAksTimeInWeekObject.ps1 @@ -77,6 +77,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/Aks/Aks.Autorest/exports/New-AzAksTimeSpanObject.ps1 b/src/Aks/Aks.Autorest/exports/New-AzAksTimeSpanObject.ps1 index e39276e8e3aa..8dcda02b18bb 100644 --- a/src/Aks/Aks.Autorest/exports/New-AzAksTimeSpanObject.ps1 +++ b/src/Aks/Aks.Autorest/exports/New-AzAksTimeSpanObject.ps1 @@ -76,6 +76,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/Aks/Aks.Autorest/exports/ProxyCmdletDefinitions.ps1 b/src/Aks/Aks.Autorest/exports/ProxyCmdletDefinitions.ps1 index 3c677b3ac987..237647573892 100644 --- a/src/Aks/Aks.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/src/Aks/Aks.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -176,6 +176,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -377,6 +381,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -565,6 +573,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -731,6 +743,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -927,6 +943,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -1129,6 +1149,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -1320,6 +1344,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -1537,6 +1565,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -1748,6 +1780,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -1955,6 +1991,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -2154,6 +2194,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -2345,6 +2389,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -2549,6 +2597,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -2747,6 +2799,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -2957,6 +3013,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -3183,6 +3243,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -3399,6 +3463,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -3557,6 +3625,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -3714,6 +3786,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -3821,6 +3897,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -3927,6 +4007,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/Aks/Aks.Autorest/exports/Remove-AzAksMaintenanceConfiguration.ps1 b/src/Aks/Aks.Autorest/exports/Remove-AzAksMaintenanceConfiguration.ps1 index c9f01e87890c..c8bd71a95f1d 100644 --- a/src/Aks/Aks.Autorest/exports/Remove-AzAksMaintenanceConfiguration.ps1 +++ b/src/Aks/Aks.Autorest/exports/Remove-AzAksMaintenanceConfiguration.ps1 @@ -174,6 +174,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/Aks/Aks.Autorest/exports/Remove-AzAksSnapshot.ps1 b/src/Aks/Aks.Autorest/exports/Remove-AzAksSnapshot.ps1 index bd2fa40c52b4..f7c5c4bb0b7a 100644 --- a/src/Aks/Aks.Autorest/exports/Remove-AzAksSnapshot.ps1 +++ b/src/Aks/Aks.Autorest/exports/Remove-AzAksSnapshot.ps1 @@ -168,6 +168,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/Aks/Aks.Autorest/exports/Start-AzAksCluster.ps1 b/src/Aks/Aks.Autorest/exports/Start-AzAksCluster.ps1 index 977125cb31c1..68a3d15eba9b 100644 --- a/src/Aks/Aks.Autorest/exports/Start-AzAksCluster.ps1 +++ b/src/Aks/Aks.Autorest/exports/Start-AzAksCluster.ps1 @@ -180,6 +180,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/Aks/Aks.Autorest/exports/Start-AzAksManagedClusterCommand.ps1 b/src/Aks/Aks.Autorest/exports/Start-AzAksManagedClusterCommand.ps1 index 5b92c96fb566..d887a9597d2a 100644 --- a/src/Aks/Aks.Autorest/exports/Start-AzAksManagedClusterCommand.ps1 +++ b/src/Aks/Aks.Autorest/exports/Start-AzAksManagedClusterCommand.ps1 @@ -196,6 +196,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/Aks/Aks.Autorest/exports/Stop-AzAksCluster.ps1 b/src/Aks/Aks.Autorest/exports/Stop-AzAksCluster.ps1 index 31c52c1e91b7..2385ccb39914 100644 --- a/src/Aks/Aks.Autorest/exports/Stop-AzAksCluster.ps1 +++ b/src/Aks/Aks.Autorest/exports/Stop-AzAksCluster.ps1 @@ -186,6 +186,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/Aks/Aks.Autorest/generate-help.ps1 b/src/Aks/Aks.Autorest/generate-help.ps1 index 388ef6f63ebc..dff306eaf934 100644 --- a/src/Aks/Aks.Autorest/generate-help.ps1 +++ b/src/Aks/Aks.Autorest/generate-help.ps1 @@ -66,8 +66,8 @@ foreach($directory in $directories) $docsPath = Join-Path $docsFolder $directory.Name $null = New-Item -ItemType Directory -Force -Path $docsPath -ErrorAction SilentlyContinue $examplesPath = Join-Path $examplesFolder $directory.Name - - Export-HelpMarkdown -ModuleInfo $moduleInfo -FunctionInfo $cmdletFunctionInfo -HelpInfo $cmdletHelpInfo -DocsFolder $docsPath -ExamplesFolder $examplesPath + $addComplexInterfaceInfo = ![System.Convert]::ToBoolean('true') + Export-HelpMarkdown -ModuleInfo $moduleInfo -FunctionInfo $cmdletFunctionInfo -HelpInfo $cmdletHelpInfo -DocsFolder $docsPath -ExamplesFolder $examplesPath -AddComplexInterfaceInfo:$addComplexInterfaceInfo Write-Host -ForegroundColor Green "Created documentation in '$docsPath'" } diff --git a/src/Aks/Aks.Autorest/generate-portal-ux.ps1 b/src/Aks/Aks.Autorest/generate-portal-ux.ps1 new file mode 100644 index 000000000000..d6cc70e62bce --- /dev/null +++ b/src/Aks/Aks.Autorest/generate-portal-ux.ps1 @@ -0,0 +1,375 @@ +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# 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. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# +# This Script will create a folder dedicated to Azure-specific content and includes metadata files essential for enhancing the user experience (UX) within the Azure portal. +# These files are utilized by the Azure portal to effectively present the usage of cmdlets related to specific resources on portal pages. +# ---------------------------------------------------------------------------------- +param([switch]$Isolated) +$ErrorActionPreference = 'Stop' + +$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path +if(-not $Isolated) { + Write-Host -ForegroundColor Green 'Creating isolated process...' + & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated + return +} + +$moduleName = 'Az.Aks' +$rootModuleName = '' +if ($rootModuleName -eq "") +{ + $rootModuleName = $moduleName +} +$modulePsd1 = Get-Item -Path (Join-Path $PSScriptRoot "./$moduleName.psd1") +$modulePath = $modulePsd1.FullName + +# Load DLL to use build-time cmdlets +Import-Module -Name $modulePath +Import-Module -Name (Join-Path $PSScriptRoot "./bin/$moduleName.private.dll") +$instance = [Microsoft.Azure.PowerShell.Cmdlets.Aks.Module]::Instance +# Module info is shared per profile +$moduleInfo = Get-Module -Name $moduleName +$parameterSetsInfo = Get-Module -Name "$moduleName.private" + +$buildinFunctions = @("Export-CmdletSurface", "Export-ExampleStub", "Export-FormatPs1xml", "Export-HelpMarkdown", "Export-ModelSurface", "Export-ProxyCmdlet", "Export-Psd1", "Export-TestStub", "Get-CommonParameter", "Get-ModuleGuid", "Get-ScriptCmdlet") + +function Test-FunctionSupported() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [string] + $FunctionName + ) + + If ($buildinfunctions.Contains($FunctionName)) { + return $false + } + + $cmdletName, $parameterSetName = $FunctionName.Split("_") + If ($parameterSetName.Contains("List") -or $parameterSetName.Contains("ViaIdentity")) { + return $false + } + If ($cmdletName.StartsWith("New") -or $cmdletName.StartsWith("Set") -or $cmdletName.StartsWith("Update")) { + return $false + } + + $parameterSetInfo = $parameterSetsInfo.ExportedCmdlets[$FunctionName] + foreach ($parameterInfo in $parameterSetInfo.Parameters.Values) + { + $category = (Get-ParameterAttribute -ParameterInfo $parameterInfo -AttributeName "CategoryAttribute").Categories + $invalideCategory = @('Query', 'Body') + if ($invalideCategory -contains $category) + { + return $false + } + } + + $customFiles = Get-ChildItem -Path custom -Filter "$cmdletName.*" + if ($customFiles.Length -ne 0) + { + return $false + } + + return $true +} + +function Get-MappedCmdletFromFunctionName() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [string] + $FunctionName + ) + + $cmdletName, $parameterSetName = $FunctionName.Split("_") + + return $cmdletName +} + +function Get-ParameterAttribute() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [System.Management.Automation.ParameterMetadata] + $ParameterInfo, + [Parameter()] + [String] + $AttributeName + ) + return $ParameterInfo.Attributes | Where-Object { $_.TypeId.Name -eq $AttributeName } +} + +function Get-CmdletAttribute() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [System.Management.Automation.CommandInfo] + $CmdletInfo, + [Parameter()] + [String] + $AttributeName + ) + + return $CmdletInfo.ImplementingType.GetTypeInfo().GetCustomAttributes([System.object], $true) | Where-Object { $_.TypeId.Name -eq $AttributeName } +} + +function Get-CmdletDescription() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [String] + $CmdletName + ) + $helpInfo = Get-Help $CmdletName -Full + + $description = $helpInfo.Description.Text + if ($null -eq $description) + { + return "" + } + return $description +} + +# Test whether the parameter is from swagger http path +function Test-ParameterFromSwagger() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [System.Management.Automation.ParameterMetadata] + $ParameterInfo + ) + $category = (Get-ParameterAttribute -ParameterInfo $ParameterInfo -AttributeName "CategoryAttribute").Categories + $doNotExport = Get-ParameterAttribute -ParameterInfo $ParameterInfo -AttributeName "DoNotExportAttribute" + if ($null -ne $doNotExport) + { + return $false + } + + $valideCategory = @('Path') + if ($valideCategory -contains $category) + { + return $true + } + return $false +} + +function New-ExampleForParameterSet() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [System.Management.Automation.CommandInfo] + $ParameterSetInfo + ) + $parameters = $ParameterSetInfo.Parameters.Values | Where-Object { Test-ParameterFromSwagger $_ } + $result = @() + foreach ($parameter in $parameters) + { + $category = (Get-ParameterAttribute -parameterInfo $parameter -AttributeName "CategoryAttribute").Categories + $sourceName = (Get-ParameterAttribute -parameterInfo $parameter -AttributeName "InfoAttribute").SerializedName + $name = $parameter.Name + $result += [ordered]@{ + name = "-$Name" + value = "[$category.$sourceName]" + } + } + + return $result +} + +function New-ParameterArrayInParameterSet() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [System.Management.Automation.CommandInfo] + $ParameterSetInfo + ) + $parameters = $ParameterSetInfo.Parameters.Values | Where-Object { Test-ParameterFromSwagger $_ } + $result = @() + foreach ($parameter in $parameters) + { + $isMandatory = (Get-ParameterAttribute -parameterInfo $parameter -AttributeName "ParameterAttribute").Mandatory + $parameterName = $parameter.Name + $parameterType = $parameter.ParameterType.ToString().Split('.')[1] + if ($parameter.SwitchParameter) + { + $parameterSignature = "-$parameterName" + } + else + { + $parameterSignature = "-$parameterName <$parameterType>" + } + if ($parameterName -eq "SubscriptionId") + { + $isMandatory = $false + } + if (-not $isMandatory) + { + $parameterSignature = "[$parameterSignature]" + } + $result += $parameterSignature + } + + return $result +} + +function New-MetadataForParameterSet() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [System.Management.Automation.CommandInfo] + $ParameterSetInfo + ) + $httpAttribute = Get-CmdletAttribute -CmdletInfo $ParameterSetInfo -AttributeName "HttpPathAttribute" + $httpPath = $httpAttribute.Path + $apiVersion = $httpAttribute.ApiVersion + $provider = [System.Text.RegularExpressions.Regex]::New("/providers/([\w+\.]+)/").Match($httpPath).Groups[1].Value + $resourcePath = "/" + $httpPath.Split("$provider/")[1] + $resourceType = [System.Text.RegularExpressions.Regex]::New("/([\w]+)/\{\w+\}").Matches($resourcePath) | ForEach-Object {$_.groups[1].Value} | Join-String -Separator "/" + $cmdletName = Get-MappedCmdletFromFunctionName $ParameterSetInfo.Name + $description = (Get-CmdletAttribute -CmdletInfo $ParameterSetInfo -AttributeName "DescriptionAttribute").Description + [object[]]$example = New-ExampleForParameterSet $ParameterSetInfo + [string[]]$signature = New-ParameterArrayInParameterSet $ParameterSetInfo + + return @{ + Path = $httpPath + Provider = $provider + ResourceType = $resourceType + ApiVersion = $apiVersion + CmdletName = $cmdletName + Description = $description + Example = $example + Signature = @{ + parameters = $signature + } + } +} + +function Merge-WithExistCmdletMetadata() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [System.Collections.Specialized.OrderedDictionary] + $ExistedCmdletInfo, + [Parameter()] + [Hashtable] + $ParameterSetMetadata + ) + $ExistedCmdletInfo.help.parameterSets += $ParameterSetMetadata.Signature + $ExistedCmdletInfo.examples += [ordered]@{ + description = $ParameterSetMetadata.Description + parameters = $ParameterSetMetadata.Example + } + + return $ExistedCmdletInfo +} + +function New-MetadataForCmdlet() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [Hashtable] + $ParameterSetMetadata + ) + $cmdletName = $ParameterSetMetadata.CmdletName + $description = Get-CmdletDescription $cmdletName + $result = [ordered]@{ + name = $cmdletName + description = $description + path = $ParameterSetMetadata.Path + help = [ordered]@{ + learnMore = [ordered]@{ + url = "https://learn.microsoft.com/powershell/module/$rootModuleName/$cmdletName".ToLower() + } + parameterSets = @() + } + examples = @() + } + $result = Merge-WithExistCmdletMetadata -ExistedCmdletInfo $result -ParameterSetMetadata $ParameterSetMetadata + return $result +} + +$parameterSets = $parameterSetsInfo.ExportedCmdlets.Keys | Where-Object { Test-functionSupported($_) } +$resourceTypes = @{} +foreach ($parameterSetName in $parameterSets) +{ + $cmdletInfo = $parameterSetsInfo.ExportedCommands[$parameterSetName] + $parameterSetMetadata = New-MetadataForParameterSet -ParameterSetInfo $cmdletInfo + $cmdletName = $parameterSetMetadata.CmdletName + if (-not ($moduleInfo.ExportedCommands.ContainsKey($cmdletName))) + { + continue + } + if ($resourceTypes.ContainsKey($parameterSetMetadata.ResourceType)) + { + $ExistedCmdletInfo = $resourceTypes[$parameterSetMetadata.ResourceType].commands | Where-Object { $_.name -eq $cmdletName } + if ($ExistedCmdletInfo) + { + $ExistedCmdletInfo = Merge-WithExistCmdletMetadata -ExistedCmdletInfo $ExistedCmdletInfo -ParameterSetMetadata $parameterSetMetadata + } + else + { + $cmdletInfo = New-MetadataForCmdlet -ParameterSetMetadata $parameterSetMetadata + $resourceTypes[$parameterSetMetadata.ResourceType].commands += $cmdletInfo + } + } + else + { + $cmdletInfo = New-MetadataForCmdlet -ParameterSetMetadata $parameterSetMetadata + $resourceTypes[$parameterSetMetadata.ResourceType] = [ordered]@{ + resourceType = $parameterSetMetadata.ResourceType + apiVersion = $parameterSetMetadata.ApiVersion + learnMore = @{ + url = "https://learn.microsoft.com/powershell/module/$rootModuleName".ToLower() + } + commands = @($cmdletInfo) + provider = $parameterSetMetadata.Provider + } + } +} + +$UXFolder = 'UX' +if (Test-Path $UXFolder) +{ + Remove-Item -Path $UXFolder -Recurse +} +$null = New-Item -ItemType Directory -Path $UXFolder + +foreach ($resourceType in $resourceTypes.Keys) +{ + $resourceTypeFileName = $resourceType -replace "/", "-" + if ($resourceTypeFileName -eq "") + { + continue + } + $resourceTypeInfo = $resourceTypes[$resourceType] + $provider = $resourceTypeInfo.provider + $providerFolder = "$UXFolder/$provider" + if (-not (Test-Path $providerFolder)) + { + $null = New-Item -ItemType Directory -Path $providerFolder + } + $resourceTypeInfo.Remove("provider") + $resourceTypeInfo | ConvertTo-Json -Depth 10 | Out-File "$providerFolder/$resourceTypeFileName.json" +} \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/generated/api/Aks.cs b/src/Aks/Aks.Autorest/generated/api/Aks.cs index b6846cc97819..68ef6a86525e 100644 --- a/src/Aks/Aks.Autorest/generated/api/Aks.cs +++ b/src/Aks/Aks.Autorest/generated/api/Aks.cs @@ -543,7 +543,7 @@ public partial class Aks case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.AgentPool.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers))); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.AgentPool.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -1373,7 +1373,7 @@ public partial class Aks case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.AgentPool.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers))); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.AgentPool.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -3881,7 +3881,7 @@ public partial class Aks /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ManagedClustersGetCommandResult(string subscriptionId, string resourceGroupName, string resourceName, string commandId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onAccepted, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ManagedClustersGetCommandResult(string subscriptionId, string resourceGroupName, string resourceName, string commandId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onAccepted, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.ISendAsync sender) { var apiVersion = @"2023-02-01"; // Constant Parameters @@ -3925,7 +3925,7 @@ public partial class Aks /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ManagedClustersGetCommandResultViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onAccepted, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ManagedClustersGetCommandResultViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onAccepted, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.ISendAsync sender) { var apiVersion = @"2023-02-01"; // Constant Parameters @@ -3982,7 +3982,7 @@ public partial class Aks /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ManagedClustersGetCommandResult_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onAccepted, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ManagedClustersGetCommandResult_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onAccepted, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4006,7 +4006,7 @@ public partial class Aks case global::System.Net.HttpStatusCode.Accepted: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onAccepted(_response,null /* deserializeFromResponse doesn't support '-header-' C:\Users\cloudtest\.autorest\@autorest_powershell@3.0.504\node_modules\@autorest\powershell\dist\llcsharp\schema\object.js*/); + await onAccepted(_response); break; } default: diff --git a/src/Aks/Aks.Autorest/generated/api/Models/AgentPoolsAbortLatestOperationAcceptedResponseHeaders.PowerShell.cs b/src/Aks/Aks.Autorest/generated/api/Models/AgentPoolsAbortLatestOperationAcceptedResponseHeaders.PowerShell.cs index 46b155ff1247..cdbbf560cc51 100644 --- a/src/Aks/Aks.Autorest/generated/api/Models/AgentPoolsAbortLatestOperationAcceptedResponseHeaders.PowerShell.cs +++ b/src/Aks/Aks.Autorest/generated/api/Models/AgentPoolsAbortLatestOperationAcceptedResponseHeaders.PowerShell.cs @@ -71,10 +71,6 @@ internal AgentPoolsAbortLatestOperationAcceptedResponseHeaders(global::System.Co { ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAgentPoolsAbortLatestOperationAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAgentPoolsAbortLatestOperationAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); } - if (content.Contains("AzureAsyncOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAgentPoolsAbortLatestOperationAcceptedResponseHeadersInternal)this).AzureAsyncOperation = (string) content.GetValueForProperty("AzureAsyncOperation",((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAgentPoolsAbortLatestOperationAcceptedResponseHeadersInternal)this).AzureAsyncOperation, global::System.Convert.ToString); - } AfterDeserializeDictionary(content); } @@ -96,10 +92,6 @@ internal AgentPoolsAbortLatestOperationAcceptedResponseHeaders(global::System.Ma { ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAgentPoolsAbortLatestOperationAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAgentPoolsAbortLatestOperationAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); } - if (content.Contains("AzureAsyncOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAgentPoolsAbortLatestOperationAcceptedResponseHeadersInternal)this).AzureAsyncOperation = (string) content.GetValueForProperty("AzureAsyncOperation",((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAgentPoolsAbortLatestOperationAcceptedResponseHeadersInternal)this).AzureAsyncOperation, global::System.Convert.ToString); - } AfterDeserializePSObject(content); } diff --git a/src/Aks/Aks.Autorest/generated/api/Models/AgentPoolsAbortLatestOperationAcceptedResponseHeaders.cs b/src/Aks/Aks.Autorest/generated/api/Models/AgentPoolsAbortLatestOperationAcceptedResponseHeaders.cs index 985d87aede23..28a530be9359 100644 --- a/src/Aks/Aks.Autorest/generated/api/Models/AgentPoolsAbortLatestOperationAcceptedResponseHeaders.cs +++ b/src/Aks/Aks.Autorest/generated/api/Models/AgentPoolsAbortLatestOperationAcceptedResponseHeaders.cs @@ -13,12 +13,6 @@ public partial class AgentPoolsAbortLatestOperationAcceptedResponseHeaders : Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IHeaderSerializable { - /// Backing field for property. - private string _azureAsyncOperation; - - [Microsoft.Azure.PowerShell.Cmdlets.Aks.Origin(Microsoft.Azure.PowerShell.Cmdlets.Aks.PropertyOrigin.Owned)] - public string AzureAsyncOperation { get => this._azureAsyncOperation; set => this._azureAsyncOperation = value; } - /// Backing field for property. private string _location; @@ -40,23 +34,11 @@ void Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IHeaderSerializable.ReadHead { ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAgentPoolsAbortLatestOperationAcceptedResponseHeadersInternal)this).Location = System.Linq.Enumerable.FirstOrDefault(__locationHeader0) is string __headerLocationHeader0 ? __headerLocationHeader0 : (string)null; } - if (headers.TryGetValues("Azure-AsyncOperation", out var __azureAsyncOperationHeader1)) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAgentPoolsAbortLatestOperationAcceptedResponseHeadersInternal)this).AzureAsyncOperation = System.Linq.Enumerable.FirstOrDefault(__azureAsyncOperationHeader1) is string __headerAzureAsyncOperationHeader1 ? __headerAzureAsyncOperationHeader1 : (string)null; - } } } public partial interface IAgentPoolsAbortLatestOperationAcceptedResponseHeaders { - [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"", - SerializedName = @"Azure-AsyncOperation", - PossibleTypes = new [] { typeof(string) })] - string AzureAsyncOperation { get; set; } - [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Info( Required = false, ReadOnly = false, @@ -69,8 +51,6 @@ public partial interface IAgentPoolsAbortLatestOperationAcceptedResponseHeaders internal partial interface IAgentPoolsAbortLatestOperationAcceptedResponseHeadersInternal { - string AzureAsyncOperation { get; set; } - string Location { get; set; } } diff --git a/src/Aks/Aks.Autorest/generated/api/Models/AgentPoolsDeleteAcceptedResponseHeaders.PowerShell.cs b/src/Aks/Aks.Autorest/generated/api/Models/AgentPoolsDeleteAcceptedResponseHeaders.PowerShell.cs deleted file mode 100644 index 979e4ab3cc67..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/AgentPoolsDeleteAcceptedResponseHeaders.PowerShell.cs +++ /dev/null @@ -1,145 +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.Aks.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.PowerShell; - - [System.ComponentModel.TypeConverter(typeof(AgentPoolsDeleteAcceptedResponseHeadersTypeConverter))] - public partial class AgentPoolsDeleteAcceptedResponseHeaders - { - - /// - /// 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 AgentPoolsDeleteAcceptedResponseHeaders(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAgentPoolsDeleteAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAgentPoolsDeleteAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal AgentPoolsDeleteAcceptedResponseHeaders(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAgentPoolsDeleteAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAgentPoolsDeleteAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); - } - 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.Aks.Models.IAgentPoolsDeleteAcceptedResponseHeaders DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new AgentPoolsDeleteAcceptedResponseHeaders(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.Aks.Models.IAgentPoolsDeleteAcceptedResponseHeaders DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new AgentPoolsDeleteAcceptedResponseHeaders(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.Aks.Models.IAgentPoolsDeleteAcceptedResponseHeaders FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.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.Aks.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - [System.ComponentModel.TypeConverter(typeof(AgentPoolsDeleteAcceptedResponseHeadersTypeConverter))] - public partial interface IAgentPoolsDeleteAcceptedResponseHeaders - - { - - } -} \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/generated/api/Models/AgentPoolsDeleteAcceptedResponseHeaders.TypeConverter.cs b/src/Aks/Aks.Autorest/generated/api/Models/AgentPoolsDeleteAcceptedResponseHeaders.TypeConverter.cs deleted file mode 100644 index e9c7da49ec7f..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/AgentPoolsDeleteAcceptedResponseHeaders.TypeConverter.cs +++ /dev/null @@ -1,151 +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.Aks.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class AgentPoolsDeleteAcceptedResponseHeadersTypeConverter : 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) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise - /// false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted 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) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAgentPoolsDeleteAcceptedResponseHeaders ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAgentPoolsDeleteAcceptedResponseHeaders).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return AgentPoolsDeleteAcceptedResponseHeaders.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return AgentPoolsDeleteAcceptedResponseHeaders.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return AgentPoolsDeleteAcceptedResponseHeaders.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// 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/Aks/Aks.Autorest/generated/api/Models/AgentPoolsDeleteAcceptedResponseHeaders.cs b/src/Aks/Aks.Autorest/generated/api/Models/AgentPoolsDeleteAcceptedResponseHeaders.cs deleted file mode 100644 index b6e9630085bf..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/AgentPoolsDeleteAcceptedResponseHeaders.cs +++ /dev/null @@ -1,55 +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.Aks.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Extensions; - - public partial class AgentPoolsDeleteAcceptedResponseHeaders : - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAgentPoolsDeleteAcceptedResponseHeaders, - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAgentPoolsDeleteAcceptedResponseHeadersInternal, - Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IHeaderSerializable - { - - /// Backing field for property. - private string _location; - - [Microsoft.Azure.PowerShell.Cmdlets.Aks.Origin(Microsoft.Azure.PowerShell.Cmdlets.Aks.PropertyOrigin.Owned)] - public string Location { get => this._location; set => this._location = value; } - - /// Creates an new instance. - public AgentPoolsDeleteAcceptedResponseHeaders() - { - - } - - /// - void Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IHeaderSerializable.ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers) - { - if (headers.TryGetValues("Location", out var __locationHeader0)) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAgentPoolsDeleteAcceptedResponseHeadersInternal)this).Location = System.Linq.Enumerable.FirstOrDefault(__locationHeader0) is string __headerLocationHeader0 ? __headerLocationHeader0 : (string)null; - } - } - } - public partial interface IAgentPoolsDeleteAcceptedResponseHeaders - - { - [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"", - SerializedName = @"Location", - PossibleTypes = new [] { typeof(string) })] - string Location { get; set; } - - } - internal partial interface IAgentPoolsDeleteAcceptedResponseHeadersInternal - - { - string Location { get; set; } - - } -} \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/generated/api/Models/AgentPoolsDeleteAcceptedResponseHeaders.json.cs b/src/Aks/Aks.Autorest/generated/api/Models/AgentPoolsDeleteAcceptedResponseHeaders.json.cs deleted file mode 100644 index dd3e99090fd7..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/AgentPoolsDeleteAcceptedResponseHeaders.json.cs +++ /dev/null @@ -1,107 +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.Aks.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Extensions; - - public partial class AgentPoolsDeleteAcceptedResponseHeaders - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json 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 JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject instance to deserialize from. - internal AgentPoolsDeleteAcceptedResponseHeaders(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAgentPoolsDeleteAcceptedResponseHeaders. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAgentPoolsDeleteAcceptedResponseHeaders. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAgentPoolsDeleteAcceptedResponseHeaders FromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json ? new AgentPoolsDeleteAcceptedResponseHeaders(json) : null; - } - - /// - /// 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 . - /// - public Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/generated/api/Models/Api20230201/AgentPool.PowerShell.cs b/src/Aks/Aks.Autorest/generated/api/Models/Api20230201/AgentPool.PowerShell.cs index d799047acf51..b48e39ee267a 100644 --- a/src/Aks/Aks.Autorest/generated/api/Models/Api20230201/AgentPool.PowerShell.cs +++ b/src/Aks/Aks.Autorest/generated/api/Models/Api20230201/AgentPool.PowerShell.cs @@ -72,10 +72,6 @@ internal AgentPool(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IAgentPoolInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IManagedClusterAgentPoolProfileProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IAgentPoolInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.ManagedClusterAgentPoolProfilePropertiesTypeConverter.ConvertFrom); } - if (content.Contains("AzureAsyncOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IAgentPoolInternal)this).AzureAsyncOperation = (string) content.GetValueForProperty("AzureAsyncOperation",((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IAgentPoolInternal)this).AzureAsyncOperation, global::System.Convert.ToString); - } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.ISubResourceInternal)this).Id, global::System.Convert.ToString); @@ -345,10 +341,6 @@ internal AgentPool(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IAgentPoolInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IManagedClusterAgentPoolProfileProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IAgentPoolInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.ManagedClusterAgentPoolProfilePropertiesTypeConverter.ConvertFrom); } - if (content.Contains("AzureAsyncOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IAgentPoolInternal)this).AzureAsyncOperation = (string) content.GetValueForProperty("AzureAsyncOperation",((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IAgentPoolInternal)this).AzureAsyncOperation, global::System.Convert.ToString); - } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.ISubResourceInternal)this).Id, global::System.Convert.ToString); diff --git a/src/Aks/Aks.Autorest/generated/api/Models/Api20230201/AgentPool.cs b/src/Aks/Aks.Autorest/generated/api/Models/Api20230201/AgentPool.cs index c95dce8da9f2..fead7a8a4fc6 100644 --- a/src/Aks/Aks.Autorest/generated/api/Models/Api20230201/AgentPool.cs +++ b/src/Aks/Aks.Autorest/generated/api/Models/Api20230201/AgentPool.cs @@ -11,8 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201 public partial class AgentPool : Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IAgentPool, Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IAgentPoolInternal, - Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IValidates, - Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IHeaderSerializable + Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IValidates { /// /// Backing field for Inherited model ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IManagedClusterAgentPoolProfilePropertiesInternal)Property).AvailabilityZone; set => ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IManagedClusterAgentPoolProfilePropertiesInternal)Property).AvailabilityZone = value ?? null /* arrayOf */; } - /// Backing field for property. - private string _azureAsyncOperation; - - [Microsoft.Azure.PowerShell.Cmdlets.Aks.Origin(Microsoft.Azure.PowerShell.Cmdlets.Aks.PropertyOrigin.Owned)] - public string AzureAsyncOperation { get => this._azureAsyncOperation; set => this._azureAsyncOperation = value; } - /// /// Number of agents (VMs) to host docker containers. Allowed values must be in the range of 0 to 1000 (inclusive) for user /// pools and in the range of 1 to 1000 (inclusive) for system pools. The default value is 1. @@ -394,15 +387,6 @@ public AgentPool() } - /// - void Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IHeaderSerializable.ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers) - { - if (headers.TryGetValues("Azure-AsyncOperation", out var __azureAsyncOperationHeader0)) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IAgentPoolInternal)this).AzureAsyncOperation = System.Linq.Enumerable.FirstOrDefault(__azureAsyncOperationHeader0) is string __headerAzureAsyncOperationHeader0 ? __headerAzureAsyncOperationHeader0 : (string)null; - } - } - /// Validates that this object meets the validation criteria. /// an instance that will receive validation /// events. @@ -430,14 +414,6 @@ public partial interface IAgentPool : SerializedName = @"availabilityZones", PossibleTypes = new [] { typeof(string) })] string[] AvailabilityZone { get; set; } - - [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"", - SerializedName = @"Azure-AsyncOperation", - PossibleTypes = new [] { typeof(string) })] - string AzureAsyncOperation { get; set; } /// /// Number of agents (VMs) to host docker containers. Allowed values must be in the range of 0 to 1000 (inclusive) for user /// pools and in the range of 1 to 1000 (inclusive) for system pools. The default value is 1. @@ -959,8 +935,6 @@ internal partial interface IAgentPoolInternal : /// The list of Availability zones to use for nodes. This can only be specified if the AgentPoolType property is 'VirtualMachineScaleSets'. /// string[] AvailabilityZone { get; set; } - - string AzureAsyncOperation { get; set; } /// /// Number of agents (VMs) to host docker containers. Allowed values must be in the range of 0 to 1000 (inclusive) for user /// pools and in the range of 1 to 1000 (inclusive) for system pools. The default value is 1. diff --git a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersAbortLatestOperationAcceptedResponseHeaders.PowerShell.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersAbortLatestOperationAcceptedResponseHeaders.PowerShell.cs index 45f2a9efb1cf..e0aa76187b41 100644 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersAbortLatestOperationAcceptedResponseHeaders.PowerShell.cs +++ b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersAbortLatestOperationAcceptedResponseHeaders.PowerShell.cs @@ -109,10 +109,6 @@ internal ManagedClustersAbortLatestOperationAcceptedResponseHeaders(global::Syst { ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersAbortLatestOperationAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersAbortLatestOperationAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); } - if (content.Contains("AzureAsyncOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersAbortLatestOperationAcceptedResponseHeadersInternal)this).AzureAsyncOperation = (string) content.GetValueForProperty("AzureAsyncOperation",((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersAbortLatestOperationAcceptedResponseHeadersInternal)this).AzureAsyncOperation, global::System.Convert.ToString); - } AfterDeserializeDictionary(content); } @@ -134,10 +130,6 @@ internal ManagedClustersAbortLatestOperationAcceptedResponseHeaders(global::Syst { ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersAbortLatestOperationAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersAbortLatestOperationAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); } - if (content.Contains("AzureAsyncOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersAbortLatestOperationAcceptedResponseHeadersInternal)this).AzureAsyncOperation = (string) content.GetValueForProperty("AzureAsyncOperation",((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersAbortLatestOperationAcceptedResponseHeadersInternal)this).AzureAsyncOperation, global::System.Convert.ToString); - } AfterDeserializePSObject(content); } diff --git a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersAbortLatestOperationAcceptedResponseHeaders.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersAbortLatestOperationAcceptedResponseHeaders.cs index bb52202b7bba..e20ff9fa1ace 100644 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersAbortLatestOperationAcceptedResponseHeaders.cs +++ b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersAbortLatestOperationAcceptedResponseHeaders.cs @@ -13,12 +13,6 @@ public partial class ManagedClustersAbortLatestOperationAcceptedResponseHeaders Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IHeaderSerializable { - /// Backing field for property. - private string _azureAsyncOperation; - - [Microsoft.Azure.PowerShell.Cmdlets.Aks.Origin(Microsoft.Azure.PowerShell.Cmdlets.Aks.PropertyOrigin.Owned)] - public string AzureAsyncOperation { get => this._azureAsyncOperation; set => this._azureAsyncOperation = value; } - /// Backing field for property. private string _location; @@ -40,23 +34,11 @@ void Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IHeaderSerializable.ReadHead { ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersAbortLatestOperationAcceptedResponseHeadersInternal)this).Location = System.Linq.Enumerable.FirstOrDefault(__locationHeader0) is string __headerLocationHeader0 ? __headerLocationHeader0 : (string)null; } - if (headers.TryGetValues("Azure-AsyncOperation", out var __azureAsyncOperationHeader1)) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersAbortLatestOperationAcceptedResponseHeadersInternal)this).AzureAsyncOperation = System.Linq.Enumerable.FirstOrDefault(__azureAsyncOperationHeader1) is string __headerAzureAsyncOperationHeader1 ? __headerAzureAsyncOperationHeader1 : (string)null; - } } } public partial interface IManagedClustersAbortLatestOperationAcceptedResponseHeaders { - [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"", - SerializedName = @"Azure-AsyncOperation", - PossibleTypes = new [] { typeof(string) })] - string AzureAsyncOperation { get; set; } - [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Info( Required = false, ReadOnly = false, @@ -69,8 +51,6 @@ public partial interface IManagedClustersAbortLatestOperationAcceptedResponseHea internal partial interface IManagedClustersAbortLatestOperationAcceptedResponseHeadersInternal { - string AzureAsyncOperation { get; set; } - string Location { get; set; } } diff --git a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersDeleteAcceptedResponseHeaders.PowerShell.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersDeleteAcceptedResponseHeaders.PowerShell.cs deleted file mode 100644 index e346050df065..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersDeleteAcceptedResponseHeaders.PowerShell.cs +++ /dev/null @@ -1,147 +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.Aks.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.PowerShell; - - [System.ComponentModel.TypeConverter(typeof(ManagedClustersDeleteAcceptedResponseHeadersTypeConverter))] - public partial class ManagedClustersDeleteAcceptedResponseHeaders - { - - /// - /// 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.Aks.Models.IManagedClustersDeleteAcceptedResponseHeaders DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ManagedClustersDeleteAcceptedResponseHeaders(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.Aks.Models.IManagedClustersDeleteAcceptedResponseHeaders DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ManagedClustersDeleteAcceptedResponseHeaders(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.Aks.Models.IManagedClustersDeleteAcceptedResponseHeaders FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ManagedClustersDeleteAcceptedResponseHeaders(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersDeleteAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersDeleteAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ManagedClustersDeleteAcceptedResponseHeaders(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersDeleteAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersDeleteAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); - } - 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.Aks.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - [System.ComponentModel.TypeConverter(typeof(ManagedClustersDeleteAcceptedResponseHeadersTypeConverter))] - public partial interface IManagedClustersDeleteAcceptedResponseHeaders - - { - - } -} \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersDeleteAcceptedResponseHeaders.TypeConverter.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersDeleteAcceptedResponseHeaders.TypeConverter.cs deleted file mode 100644 index beeab7e0bb98..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersDeleteAcceptedResponseHeaders.TypeConverter.cs +++ /dev/null @@ -1,151 +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.Aks.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ManagedClustersDeleteAcceptedResponseHeadersTypeConverter : 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) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, - /// otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted 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) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersDeleteAcceptedResponseHeaders ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersDeleteAcceptedResponseHeaders).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ManagedClustersDeleteAcceptedResponseHeaders.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ManagedClustersDeleteAcceptedResponseHeaders.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ManagedClustersDeleteAcceptedResponseHeaders.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// 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/Aks/Aks.Autorest/generated/api/Models/ManagedClustersDeleteAcceptedResponseHeaders.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersDeleteAcceptedResponseHeaders.cs deleted file mode 100644 index b675702c5c90..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersDeleteAcceptedResponseHeaders.cs +++ /dev/null @@ -1,57 +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.Aks.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Extensions; - - public partial class ManagedClustersDeleteAcceptedResponseHeaders : - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersDeleteAcceptedResponseHeaders, - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersDeleteAcceptedResponseHeadersInternal, - Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IHeaderSerializable - { - - /// Backing field for property. - private string _location; - - [Microsoft.Azure.PowerShell.Cmdlets.Aks.Origin(Microsoft.Azure.PowerShell.Cmdlets.Aks.PropertyOrigin.Owned)] - public string Location { get => this._location; set => this._location = value; } - - /// - /// Creates an new instance. - /// - public ManagedClustersDeleteAcceptedResponseHeaders() - { - - } - - /// - void Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IHeaderSerializable.ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers) - { - if (headers.TryGetValues("Location", out var __locationHeader0)) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersDeleteAcceptedResponseHeadersInternal)this).Location = System.Linq.Enumerable.FirstOrDefault(__locationHeader0) is string __headerLocationHeader0 ? __headerLocationHeader0 : (string)null; - } - } - } - public partial interface IManagedClustersDeleteAcceptedResponseHeaders - - { - [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"", - SerializedName = @"Location", - PossibleTypes = new [] { typeof(string) })] - string Location { get; set; } - - } - internal partial interface IManagedClustersDeleteAcceptedResponseHeadersInternal - - { - string Location { get; set; } - - } -} \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersDeleteAcceptedResponseHeaders.json.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersDeleteAcceptedResponseHeaders.json.cs deleted file mode 100644 index 32d6fa2389b3..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersDeleteAcceptedResponseHeaders.json.cs +++ /dev/null @@ -1,108 +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.Aks.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Extensions; - - public partial class ManagedClustersDeleteAcceptedResponseHeaders - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json 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 JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersDeleteAcceptedResponseHeaders. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersDeleteAcceptedResponseHeaders. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersDeleteAcceptedResponseHeaders FromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json ? new ManagedClustersDeleteAcceptedResponseHeaders(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject instance to deserialize from. - internal ManagedClustersDeleteAcceptedResponseHeaders(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - AfterFromJson(json); - } - - /// - /// 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 . - /// - public Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersGetCommandResultAcceptedResponseHeaders.PowerShell.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersGetCommandResultAcceptedResponseHeaders.PowerShell.cs deleted file mode 100644 index c268af4371de..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersGetCommandResultAcceptedResponseHeaders.PowerShell.cs +++ /dev/null @@ -1,147 +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.Aks.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.PowerShell; - - [System.ComponentModel.TypeConverter(typeof(ManagedClustersGetCommandResultAcceptedResponseHeadersTypeConverter))] - public partial class ManagedClustersGetCommandResultAcceptedResponseHeaders - { - - /// - /// 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.Aks.Models.IManagedClustersGetCommandResultAcceptedResponseHeaders DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ManagedClustersGetCommandResultAcceptedResponseHeaders(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.Aks.Models.IManagedClustersGetCommandResultAcceptedResponseHeaders DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ManagedClustersGetCommandResultAcceptedResponseHeaders(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.Aks.Models.IManagedClustersGetCommandResultAcceptedResponseHeaders FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ManagedClustersGetCommandResultAcceptedResponseHeaders(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersGetCommandResultAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersGetCommandResultAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ManagedClustersGetCommandResultAcceptedResponseHeaders(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersGetCommandResultAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersGetCommandResultAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); - } - 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.Aks.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - [System.ComponentModel.TypeConverter(typeof(ManagedClustersGetCommandResultAcceptedResponseHeadersTypeConverter))] - public partial interface IManagedClustersGetCommandResultAcceptedResponseHeaders - - { - - } -} \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersGetCommandResultAcceptedResponseHeaders.TypeConverter.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersGetCommandResultAcceptedResponseHeaders.TypeConverter.cs deleted file mode 100644 index 2db949de7f6d..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersGetCommandResultAcceptedResponseHeaders.TypeConverter.cs +++ /dev/null @@ -1,153 +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.Aks.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ManagedClustersGetCommandResultAcceptedResponseHeadersTypeConverter : 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) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted 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) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable - /// conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersGetCommandResultAcceptedResponseHeaders ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersGetCommandResultAcceptedResponseHeaders).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ManagedClustersGetCommandResultAcceptedResponseHeaders.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ManagedClustersGetCommandResultAcceptedResponseHeaders.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ManagedClustersGetCommandResultAcceptedResponseHeaders.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// 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/Aks/Aks.Autorest/generated/api/Models/ManagedClustersGetCommandResultAcceptedResponseHeaders.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersGetCommandResultAcceptedResponseHeaders.cs deleted file mode 100644 index 82ec6c2d816c..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersGetCommandResultAcceptedResponseHeaders.cs +++ /dev/null @@ -1,57 +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.Aks.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Extensions; - - public partial class ManagedClustersGetCommandResultAcceptedResponseHeaders : - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersGetCommandResultAcceptedResponseHeaders, - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersGetCommandResultAcceptedResponseHeadersInternal, - Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IHeaderSerializable - { - - /// Backing field for property. - private string _location; - - [Microsoft.Azure.PowerShell.Cmdlets.Aks.Origin(Microsoft.Azure.PowerShell.Cmdlets.Aks.PropertyOrigin.Owned)] - public string Location { get => this._location; set => this._location = value; } - - /// - /// Creates an new instance. - /// - public ManagedClustersGetCommandResultAcceptedResponseHeaders() - { - - } - - /// - void Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IHeaderSerializable.ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers) - { - if (headers.TryGetValues("Location", out var __locationHeader0)) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersGetCommandResultAcceptedResponseHeadersInternal)this).Location = System.Linq.Enumerable.FirstOrDefault(__locationHeader0) is string __headerLocationHeader0 ? __headerLocationHeader0 : (string)null; - } - } - } - public partial interface IManagedClustersGetCommandResultAcceptedResponseHeaders - - { - [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"", - SerializedName = @"Location", - PossibleTypes = new [] { typeof(string) })] - string Location { get; set; } - - } - internal partial interface IManagedClustersGetCommandResultAcceptedResponseHeadersInternal - - { - string Location { get; set; } - - } -} \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersGetCommandResultAcceptedResponseHeaders.json.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersGetCommandResultAcceptedResponseHeaders.json.cs deleted file mode 100644 index 7734fa55e0d6..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersGetCommandResultAcceptedResponseHeaders.json.cs +++ /dev/null @@ -1,108 +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.Aks.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Extensions; - - public partial class ManagedClustersGetCommandResultAcceptedResponseHeaders - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json 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 JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersGetCommandResultAcceptedResponseHeaders. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersGetCommandResultAcceptedResponseHeaders. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersGetCommandResultAcceptedResponseHeaders FromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json ? new ManagedClustersGetCommandResultAcceptedResponseHeaders(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject instance to deserialize from. - internal ManagedClustersGetCommandResultAcceptedResponseHeaders(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - AfterFromJson(json); - } - - /// - /// 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 . - /// - public Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersResetAadProfileAcceptedResponseHeaders.PowerShell.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersResetAadProfileAcceptedResponseHeaders.PowerShell.cs deleted file mode 100644 index 6e24fb66797d..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersResetAadProfileAcceptedResponseHeaders.PowerShell.cs +++ /dev/null @@ -1,147 +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.Aks.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.PowerShell; - - [System.ComponentModel.TypeConverter(typeof(ManagedClustersResetAadProfileAcceptedResponseHeadersTypeConverter))] - public partial class ManagedClustersResetAadProfileAcceptedResponseHeaders - { - - /// - /// 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.Aks.Models.IManagedClustersResetAadProfileAcceptedResponseHeaders DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ManagedClustersResetAadProfileAcceptedResponseHeaders(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.Aks.Models.IManagedClustersResetAadProfileAcceptedResponseHeaders DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ManagedClustersResetAadProfileAcceptedResponseHeaders(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.Aks.Models.IManagedClustersResetAadProfileAcceptedResponseHeaders FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ManagedClustersResetAadProfileAcceptedResponseHeaders(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersResetAadProfileAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersResetAadProfileAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ManagedClustersResetAadProfileAcceptedResponseHeaders(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersResetAadProfileAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersResetAadProfileAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); - } - 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.Aks.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - [System.ComponentModel.TypeConverter(typeof(ManagedClustersResetAadProfileAcceptedResponseHeadersTypeConverter))] - public partial interface IManagedClustersResetAadProfileAcceptedResponseHeaders - - { - - } -} \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersResetAadProfileAcceptedResponseHeaders.TypeConverter.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersResetAadProfileAcceptedResponseHeaders.TypeConverter.cs deleted file mode 100644 index 8ba4ead24a28..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersResetAadProfileAcceptedResponseHeaders.TypeConverter.cs +++ /dev/null @@ -1,153 +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.Aks.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ManagedClustersResetAadProfileAcceptedResponseHeadersTypeConverter : 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) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted 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) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable - /// conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersResetAadProfileAcceptedResponseHeaders ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersResetAadProfileAcceptedResponseHeaders).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ManagedClustersResetAadProfileAcceptedResponseHeaders.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ManagedClustersResetAadProfileAcceptedResponseHeaders.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ManagedClustersResetAadProfileAcceptedResponseHeaders.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// 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/Aks/Aks.Autorest/generated/api/Models/ManagedClustersResetAadProfileAcceptedResponseHeaders.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersResetAadProfileAcceptedResponseHeaders.cs deleted file mode 100644 index a92e03384253..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersResetAadProfileAcceptedResponseHeaders.cs +++ /dev/null @@ -1,57 +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.Aks.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Extensions; - - public partial class ManagedClustersResetAadProfileAcceptedResponseHeaders : - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersResetAadProfileAcceptedResponseHeaders, - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersResetAadProfileAcceptedResponseHeadersInternal, - Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IHeaderSerializable - { - - /// Backing field for property. - private string _location; - - [Microsoft.Azure.PowerShell.Cmdlets.Aks.Origin(Microsoft.Azure.PowerShell.Cmdlets.Aks.PropertyOrigin.Owned)] - public string Location { get => this._location; set => this._location = value; } - - /// - /// Creates an new instance. - /// - public ManagedClustersResetAadProfileAcceptedResponseHeaders() - { - - } - - /// - void Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IHeaderSerializable.ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers) - { - if (headers.TryGetValues("Location", out var __locationHeader0)) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersResetAadProfileAcceptedResponseHeadersInternal)this).Location = System.Linq.Enumerable.FirstOrDefault(__locationHeader0) is string __headerLocationHeader0 ? __headerLocationHeader0 : (string)null; - } - } - } - public partial interface IManagedClustersResetAadProfileAcceptedResponseHeaders - - { - [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"", - SerializedName = @"Location", - PossibleTypes = new [] { typeof(string) })] - string Location { get; set; } - - } - internal partial interface IManagedClustersResetAadProfileAcceptedResponseHeadersInternal - - { - string Location { get; set; } - - } -} \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersResetAadProfileAcceptedResponseHeaders.json.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersResetAadProfileAcceptedResponseHeaders.json.cs deleted file mode 100644 index 17737710676c..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersResetAadProfileAcceptedResponseHeaders.json.cs +++ /dev/null @@ -1,108 +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.Aks.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Extensions; - - public partial class ManagedClustersResetAadProfileAcceptedResponseHeaders - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json 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 JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersResetAadProfileAcceptedResponseHeaders. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersResetAadProfileAcceptedResponseHeaders. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersResetAadProfileAcceptedResponseHeaders FromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json ? new ManagedClustersResetAadProfileAcceptedResponseHeaders(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject instance to deserialize from. - internal ManagedClustersResetAadProfileAcceptedResponseHeaders(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - AfterFromJson(json); - } - - /// - /// 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 . - /// - public Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders.PowerShell.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders.PowerShell.cs deleted file mode 100644 index 7603731fa512..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders.PowerShell.cs +++ /dev/null @@ -1,147 +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.Aks.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.PowerShell; - - [System.ComponentModel.TypeConverter(typeof(ManagedClustersResetServicePrincipalProfileAcceptedResponseHeadersTypeConverter))] - public partial class ManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders - { - - /// - /// 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.Aks.Models.IManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders(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.Aks.Models.IManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders(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.Aks.Models.IManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersResetServicePrincipalProfileAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersResetServicePrincipalProfileAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersResetServicePrincipalProfileAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersResetServicePrincipalProfileAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); - } - 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.Aks.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - [System.ComponentModel.TypeConverter(typeof(ManagedClustersResetServicePrincipalProfileAcceptedResponseHeadersTypeConverter))] - public partial interface IManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders - - { - - } -} \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders.TypeConverter.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders.TypeConverter.cs deleted file mode 100644 index b14639c0ebd5..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders.TypeConverter.cs +++ /dev/null @@ -1,153 +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.Aks.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ManagedClustersResetServicePrincipalProfileAcceptedResponseHeadersTypeConverter : 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) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted 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) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there - /// is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// 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/Aks/Aks.Autorest/generated/api/Models/ManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders.cs deleted file mode 100644 index f514bfae65e0..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders.cs +++ /dev/null @@ -1,57 +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.Aks.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Extensions; - - public partial class ManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders : - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders, - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersResetServicePrincipalProfileAcceptedResponseHeadersInternal, - Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IHeaderSerializable - { - - /// Backing field for property. - private string _location; - - [Microsoft.Azure.PowerShell.Cmdlets.Aks.Origin(Microsoft.Azure.PowerShell.Cmdlets.Aks.PropertyOrigin.Owned)] - public string Location { get => this._location; set => this._location = value; } - - /// - /// Creates an new instance. - /// - public ManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders() - { - - } - - /// - void Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IHeaderSerializable.ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers) - { - if (headers.TryGetValues("Location", out var __locationHeader0)) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersResetServicePrincipalProfileAcceptedResponseHeadersInternal)this).Location = System.Linq.Enumerable.FirstOrDefault(__locationHeader0) is string __headerLocationHeader0 ? __headerLocationHeader0 : (string)null; - } - } - } - public partial interface IManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders - - { - [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"", - SerializedName = @"Location", - PossibleTypes = new [] { typeof(string) })] - string Location { get; set; } - - } - internal partial interface IManagedClustersResetServicePrincipalProfileAcceptedResponseHeadersInternal - - { - string Location { get; set; } - - } -} \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders.json.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders.json.cs deleted file mode 100644 index fcd33c9b6f24..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders.json.cs +++ /dev/null @@ -1,108 +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.Aks.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Extensions; - - public partial class ManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json 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 JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders FromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json ? new ManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject instance to deserialize from. - internal ManagedClustersResetServicePrincipalProfileAcceptedResponseHeaders(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - AfterFromJson(json); - } - - /// - /// 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 . - /// - public Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRotateClusterCertificatesAcceptedResponseHeaders.PowerShell.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRotateClusterCertificatesAcceptedResponseHeaders.PowerShell.cs deleted file mode 100644 index 7539032dd5a5..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRotateClusterCertificatesAcceptedResponseHeaders.PowerShell.cs +++ /dev/null @@ -1,147 +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.Aks.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.PowerShell; - - [System.ComponentModel.TypeConverter(typeof(ManagedClustersRotateClusterCertificatesAcceptedResponseHeadersTypeConverter))] - public partial class ManagedClustersRotateClusterCertificatesAcceptedResponseHeaders - { - - /// - /// 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.Aks.Models.IManagedClustersRotateClusterCertificatesAcceptedResponseHeaders DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ManagedClustersRotateClusterCertificatesAcceptedResponseHeaders(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.Aks.Models.IManagedClustersRotateClusterCertificatesAcceptedResponseHeaders DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ManagedClustersRotateClusterCertificatesAcceptedResponseHeaders(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.Aks.Models.IManagedClustersRotateClusterCertificatesAcceptedResponseHeaders FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ManagedClustersRotateClusterCertificatesAcceptedResponseHeaders(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRotateClusterCertificatesAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRotateClusterCertificatesAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ManagedClustersRotateClusterCertificatesAcceptedResponseHeaders(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRotateClusterCertificatesAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRotateClusterCertificatesAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); - } - 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.Aks.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - [System.ComponentModel.TypeConverter(typeof(ManagedClustersRotateClusterCertificatesAcceptedResponseHeadersTypeConverter))] - public partial interface IManagedClustersRotateClusterCertificatesAcceptedResponseHeaders - - { - - } -} \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRotateClusterCertificatesAcceptedResponseHeaders.TypeConverter.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRotateClusterCertificatesAcceptedResponseHeaders.TypeConverter.cs deleted file mode 100644 index 50a7f14703c0..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRotateClusterCertificatesAcceptedResponseHeaders.TypeConverter.cs +++ /dev/null @@ -1,153 +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.Aks.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ManagedClustersRotateClusterCertificatesAcceptedResponseHeadersTypeConverter : 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) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted 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) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there - /// is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRotateClusterCertificatesAcceptedResponseHeaders ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRotateClusterCertificatesAcceptedResponseHeaders).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ManagedClustersRotateClusterCertificatesAcceptedResponseHeaders.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ManagedClustersRotateClusterCertificatesAcceptedResponseHeaders.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ManagedClustersRotateClusterCertificatesAcceptedResponseHeaders.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// 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/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRotateClusterCertificatesAcceptedResponseHeaders.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRotateClusterCertificatesAcceptedResponseHeaders.cs deleted file mode 100644 index 56ebad14fe0b..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRotateClusterCertificatesAcceptedResponseHeaders.cs +++ /dev/null @@ -1,57 +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.Aks.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Extensions; - - public partial class ManagedClustersRotateClusterCertificatesAcceptedResponseHeaders : - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRotateClusterCertificatesAcceptedResponseHeaders, - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRotateClusterCertificatesAcceptedResponseHeadersInternal, - Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IHeaderSerializable - { - - /// Backing field for property. - private string _location; - - [Microsoft.Azure.PowerShell.Cmdlets.Aks.Origin(Microsoft.Azure.PowerShell.Cmdlets.Aks.PropertyOrigin.Owned)] - public string Location { get => this._location; set => this._location = value; } - - /// - /// Creates an new instance. - /// - public ManagedClustersRotateClusterCertificatesAcceptedResponseHeaders() - { - - } - - /// - void Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IHeaderSerializable.ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers) - { - if (headers.TryGetValues("Location", out var __locationHeader0)) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRotateClusterCertificatesAcceptedResponseHeadersInternal)this).Location = System.Linq.Enumerable.FirstOrDefault(__locationHeader0) is string __headerLocationHeader0 ? __headerLocationHeader0 : (string)null; - } - } - } - public partial interface IManagedClustersRotateClusterCertificatesAcceptedResponseHeaders - - { - [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"", - SerializedName = @"Location", - PossibleTypes = new [] { typeof(string) })] - string Location { get; set; } - - } - internal partial interface IManagedClustersRotateClusterCertificatesAcceptedResponseHeadersInternal - - { - string Location { get; set; } - - } -} \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRotateClusterCertificatesAcceptedResponseHeaders.json.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRotateClusterCertificatesAcceptedResponseHeaders.json.cs deleted file mode 100644 index cecedf3eac7d..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRotateClusterCertificatesAcceptedResponseHeaders.json.cs +++ /dev/null @@ -1,108 +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.Aks.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Extensions; - - public partial class ManagedClustersRotateClusterCertificatesAcceptedResponseHeaders - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json 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 JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRotateClusterCertificatesAcceptedResponseHeaders. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRotateClusterCertificatesAcceptedResponseHeaders. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRotateClusterCertificatesAcceptedResponseHeaders FromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json ? new ManagedClustersRotateClusterCertificatesAcceptedResponseHeaders(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject instance to deserialize from. - internal ManagedClustersRotateClusterCertificatesAcceptedResponseHeaders(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - AfterFromJson(json); - } - - /// - /// 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 . - /// - public Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders.PowerShell.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders.PowerShell.cs deleted file mode 100644 index 7e166b93ab26..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders.PowerShell.cs +++ /dev/null @@ -1,147 +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.Aks.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.PowerShell; - - [System.ComponentModel.TypeConverter(typeof(ManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeadersTypeConverter))] - public partial class ManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders - { - - /// - /// 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.Aks.Models.IManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders(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.Aks.Models.IManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders(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.Aks.Models.IManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); - } - 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.Aks.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - [System.ComponentModel.TypeConverter(typeof(ManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeadersTypeConverter))] - public partial interface IManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders - - { - - } -} \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders.TypeConverter.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders.TypeConverter.cs deleted file mode 100644 index 112805dfe9fe..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders.TypeConverter.cs +++ /dev/null @@ -1,153 +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.Aks.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeadersTypeConverter : 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) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted 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) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if - /// there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// 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/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders.cs deleted file mode 100644 index e56820e4b345..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders.cs +++ /dev/null @@ -1,57 +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.Aks.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Extensions; - - public partial class ManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders : - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders, - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeadersInternal, - Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IHeaderSerializable - { - - /// Backing field for property. - private string _location; - - [Microsoft.Azure.PowerShell.Cmdlets.Aks.Origin(Microsoft.Azure.PowerShell.Cmdlets.Aks.PropertyOrigin.Owned)] - public string Location { get => this._location; set => this._location = value; } - - /// - /// Creates an new instance. - /// - public ManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders() - { - - } - - /// - void Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IHeaderSerializable.ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers) - { - if (headers.TryGetValues("Location", out var __locationHeader0)) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeadersInternal)this).Location = System.Linq.Enumerable.FirstOrDefault(__locationHeader0) is string __headerLocationHeader0 ? __headerLocationHeader0 : (string)null; - } - } - } - public partial interface IManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders - - { - [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"", - SerializedName = @"Location", - PossibleTypes = new [] { typeof(string) })] - string Location { get; set; } - - } - internal partial interface IManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeadersInternal - - { - string Location { get; set; } - - } -} \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders.json.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders.json.cs deleted file mode 100644 index 58727b3836c3..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders.json.cs +++ /dev/null @@ -1,108 +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.Aks.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Extensions; - - public partial class ManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json 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 JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders FromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json ? new ManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject instance to deserialize from. - internal ManagedClustersRotateServiceAccountSigningKeysAcceptedResponseHeaders(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - AfterFromJson(json); - } - - /// - /// 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 . - /// - public Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRunCommandAcceptedResponseHeaders.PowerShell.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRunCommandAcceptedResponseHeaders.PowerShell.cs deleted file mode 100644 index a9ef8bb6b3c8..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRunCommandAcceptedResponseHeaders.PowerShell.cs +++ /dev/null @@ -1,147 +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.Aks.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.PowerShell; - - [System.ComponentModel.TypeConverter(typeof(ManagedClustersRunCommandAcceptedResponseHeadersTypeConverter))] - public partial class ManagedClustersRunCommandAcceptedResponseHeaders - { - - /// - /// 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.Aks.Models.IManagedClustersRunCommandAcceptedResponseHeaders DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ManagedClustersRunCommandAcceptedResponseHeaders(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.Aks.Models.IManagedClustersRunCommandAcceptedResponseHeaders DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ManagedClustersRunCommandAcceptedResponseHeaders(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.Aks.Models.IManagedClustersRunCommandAcceptedResponseHeaders FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ManagedClustersRunCommandAcceptedResponseHeaders(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRunCommandAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRunCommandAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ManagedClustersRunCommandAcceptedResponseHeaders(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRunCommandAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRunCommandAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); - } - 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.Aks.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - [System.ComponentModel.TypeConverter(typeof(ManagedClustersRunCommandAcceptedResponseHeadersTypeConverter))] - public partial interface IManagedClustersRunCommandAcceptedResponseHeaders - - { - - } -} \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRunCommandAcceptedResponseHeaders.TypeConverter.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRunCommandAcceptedResponseHeaders.TypeConverter.cs deleted file mode 100644 index c5a9380539d9..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRunCommandAcceptedResponseHeaders.TypeConverter.cs +++ /dev/null @@ -1,153 +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.Aks.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ManagedClustersRunCommandAcceptedResponseHeadersTypeConverter : 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) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, - /// otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted 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) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable - /// conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRunCommandAcceptedResponseHeaders ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRunCommandAcceptedResponseHeaders).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ManagedClustersRunCommandAcceptedResponseHeaders.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ManagedClustersRunCommandAcceptedResponseHeaders.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ManagedClustersRunCommandAcceptedResponseHeaders.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// 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/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRunCommandAcceptedResponseHeaders.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRunCommandAcceptedResponseHeaders.cs deleted file mode 100644 index 734d3896bd3c..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRunCommandAcceptedResponseHeaders.cs +++ /dev/null @@ -1,57 +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.Aks.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Extensions; - - public partial class ManagedClustersRunCommandAcceptedResponseHeaders : - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRunCommandAcceptedResponseHeaders, - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRunCommandAcceptedResponseHeadersInternal, - Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IHeaderSerializable - { - - /// Backing field for property. - private string _location; - - [Microsoft.Azure.PowerShell.Cmdlets.Aks.Origin(Microsoft.Azure.PowerShell.Cmdlets.Aks.PropertyOrigin.Owned)] - public string Location { get => this._location; set => this._location = value; } - - /// - /// Creates an new instance. - /// - public ManagedClustersRunCommandAcceptedResponseHeaders() - { - - } - - /// - void Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IHeaderSerializable.ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers) - { - if (headers.TryGetValues("Location", out var __locationHeader0)) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRunCommandAcceptedResponseHeadersInternal)this).Location = System.Linq.Enumerable.FirstOrDefault(__locationHeader0) is string __headerLocationHeader0 ? __headerLocationHeader0 : (string)null; - } - } - } - public partial interface IManagedClustersRunCommandAcceptedResponseHeaders - - { - [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"", - SerializedName = @"Location", - PossibleTypes = new [] { typeof(string) })] - string Location { get; set; } - - } - internal partial interface IManagedClustersRunCommandAcceptedResponseHeadersInternal - - { - string Location { get; set; } - - } -} \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRunCommandAcceptedResponseHeaders.json.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRunCommandAcceptedResponseHeaders.json.cs deleted file mode 100644 index c11b76b0d4b4..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersRunCommandAcceptedResponseHeaders.json.cs +++ /dev/null @@ -1,108 +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.Aks.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Extensions; - - public partial class ManagedClustersRunCommandAcceptedResponseHeaders - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json 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 JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRunCommandAcceptedResponseHeaders. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRunCommandAcceptedResponseHeaders. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersRunCommandAcceptedResponseHeaders FromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json ? new ManagedClustersRunCommandAcceptedResponseHeaders(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject instance to deserialize from. - internal ManagedClustersRunCommandAcceptedResponseHeaders(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - AfterFromJson(json); - } - - /// - /// 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 . - /// - public Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersStartAcceptedResponseHeaders.PowerShell.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersStartAcceptedResponseHeaders.PowerShell.cs deleted file mode 100644 index cc8a69449072..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersStartAcceptedResponseHeaders.PowerShell.cs +++ /dev/null @@ -1,147 +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.Aks.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.PowerShell; - - [System.ComponentModel.TypeConverter(typeof(ManagedClustersStartAcceptedResponseHeadersTypeConverter))] - public partial class ManagedClustersStartAcceptedResponseHeaders - { - - /// - /// 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.Aks.Models.IManagedClustersStartAcceptedResponseHeaders DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ManagedClustersStartAcceptedResponseHeaders(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.Aks.Models.IManagedClustersStartAcceptedResponseHeaders DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ManagedClustersStartAcceptedResponseHeaders(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.Aks.Models.IManagedClustersStartAcceptedResponseHeaders FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ManagedClustersStartAcceptedResponseHeaders(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersStartAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersStartAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ManagedClustersStartAcceptedResponseHeaders(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersStartAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersStartAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); - } - 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.Aks.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - [System.ComponentModel.TypeConverter(typeof(ManagedClustersStartAcceptedResponseHeadersTypeConverter))] - public partial interface IManagedClustersStartAcceptedResponseHeaders - - { - - } -} \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersStartAcceptedResponseHeaders.TypeConverter.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersStartAcceptedResponseHeaders.TypeConverter.cs deleted file mode 100644 index 5177a1032eb2..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersStartAcceptedResponseHeaders.TypeConverter.cs +++ /dev/null @@ -1,151 +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.Aks.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ManagedClustersStartAcceptedResponseHeadersTypeConverter : 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) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise - /// false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted 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) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersStartAcceptedResponseHeaders ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersStartAcceptedResponseHeaders).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ManagedClustersStartAcceptedResponseHeaders.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ManagedClustersStartAcceptedResponseHeaders.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ManagedClustersStartAcceptedResponseHeaders.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// 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/Aks/Aks.Autorest/generated/api/Models/ManagedClustersStartAcceptedResponseHeaders.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersStartAcceptedResponseHeaders.cs deleted file mode 100644 index 90fd1feaee44..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersStartAcceptedResponseHeaders.cs +++ /dev/null @@ -1,57 +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.Aks.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Extensions; - - public partial class ManagedClustersStartAcceptedResponseHeaders : - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersStartAcceptedResponseHeaders, - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersStartAcceptedResponseHeadersInternal, - Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IHeaderSerializable - { - - /// Backing field for property. - private string _location; - - [Microsoft.Azure.PowerShell.Cmdlets.Aks.Origin(Microsoft.Azure.PowerShell.Cmdlets.Aks.PropertyOrigin.Owned)] - public string Location { get => this._location; set => this._location = value; } - - /// - /// Creates an new instance. - /// - public ManagedClustersStartAcceptedResponseHeaders() - { - - } - - /// - void Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IHeaderSerializable.ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers) - { - if (headers.TryGetValues("Location", out var __locationHeader0)) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersStartAcceptedResponseHeadersInternal)this).Location = System.Linq.Enumerable.FirstOrDefault(__locationHeader0) is string __headerLocationHeader0 ? __headerLocationHeader0 : (string)null; - } - } - } - public partial interface IManagedClustersStartAcceptedResponseHeaders - - { - [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"", - SerializedName = @"Location", - PossibleTypes = new [] { typeof(string) })] - string Location { get; set; } - - } - internal partial interface IManagedClustersStartAcceptedResponseHeadersInternal - - { - string Location { get; set; } - - } -} \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersStartAcceptedResponseHeaders.json.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersStartAcceptedResponseHeaders.json.cs deleted file mode 100644 index 38c733fc230c..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersStartAcceptedResponseHeaders.json.cs +++ /dev/null @@ -1,107 +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.Aks.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Extensions; - - public partial class ManagedClustersStartAcceptedResponseHeaders - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json 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 JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersStartAcceptedResponseHeaders. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersStartAcceptedResponseHeaders. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersStartAcceptedResponseHeaders FromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json ? new ManagedClustersStartAcceptedResponseHeaders(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject instance to deserialize from. - internal ManagedClustersStartAcceptedResponseHeaders(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - AfterFromJson(json); - } - - /// - /// 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 . - /// - public Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersStopAcceptedResponseHeaders.PowerShell.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersStopAcceptedResponseHeaders.PowerShell.cs deleted file mode 100644 index 94be88f5dfca..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersStopAcceptedResponseHeaders.PowerShell.cs +++ /dev/null @@ -1,145 +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.Aks.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.PowerShell; - - [System.ComponentModel.TypeConverter(typeof(ManagedClustersStopAcceptedResponseHeadersTypeConverter))] - public partial class ManagedClustersStopAcceptedResponseHeaders - { - - /// - /// 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.Aks.Models.IManagedClustersStopAcceptedResponseHeaders DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ManagedClustersStopAcceptedResponseHeaders(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.Aks.Models.IManagedClustersStopAcceptedResponseHeaders DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ManagedClustersStopAcceptedResponseHeaders(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.Aks.Models.IManagedClustersStopAcceptedResponseHeaders FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ManagedClustersStopAcceptedResponseHeaders(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersStopAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersStopAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ManagedClustersStopAcceptedResponseHeaders(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersStopAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersStopAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); - } - 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.Aks.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - [System.ComponentModel.TypeConverter(typeof(ManagedClustersStopAcceptedResponseHeadersTypeConverter))] - public partial interface IManagedClustersStopAcceptedResponseHeaders - - { - - } -} \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersStopAcceptedResponseHeaders.TypeConverter.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersStopAcceptedResponseHeaders.TypeConverter.cs deleted file mode 100644 index eee49d027cf1..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersStopAcceptedResponseHeaders.TypeConverter.cs +++ /dev/null @@ -1,151 +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.Aks.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ManagedClustersStopAcceptedResponseHeadersTypeConverter : 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) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise - /// false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted 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) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersStopAcceptedResponseHeaders ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersStopAcceptedResponseHeaders).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ManagedClustersStopAcceptedResponseHeaders.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ManagedClustersStopAcceptedResponseHeaders.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ManagedClustersStopAcceptedResponseHeaders.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// 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/Aks/Aks.Autorest/generated/api/Models/ManagedClustersStopAcceptedResponseHeaders.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersStopAcceptedResponseHeaders.cs deleted file mode 100644 index d91c7a61c238..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersStopAcceptedResponseHeaders.cs +++ /dev/null @@ -1,57 +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.Aks.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Extensions; - - public partial class ManagedClustersStopAcceptedResponseHeaders : - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersStopAcceptedResponseHeaders, - Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersStopAcceptedResponseHeadersInternal, - Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IHeaderSerializable - { - - /// Backing field for property. - private string _location; - - [Microsoft.Azure.PowerShell.Cmdlets.Aks.Origin(Microsoft.Azure.PowerShell.Cmdlets.Aks.PropertyOrigin.Owned)] - public string Location { get => this._location; set => this._location = value; } - - /// - /// Creates an new instance. - /// - public ManagedClustersStopAcceptedResponseHeaders() - { - - } - - /// - void Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IHeaderSerializable.ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers) - { - if (headers.TryGetValues("Location", out var __locationHeader0)) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersStopAcceptedResponseHeadersInternal)this).Location = System.Linq.Enumerable.FirstOrDefault(__locationHeader0) is string __headerLocationHeader0 ? __headerLocationHeader0 : (string)null; - } - } - } - public partial interface IManagedClustersStopAcceptedResponseHeaders - - { - [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"", - SerializedName = @"Location", - PossibleTypes = new [] { typeof(string) })] - string Location { get; set; } - - } - internal partial interface IManagedClustersStopAcceptedResponseHeadersInternal - - { - string Location { get; set; } - - } -} \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersStopAcceptedResponseHeaders.json.cs b/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersStopAcceptedResponseHeaders.json.cs deleted file mode 100644 index 18a089bbc69b..000000000000 --- a/src/Aks/Aks.Autorest/generated/api/Models/ManagedClustersStopAcceptedResponseHeaders.json.cs +++ /dev/null @@ -1,107 +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.Aks.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Extensions; - - public partial class ManagedClustersStopAcceptedResponseHeaders - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json 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 JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersStopAcceptedResponseHeaders. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersStopAcceptedResponseHeaders. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClustersStopAcceptedResponseHeaders FromJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json ? new ManagedClustersStopAcceptedResponseHeaders(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject instance to deserialize from. - internal ManagedClustersStopAcceptedResponseHeaders(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - AfterFromJson(json); - } - - /// - /// 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 . - /// - public Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksContainerServiceOrchestrator_List.cs b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksContainerServiceOrchestrator_List.cs index d8ad4a8d4475..f365876a4893 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksContainerServiceOrchestrator_List.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksContainerServiceOrchestrator_List.cs @@ -20,6 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20190801.IOrchestratorVersionProfileListResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"Gets a list of supported orchestrators in the specified subscription. The operation returns properties of each orchestrator including version, available upgrades and whether that version or upgrades are in preview.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/orchestrators", ApiVersion = "2019-08-01")] public partial class GetAzAksContainerServiceOrchestrator_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksMaintenanceConfiguration_Get.cs b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksMaintenanceConfiguration_Get.cs index 25291ad5808c..bf442e23a48d 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksMaintenanceConfiguration_Get.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksMaintenanceConfiguration_Get.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IMaintenanceConfiguration))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"Gets the specified maintenance configuration of a managed cluster.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/maintenanceConfigurations/{configName}", ApiVersion = "2023-02-01")] public partial class GetAzAksMaintenanceConfiguration_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksMaintenanceConfiguration_GetViaIdentity.cs b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksMaintenanceConfiguration_GetViaIdentity.cs index 6c4927751255..71a7e2d7f590 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksMaintenanceConfiguration_GetViaIdentity.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksMaintenanceConfiguration_GetViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IMaintenanceConfiguration))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"Gets the specified maintenance configuration of a managed cluster.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/maintenanceConfigurations/{configName}", ApiVersion = "2023-02-01")] public partial class GetAzAksMaintenanceConfiguration_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksMaintenanceConfiguration_List.cs b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksMaintenanceConfiguration_List.cs index 5b3e9d3134f4..987cede353c5 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksMaintenanceConfiguration_List.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksMaintenanceConfiguration_List.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IMaintenanceConfiguration))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"Gets a list of maintenance configurations in the specified managed cluster.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/maintenanceConfigurations", ApiVersion = "2023-02-01")] public partial class GetAzAksMaintenanceConfiguration_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksManagedClusterCommandResult_Get.cs b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksManagedClusterCommandResult_Get.cs index 3fc4074b5792..ab7539e7a2d2 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksManagedClusterCommandResult_Get.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksManagedClusterCommandResult_Get.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IRunCommandResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"Gets the results of a command which has been run on the Managed Cluster.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/commandResults/{commandId}", ApiVersion = "2023-02-01")] public partial class GetAzAksManagedClusterCommandResult_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { @@ -167,12 +168,10 @@ public partial class GetAzAksManagedClusterCommandResult_Get : global::System.Ma /// 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 header result as a from the remote call /// /// Determines if the rest of the onAccepted method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnAccepted(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task headers, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnAccepted(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what @@ -370,17 +369,15 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 202 (Accepted). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the header 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 onAccepted(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task headers) + private async global::System.Threading.Tasks.Task onAccepted(global::System.Net.Http.HttpResponseMessage responseMessage) { using( NoSynchronizationContext ) { var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnAccepted(responseMessage, headers, ref _returnNow); + overrideOnAccepted(responseMessage, ref _returnNow); // if overrideOnAccepted has returned true, then return right away. if ((null != _returnNow && await _returnNow)) { diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksManagedClusterCommandResult_GetViaIdentity.cs b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksManagedClusterCommandResult_GetViaIdentity.cs index f3a0b0c890cc..8beb792a5f70 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksManagedClusterCommandResult_GetViaIdentity.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksManagedClusterCommandResult_GetViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IRunCommandResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"Gets the results of a command which has been run on the Managed Cluster.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/commandResults/{commandId}", ApiVersion = "2023-02-01")] public partial class GetAzAksManagedClusterCommandResult_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { @@ -115,12 +116,10 @@ public partial class GetAzAksManagedClusterCommandResult_GetViaIdentity : global /// 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 header result as a from the remote call /// /// Determines if the rest of the onAccepted method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnAccepted(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task headers, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnAccepted(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what @@ -339,17 +338,15 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 202 (Accepted). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the header 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 onAccepted(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task headers) + private async global::System.Threading.Tasks.Task onAccepted(global::System.Net.Http.HttpResponseMessage responseMessage) { using( NoSynchronizationContext ) { var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnAccepted(responseMessage, headers, ref _returnNow); + overrideOnAccepted(responseMessage, ref _returnNow); // if overrideOnAccepted has returned true, then return right away. if ((null != _returnNow && await _returnNow)) { diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksManagedClusterOSOption_Get.cs b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksManagedClusterOSOption_Get.cs index 38170b40976d..b4d55e6f7693 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksManagedClusterOSOption_Get.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksManagedClusterOSOption_Get.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IOSOptionProfile))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"Gets supported OS options in the specified subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/osOptions/default", ApiVersion = "2023-02-01")] public partial class GetAzAksManagedClusterOSOption_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksManagedClusterOSOption_GetViaIdentity.cs b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksManagedClusterOSOption_GetViaIdentity.cs index 2f244d9ab497..090d3cd0a5a3 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksManagedClusterOSOption_GetViaIdentity.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksManagedClusterOSOption_GetViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IOSOptionProfile))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"Gets supported OS options in the specified subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/osOptions/default", ApiVersion = "2023-02-01")] public partial class GetAzAksManagedClusterOSOption_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksManagedClusterOutboundNetworkDependencyEndpoint_List.cs b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksManagedClusterOutboundNetworkDependencyEndpoint_List.cs index 5e5ec3dbc7e5..46e598a7dbc6 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksManagedClusterOutboundNetworkDependencyEndpoint_List.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksManagedClusterOutboundNetworkDependencyEndpoint_List.cs @@ -19,6 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IOutboundEnvironmentEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed cluster. The operation returns properties of each egress endpoint.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/outboundNetworkDependenciesEndpoints", ApiVersion = "2023-02-01")] public partial class GetAzAksManagedClusterOutboundNetworkDependencyEndpoint_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksNodePoolUpgradeProfile_Get.cs b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksNodePoolUpgradeProfile_Get.cs index 6fb48d7ca352..0ae53317c414 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksNodePoolUpgradeProfile_Get.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksNodePoolUpgradeProfile_Get.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IAgentPoolUpgradeProfile))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"Gets the upgrade profile for an agent pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/upgradeProfiles/default", ApiVersion = "2023-02-01")] public partial class GetAzAksNodePoolUpgradeProfile_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksNodePoolUpgradeProfile_GetViaIdentity.cs b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksNodePoolUpgradeProfile_GetViaIdentity.cs index 37829883d9f5..b32a23d5e17e 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksNodePoolUpgradeProfile_GetViaIdentity.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksNodePoolUpgradeProfile_GetViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IAgentPoolUpgradeProfile))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"Gets the upgrade profile for an agent pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/upgradeProfiles/default", ApiVersion = "2023-02-01")] public partial class GetAzAksNodePoolUpgradeProfile_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksOperation_List.cs b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksOperation_List.cs index b668613ea9dd..8629c6b78369 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksOperation_List.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksOperation_List.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IOperationValue))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"Gets a list of operations.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/providers/Microsoft.ContainerService/operations", ApiVersion = "2023-02-01")] public partial class GetAzAksOperation_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksSnapshot_Get.cs b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksSnapshot_Get.cs index 414142955c09..42c574b6c338 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksSnapshot_Get.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksSnapshot_Get.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.ISnapshot))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"Gets a snapshot.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/snapshots/{resourceName}", ApiVersion = "2023-02-01")] public partial class GetAzAksSnapshot_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksSnapshot_GetViaIdentity.cs b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksSnapshot_GetViaIdentity.cs index 516a6560d32e..59ab2a33714e 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksSnapshot_GetViaIdentity.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksSnapshot_GetViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.ISnapshot))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"Gets a snapshot.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/snapshots/{resourceName}", ApiVersion = "2023-02-01")] public partial class GetAzAksSnapshot_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksSnapshot_List.cs b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksSnapshot_List.cs index 6d3437f1a287..bb0a3830b6c6 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksSnapshot_List.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksSnapshot_List.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.ISnapshot))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"Gets a list of snapshots in the specified subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/snapshots", ApiVersion = "2023-02-01")] public partial class GetAzAksSnapshot_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksSnapshot_List1.cs b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksSnapshot_List1.cs index 509b6b6d3f7b..c029309a9a12 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksSnapshot_List1.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksSnapshot_List1.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.ISnapshot))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"Lists snapshots in the specified subscription and resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/snapshots", ApiVersion = "2023-02-01")] public partial class GetAzAksSnapshot_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksUpgradeProfile_Get.cs b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksUpgradeProfile_Get.cs index 8ac2b9ca6a4b..5d7365722944 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksUpgradeProfile_Get.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksUpgradeProfile_Get.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IManagedClusterUpgradeProfile))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"Gets the upgrade profile of a managed cluster.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/upgradeProfiles/default", ApiVersion = "2023-02-01")] public partial class GetAzAksUpgradeProfile_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksUpgradeProfile_GetViaIdentity.cs b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksUpgradeProfile_GetViaIdentity.cs index 28dcef44db67..ac4da00d8124 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksUpgradeProfile_GetViaIdentity.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/GetAzAksUpgradeProfile_GetViaIdentity.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IManagedClusterUpgradeProfile))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"Gets the upgrade profile of a managed cluster.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/upgradeProfiles/default", ApiVersion = "2023-02-01")] public partial class GetAzAksUpgradeProfile_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/InvokeAzAksAbortAgentPoolLatestOperation_Abort.cs b/src/Aks/Aks.Autorest/generated/cmdlets/InvokeAzAksAbortAgentPoolLatestOperation_Abort.cs index 8c89f54dec8f..392e98020558 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/InvokeAzAksAbortAgentPoolLatestOperation_Abort.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/InvokeAzAksAbortAgentPoolLatestOperation_Abort.cs @@ -20,6 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclusters/{resourceName}/agentPools/{agentPoolName}/abort", ApiVersion = "2023-02-01")] public partial class InvokeAzAksAbortAgentPoolLatestOperation_Abort : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/InvokeAzAksAbortAgentPoolLatestOperation_AbortViaIdentity.cs b/src/Aks/Aks.Autorest/generated/cmdlets/InvokeAzAksAbortAgentPoolLatestOperation_AbortViaIdentity.cs index 40c6d07a04bd..482e20362af0 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/InvokeAzAksAbortAgentPoolLatestOperation_AbortViaIdentity.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/InvokeAzAksAbortAgentPoolLatestOperation_AbortViaIdentity.cs @@ -20,6 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclusters/{resourceName}/agentPools/{agentPoolName}/abort", ApiVersion = "2023-02-01")] public partial class InvokeAzAksAbortAgentPoolLatestOperation_AbortViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/InvokeAzAksAbortManagedClusterLatestOperation_Abort.cs b/src/Aks/Aks.Autorest/generated/cmdlets/InvokeAzAksAbortManagedClusterLatestOperation_Abort.cs index 4e51bb256bb3..c8b89be05477 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/InvokeAzAksAbortManagedClusterLatestOperation_Abort.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/InvokeAzAksAbortManagedClusterLatestOperation_Abort.cs @@ -20,6 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclusters/{resourceName}/abort", ApiVersion = "2023-02-01")] public partial class InvokeAzAksAbortManagedClusterLatestOperation_Abort : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/InvokeAzAksAbortManagedClusterLatestOperation_AbortViaIdentity.cs b/src/Aks/Aks.Autorest/generated/cmdlets/InvokeAzAksAbortManagedClusterLatestOperation_AbortViaIdentity.cs index 983a02791fe6..b1a75b579f76 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/InvokeAzAksAbortManagedClusterLatestOperation_AbortViaIdentity.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/InvokeAzAksAbortManagedClusterLatestOperation_AbortViaIdentity.cs @@ -20,6 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclusters/{resourceName}/abort", ApiVersion = "2023-02-01")] public partial class InvokeAzAksAbortManagedClusterLatestOperation_AbortViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/InvokeAzAksRotateManagedClusterServiceAccountSigningKey_Rotate.cs b/src/Aks/Aks.Autorest/generated/cmdlets/InvokeAzAksRotateManagedClusterServiceAccountSigningKey_Rotate.cs index 0b59d7108c22..965cd0479701 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/InvokeAzAksRotateManagedClusterServiceAccountSigningKey_Rotate.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/InvokeAzAksRotateManagedClusterServiceAccountSigningKey_Rotate.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"Rotates the service account signing keys of a managed cluster.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateServiceAccountSigningKeys", ApiVersion = "2023-02-01")] public partial class InvokeAzAksRotateManagedClusterServiceAccountSigningKey_Rotate : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/InvokeAzAksRotateManagedClusterServiceAccountSigningKey_RotateViaIdentity.cs b/src/Aks/Aks.Autorest/generated/cmdlets/InvokeAzAksRotateManagedClusterServiceAccountSigningKey_RotateViaIdentity.cs index a5ddd8b80efb..9cea60599ecd 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/InvokeAzAksRotateManagedClusterServiceAccountSigningKey_RotateViaIdentity.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/InvokeAzAksRotateManagedClusterServiceAccountSigningKey_RotateViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"Rotates the service account signing keys of a managed cluster.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateServiceAccountSigningKeys", ApiVersion = "2023-02-01")] public partial class InvokeAzAksRotateManagedClusterServiceAccountSigningKey_RotateViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/NewAzAksMaintenanceConfiguration_CreateExpanded.cs b/src/Aks/Aks.Autorest/generated/cmdlets/NewAzAksMaintenanceConfiguration_CreateExpanded.cs index dba5a3c4be89..7a9d59127b8d 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/NewAzAksMaintenanceConfiguration_CreateExpanded.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/NewAzAksMaintenanceConfiguration_CreateExpanded.cs @@ -18,6 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IMaintenanceConfiguration))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"Creates or updates a maintenance configuration in the specified managed cluster.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/maintenanceConfigurations/{configName}", ApiVersion = "2023-02-01")] public partial class NewAzAksMaintenanceConfiguration_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/NewAzAksSnapshot_CreateExpanded.cs b/src/Aks/Aks.Autorest/generated/cmdlets/NewAzAksSnapshot_CreateExpanded.cs index e066cd7c66eb..ff83be62bbf1 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/NewAzAksSnapshot_CreateExpanded.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/NewAzAksSnapshot_CreateExpanded.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.ISnapshot))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"Creates or updates a snapshot.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/snapshots/{resourceName}", ApiVersion = "2023-02-01")] public partial class NewAzAksSnapshot_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/RemoveAzAksMaintenanceConfiguration_Delete.cs b/src/Aks/Aks.Autorest/generated/cmdlets/RemoveAzAksMaintenanceConfiguration_Delete.cs index a42b964f9d6b..b56ba6c4241b 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/RemoveAzAksMaintenanceConfiguration_Delete.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/RemoveAzAksMaintenanceConfiguration_Delete.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"Deletes a maintenance configuration.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/maintenanceConfigurations/{configName}", ApiVersion = "2023-02-01")] public partial class RemoveAzAksMaintenanceConfiguration_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/RemoveAzAksMaintenanceConfiguration_DeleteViaIdentity.cs b/src/Aks/Aks.Autorest/generated/cmdlets/RemoveAzAksMaintenanceConfiguration_DeleteViaIdentity.cs index ed310c9f0001..517ea25841f5 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/RemoveAzAksMaintenanceConfiguration_DeleteViaIdentity.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/RemoveAzAksMaintenanceConfiguration_DeleteViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"Deletes a maintenance configuration.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/maintenanceConfigurations/{configName}", ApiVersion = "2023-02-01")] public partial class RemoveAzAksMaintenanceConfiguration_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/RemoveAzAksSnapshot_Delete.cs b/src/Aks/Aks.Autorest/generated/cmdlets/RemoveAzAksSnapshot_Delete.cs index 4b0700b31074..186d67aa6056 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/RemoveAzAksSnapshot_Delete.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/RemoveAzAksSnapshot_Delete.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"Deletes a snapshot.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/snapshots/{resourceName}", ApiVersion = "2023-02-01")] public partial class RemoveAzAksSnapshot_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/RemoveAzAksSnapshot_DeleteViaIdentity.cs b/src/Aks/Aks.Autorest/generated/cmdlets/RemoveAzAksSnapshot_DeleteViaIdentity.cs index 15c720c87e9a..306098ebf8c8 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/RemoveAzAksSnapshot_DeleteViaIdentity.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/RemoveAzAksSnapshot_DeleteViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"Deletes a snapshot.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/snapshots/{resourceName}", ApiVersion = "2023-02-01")] public partial class RemoveAzAksSnapshot_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/StartAzAksCluster_Start.cs b/src/Aks/Aks.Autorest/generated/cmdlets/StartAzAksCluster_Start.cs index 8aa19e3fd598..ef6b08e7c39d 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/StartAzAksCluster_Start.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/StartAzAksCluster_Start.cs @@ -18,6 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting a cluster.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/start", ApiVersion = "2023-02-01")] public partial class StartAzAksCluster_Start : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/StartAzAksCluster_StartViaIdentity.cs b/src/Aks/Aks.Autorest/generated/cmdlets/StartAzAksCluster_StartViaIdentity.cs index a9b37305694f..a9d7c7eb7772 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/StartAzAksCluster_StartViaIdentity.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/StartAzAksCluster_StartViaIdentity.cs @@ -18,6 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting a cluster.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/start", ApiVersion = "2023-02-01")] public partial class StartAzAksCluster_StartViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/StartAzAksManagedClusterCommand_RunExpanded.cs b/src/Aks/Aks.Autorest/generated/cmdlets/StartAzAksManagedClusterCommand_RunExpanded.cs index 435e3745ad15..0f26ba24ced7 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/StartAzAksManagedClusterCommand_RunExpanded.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/StartAzAksManagedClusterCommand_RunExpanded.cs @@ -19,6 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IRunCommandResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview).")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/runCommand", ApiVersion = "2023-02-01")] public partial class StartAzAksManagedClusterCommand_RunExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/StartAzAksManagedClusterCommand_RunViaIdentityExpanded.cs b/src/Aks/Aks.Autorest/generated/cmdlets/StartAzAksManagedClusterCommand_RunViaIdentityExpanded.cs index 787c9a4658dc..ffb5b588adb6 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/StartAzAksManagedClusterCommand_RunViaIdentityExpanded.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/StartAzAksManagedClusterCommand_RunViaIdentityExpanded.cs @@ -19,6 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IRunCommandResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview).")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/runCommand", ApiVersion = "2023-02-01")] public partial class StartAzAksManagedClusterCommand_RunViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/StopAzAksCluster_Stop.cs b/src/Aks/Aks.Autorest/generated/cmdlets/StopAzAksCluster_Stop.cs index f568257e6c78..b2ff1556eb0d 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/StopAzAksCluster_Stop.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/StopAzAksCluster_Stop.cs @@ -21,6 +21,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about stopping a cluster.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/stop", ApiVersion = "2023-02-01")] public partial class StopAzAksCluster_Stop : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { diff --git a/src/Aks/Aks.Autorest/generated/cmdlets/StopAzAksCluster_StopViaIdentity.cs b/src/Aks/Aks.Autorest/generated/cmdlets/StopAzAksCluster_StopViaIdentity.cs index 6aa853a96a1e..362eb8e60678 100644 --- a/src/Aks/Aks.Autorest/generated/cmdlets/StopAzAksCluster_StopViaIdentity.cs +++ b/src/Aks/Aks.Autorest/generated/cmdlets/StopAzAksCluster_StopViaIdentity.cs @@ -21,6 +21,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Description(@"This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about stopping a cluster.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Aks.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/stop", ApiVersion = "2023-02-01")] public partial class StopAzAksCluster_StopViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.IEventListener { diff --git a/src/Aks/Aks.Autorest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs b/src/Aks/Aks.Autorest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs index 15b60f30bf23..4caa056814ae 100644 --- a/src/Aks/Aks.Autorest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs +++ b/src/Aks/Aks.Autorest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs @@ -33,6 +33,9 @@ public class ExportHelpMarkdown : PSCmdlet [ValidateNotNullOrEmpty] public string ExamplesFolder { get; set; } + [Parameter()] + public SwitchParameter AddComplexInterfaceInfo { get; set; } + protected override void ProcessRecord() { try @@ -41,7 +44,7 @@ protected override void ProcessRecord() var variantGroups = FunctionInfo.Select(fi => fi.BaseObject).Cast() .Join(helpInfos, fi => fi.Name, phi => phi.CmdletName, (fi, phi) => fi.ToVariants(phi)) .Select(va => new VariantGroup(ModuleInfo.Name, va.First().CmdletName, va, String.Empty)); - WriteMarkdowns(variantGroups, ModuleInfo.ToModuleInfo(), DocsFolder, ExamplesFolder); + WriteMarkdowns(variantGroups, ModuleInfo.ToModuleInfo(), DocsFolder, ExamplesFolder, AddComplexInterfaceInfo.IsPresent); } catch (Exception ee) { diff --git a/src/Aks/Aks.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs b/src/Aks/Aks.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs index b57f85714784..29d114e2a7ab 100644 --- a/src/Aks/Aks.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs +++ b/src/Aks/Aks.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs @@ -52,6 +52,9 @@ public class ExportProxyCmdlet : PSCmdlet [Parameter(Mandatory = true, ParameterSetName = "NoDocs")] public SwitchParameter ExcludeDocs { get; set; } + [Parameter(ParameterSetName = "Docs")] + public SwitchParameter AddComplexInterfaceInfo { get; set; } + protected override void ProcessRecord() { try @@ -163,7 +166,7 @@ protected override void ProcessRecord() var isValidProfile = !String.IsNullOrEmpty(profileName) && profileName != NoProfiles; var docsFolder = isValidProfile ? Path.Combine(DocsFolder, profileName) : DocsFolder; var examplesFolder = isValidProfile ? Path.Combine(ExamplesFolder, profileName) : ExamplesFolder; - WriteMarkdowns(variantGroupsByProfile, moduleInfo, docsFolder, examplesFolder); + WriteMarkdowns(variantGroupsByProfile, moduleInfo, docsFolder, examplesFolder, AddComplexInterfaceInfo.IsPresent); } } } diff --git a/src/Aks/Aks.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs b/src/Aks/Aks.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs index aeac9b8cb745..b852f02986d6 100644 --- a/src/Aks/Aks.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs +++ b/src/Aks/Aks.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.PowerShell { internal static class MarkdownRenderer { - public static void WriteMarkdowns(IEnumerable variantGroups, PsModuleHelpInfo moduleHelpInfo, string docsFolder, string examplesFolder) + public static void WriteMarkdowns(IEnumerable variantGroups, PsModuleHelpInfo moduleHelpInfo, string docsFolder, string examplesFolder, bool AddComplexInterfaceInfo = true) { Directory.CreateDirectory(docsFolder); var markdownInfos = variantGroups.Where(vg => !vg.IsInternal).Select(vg => new MarkdownHelpInfo(vg, examplesFolder)).OrderBy(mhi => mhi.CmdletName).ToArray(); @@ -69,18 +69,26 @@ public static void WriteMarkdowns(IEnumerable variantGroups, PsMod } sb.Append($"## NOTES{Environment.NewLine}{Environment.NewLine}"); - sb.Append($"ALIASES{Environment.NewLine}{Environment.NewLine}"); - foreach (var alias in markdownInfo.Aliases) + if (markdownInfo.Aliases.Any()) { - sb.Append($"{alias}{Environment.NewLine}{Environment.NewLine}"); + sb.Append($"ALIASES{Environment.NewLine}{Environment.NewLine}"); } - if (markdownInfo.ComplexInterfaceInfos.Any()) + foreach (var alias in markdownInfo.Aliases) { - sb.Append($"{ComplexParameterHeader}{Environment.NewLine}"); + sb.Append($"{alias}{Environment.NewLine}{Environment.NewLine}"); } - foreach (var complexInterfaceInfo in markdownInfo.ComplexInterfaceInfos) + + if (AddComplexInterfaceInfo) { - sb.Append($"{complexInterfaceInfo.ToNoteOutput(includeDashes: true, includeBackticks: true)}{Environment.NewLine}{Environment.NewLine}"); + if (markdownInfo.ComplexInterfaceInfos.Any()) + { + sb.Append($"{ComplexParameterHeader}{Environment.NewLine}"); + } + foreach (var complexInterfaceInfo in markdownInfo.ComplexInterfaceInfos) + { + sb.Append($"{complexInterfaceInfo.ToNoteOutput(includeDashes: true, includeBackticks: true)}{Environment.NewLine}{Environment.NewLine}"); + } + } sb.Append($"## RELATED LINKS{Environment.NewLine}{Environment.NewLine}"); diff --git a/src/Aks/Aks.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/src/Aks/Aks.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index f276fbacf930..add3d990ccfd 100644 --- a/src/Aks/Aks.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/src/Aks/Aks.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -191,8 +191,15 @@ public BeginOutput(VariantGroup variantGroup) : base(variantGroup) public string GetProcessCustomAttributesAtRuntime() { - return VariantGroup.IsInternal ? "" : $@"{Indent}{Indent}$cmdInfo = Get-Command -Name $mapping[$parameterSet]{Environment.NewLine}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)"; + return VariantGroup.IsInternal ? "" : IsAzure ? $@"{Indent}{Indent}$cmdInfo = Get-Command -Name $mapping[$parameterSet] +{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) +{Indent}{Indent}if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){{ +{Indent}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) +{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) +{Indent}{Indent}}}" : $@"{Indent}{Indent}$cmdInfo = Get-Command -Name $mapping[$parameterSet]{Environment.NewLine}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) +{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)"; } + private string GetTelemetry() { if (!VariantGroup.IsInternal && IsAzure) diff --git a/src/Aks/Aks.Autorest/generated/runtime/BuildTime/PsAttributes.cs b/src/Aks/Aks.Autorest/generated/runtime/BuildTime/PsAttributes.cs index 7aa41aa68a1d..455c9935bfcc 100644 --- a/src/Aks/Aks.Autorest/generated/runtime/BuildTime/PsAttributes.cs +++ b/src/Aks/Aks.Autorest/generated/runtime/BuildTime/PsAttributes.cs @@ -48,6 +48,13 @@ public ProfileAttribute(params string[] profiles) } } + [AttributeUsage(AttributeTargets.Class)] + public class HttpPathAttribute : Attribute + { + public string Path { get; set; } + public string ApiVersion { get; set; } + } + [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] public class CategoryAttribute : Attribute { diff --git a/src/Aks/Aks.Autorest/generated/runtime/MessageAttribute.cs b/src/Aks/Aks.Autorest/generated/runtime/MessageAttribute.cs index 67ad5906bddc..f10432970462 100644 --- a/src/Aks/Aks.Autorest/generated/runtime/MessageAttribute.cs +++ b/src/Aks/Aks.Autorest/generated/runtime/MessageAttribute.cs @@ -21,7 +21,7 @@ public class GenericBreakingChangeAttribute : Attribute //The version the change is effective from, non mandatory public string DeprecateByVersion { get; } - public bool DeprecateByVersionSet { get; } = false; + public string DeprecateByAzVersion { get; } //The date on which the change comes in effect public DateTime ChangeInEfectByDate { get; } @@ -32,23 +32,18 @@ public class GenericBreakingChangeAttribute : Attribute //New way fo calling the cmdlet public string NewWay { get; set; } - public GenericBreakingChangeAttribute(string message) - { - _message = message; - } - - public GenericBreakingChangeAttribute(string message, string deprecateByVersion) + public GenericBreakingChangeAttribute(string message, string deprecateByAzVersion, string deprecateByVersion) { _message = message; + this.DeprecateByAzVersion = deprecateByAzVersion; this.DeprecateByVersion = deprecateByVersion; - this.DeprecateByVersionSet = true; } - public GenericBreakingChangeAttribute(string message, string deprecateByVersion, string changeInEfectByDate) + public GenericBreakingChangeAttribute(string message, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) { _message = message; this.DeprecateByVersion = deprecateByVersion; - this.DeprecateByVersionSet = true; + this.DeprecateByAzVersion = deprecateByAzVersion; if (DateTime.TryParse(changeInEfectByDate, new CultureInfo("en-US"), DateTimeStyles.None, out DateTime result)) { @@ -86,10 +81,8 @@ public void PrintCustomAttributeInfo(Action writeOutput) writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByDateMessage, this.ChangeInEfectByDate.ToString("d"))); } - if (DeprecateByVersionSet) - { - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); - } + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion)); + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); if (OldWay != null && NewWay != null) { @@ -114,18 +107,13 @@ public class CmdletBreakingChangeAttribute : GenericBreakingChangeAttribute public string ReplacementCmdletName { get; set; } - public CmdletBreakingChangeAttribute() : - base(string.Empty) + public CmdletBreakingChangeAttribute(string deprecateByAzVersion, string deprecateByVersion) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion) { } - public CmdletBreakingChangeAttribute(string deprecateByVersione) : - base(string.Empty, deprecateByVersione) - { - } - - public CmdletBreakingChangeAttribute(string deprecateByVersion, string changeInEfectByDate) : - base(string.Empty, deprecateByVersion, changeInEfectByDate) + public CmdletBreakingChangeAttribute(string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate) { } @@ -146,20 +134,15 @@ protected override string GetAttributeSpecificMessage() public class ParameterSetBreakingChangeAttribute : GenericBreakingChangeAttribute { public string[] ChangedParameterSet { set; get; } - public ParameterSetBreakingChangeAttribute(string[] changedParameterSet) : - base(string.Empty) - { - ChangedParameterSet = changedParameterSet; - } - public ParameterSetBreakingChangeAttribute(string[] changedParameterSet, string deprecateByVersione) : - base(string.Empty, deprecateByVersione) + public ParameterSetBreakingChangeAttribute(string[] changedParameterSet, string deprecateByAzVersion, string deprecateByVersion) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion) { ChangedParameterSet = changedParameterSet; } - public ParameterSetBreakingChangeAttribute(string[] changedParameterSet, string deprecateByVersion, string changeInEfectByDate) : - base(string.Empty, deprecateByVersion, changeInEfectByDate) + public ParameterSetBreakingChangeAttribute(string[] changedParameterSet, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate) { ChangedParameterSet = changedParameterSet; } @@ -185,6 +168,11 @@ public class PreviewMessageAttribute : Attribute { public string _message; + public DateTime EstimatedGaDate { get; } + + public bool IsEstimatedGaDateSet { get; } = false; + + public PreviewMessageAttribute() { this._message = Resources.PreviewCmdletMessage; @@ -192,12 +180,26 @@ public PreviewMessageAttribute() public PreviewMessageAttribute(string message) { - this._message = message; + this._message = string.IsNullOrEmpty(message) ? Resources.PreviewCmdletMessage : message; } - public void PrintCustomAttributeInfo(System.Management.Automation.PSCmdlet psCmdlet) + public PreviewMessageAttribute(string message, string estimatedDateOfGa) : this(message) { - psCmdlet.WriteWarning(this._message); + if (DateTime.TryParse(estimatedDateOfGa, new CultureInfo("en-US"), DateTimeStyles.None, out DateTime result)) + { + this.EstimatedGaDate = result; + this.IsEstimatedGaDateSet = true; + } + } + + public void PrintCustomAttributeInfo(Action writeOutput) + { + writeOutput(this._message); + + if (IsEstimatedGaDateSet) + { + writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); + } } public virtual bool IsApplicableToInvocation(InvocationInfo invocation) @@ -219,20 +221,14 @@ public class ParameterBreakingChangeAttribute : GenericBreakingChangeAttribute public String NewParameterType { get; set; } - public ParameterBreakingChangeAttribute(string nameOfParameterChanging) : - base(string.Empty) + public ParameterBreakingChangeAttribute(string nameOfParameterChanging, string deprecateByAzVersion, string deprecateByVersion) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion) { this.NameOfParameterChanging = nameOfParameterChanging; } - public ParameterBreakingChangeAttribute(string nameOfParameterChanging, string deprecateByVersion) : - base(string.Empty, deprecateByVersion) - { - this.NameOfParameterChanging = nameOfParameterChanging; - } - - public ParameterBreakingChangeAttribute(string nameOfParameterChanging, string deprecateByVersion, string changeInEfectByDate) : - base(string.Empty, deprecateByVersion, changeInEfectByDate) + public ParameterBreakingChangeAttribute(string nameOfParameterChanging, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate) { this.NameOfParameterChanging = nameOfParameterChanging; } @@ -298,20 +294,14 @@ public class OutputBreakingChangeAttribute : GenericBreakingChangeAttribute public string[] NewOutputProperties { get; set; } - public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType) : - base(string.Empty) - { - this.DeprecatedCmdLetOutputType = deprecatedCmdletOutputType; - } - - public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType, string deprecateByVersion) : - base(string.Empty, deprecateByVersion) + public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType, string deprecateByAzVersion, string deprecateByVersion) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion) { this.DeprecatedCmdLetOutputType = deprecatedCmdletOutputType; } - public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType, string deprecateByVersion, string changeInEfectByDate) : - base(string.Empty, deprecateByVersion, changeInEfectByDate) + public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate) { this.DeprecatedCmdLetOutputType = deprecatedCmdletOutputType; } diff --git a/src/Aks/Aks.Autorest/generated/runtime/MessageAttributeHelper.cs b/src/Aks/Aks.Autorest/generated/runtime/MessageAttributeHelper.cs index 465bf08c5af2..2e06738cad96 100644 --- a/src/Aks/Aks.Autorest/generated/runtime/MessageAttributeHelper.cs +++ b/src/Aks/Aks.Autorest/generated/runtime/MessageAttributeHelper.cs @@ -35,7 +35,7 @@ public class MessageAttributeHelper * the boundParameterNames is a list of parameters bound to the cmdlet at runtime, * We only process the Parameter beaking change attributes attached only params listed in this list (if present) * */ - public static void ProcessCustomAttributesAtRuntime(CommandInfo commandInfo, InvocationInfo invocationInfo, String parameterSet, System.Management.Automation.PSCmdlet psCmdlet) + public static void ProcessCustomAttributesAtRuntime(CommandInfo commandInfo, InvocationInfo invocationInfo, String parameterSet, System.Management.Automation.PSCmdlet psCmdlet, bool showPreviewMessage = true) { bool supressWarningOrError = false; @@ -57,36 +57,49 @@ public static void ProcessCustomAttributesAtRuntime(CommandInfo commandInfo, Inv { psCmdlet.WriteWarning("The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription."); } + + ProcessBreakingChangeAttributesAtRuntime(commandInfo, invocationInfo, parameterSet, psCmdlet); + + } + + private static void ProcessBreakingChangeAttributesAtRuntime(CommandInfo commandInfo, InvocationInfo invocationInfo, String parameterSet, System.Management.Automation.PSCmdlet psCmdlet) + { List attributes = new List(GetAllBreakingChangeAttributesInType(commandInfo, invocationInfo, parameterSet)); StringBuilder sb = new StringBuilder(); - Action appendBreakingChangeInfo = (string s) => sb.Append(s); + Action appendAttributeMessage = (string s) => sb.Append(s); if (attributes != null && attributes.Count > 0) { - appendBreakingChangeInfo(string.Format(Resources.BreakingChangesAttributesHeaderMessage, commandInfo.Name.Split('_')[0])); + appendAttributeMessage(string.Format(Resources.BreakingChangesAttributesHeaderMessage, commandInfo.Name.Split('_')[0])); foreach (GenericBreakingChangeAttribute attribute in attributes) { - attribute.PrintCustomAttributeInfo(appendBreakingChangeInfo); + attribute.PrintCustomAttributeInfo(appendAttributeMessage); } - appendBreakingChangeInfo(string.Format(Resources.BreakingChangesAttributesFooterMessage, BREAKING_CHANGE_ATTRIBUTE_INFORMATION_LINK)); + appendAttributeMessage(string.Format(Resources.BreakingChangesAttributesFooterMessage, BREAKING_CHANGE_ATTRIBUTE_INFORMATION_LINK)); psCmdlet.WriteWarning(sb.ToString()); } + } + + public static void ProcessPreviewMessageAttributesAtRuntime(CommandInfo commandInfo, InvocationInfo invocationInfo, String parameterSet, System.Management.Automation.PSCmdlet psCmdlet) + { List previewAttributes = new List(GetAllPreviewAttributesInType(commandInfo, invocationInfo)); + StringBuilder sb = new StringBuilder(); + Action appendAttributeMessage = (string s) => sb.Append(s); if (previewAttributes != null && previewAttributes.Count > 0) { foreach (PreviewMessageAttribute attribute in previewAttributes) { - attribute.PrintCustomAttributeInfo(psCmdlet); + attribute.PrintCustomAttributeInfo(appendAttributeMessage); } + psCmdlet.WriteWarning(sb.ToString()); } } - /** * This function takes in a CommandInfo (CmdletInfo or FunctionInfo) * And returns all the deprecation attributes attached to it @@ -128,6 +141,12 @@ private static IEnumerable GetAllBreakingChangeA } return invocationInfo == null ? attributeList : attributeList.Where(e => e.GetType() == typeof(ParameterSetBreakingChangeAttribute) ? ((ParameterSetBreakingChangeAttribute)e).IsApplicableToInvocation(invocationInfo, parameterSet) : e.IsApplicableToInvocation(invocationInfo)); } + + public static bool ContainsPreviewAttribute(CommandInfo commandInfo, InvocationInfo invocationInfo) + { + return GetAllPreviewAttributesInType(commandInfo, invocationInfo)?.Count() > 0; + } + private static IEnumerable GetAllPreviewAttributesInType(CommandInfo commandInfo, InvocationInfo invocationInfo) { List attributeList = new List(); diff --git a/src/Aks/Aks.Autorest/generated/runtime/Properties/Resources.Designer.cs b/src/Aks/Aks.Autorest/generated/runtime/Properties/Resources.Designer.cs index 6685df2defd1..faf5d023b0f6 100644 --- a/src/Aks/Aks.Autorest/generated/runtime/Properties/Resources.Designer.cs +++ b/src/Aks/Aks.Autorest/generated/runtime/Properties/Resources.Designer.cs @@ -734,7 +734,7 @@ public static string BreakingChangesAttributesInEffectByDateMessage } /// - /// Looks up a localized string similar to Note :The change is expected to take effect from the version : '{0}' + /// Looks up a localized string similar to Note :The change is expected to take effect from version : '{0}' /// ///. /// @@ -746,6 +746,19 @@ public static string BreakingChangesAttributesInEffectByVersion } } + /// + /// Looks up a localized string similar to Note :The change is expected to take effect from az version : '{0}' + /// + ///. + /// + public static string BreakingChangesAttributesInEffectByAzVersion + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesInEffectByAzVersion", resourceCulture); + } + } + /// /// Looks up a localized string similar to ```powershell ///# Old @@ -3122,7 +3135,16 @@ public static string PortalInstructionsGit } /// - /// Looks up a localized string similar to This cmdlet is in preview. The functionality may not be available in the selected subscription. + /// Looks up a localized string similar to The estimated generally available date is '{0}'.. + /// + public static string PreviewCmdletETAMessage { + get { + return ResourceManager.GetString("PreviewCmdletETAMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to This cmdlet is in preview. Its behavior is subject to change based on customer feedback.. /// public static string PreviewCmdletMessage { @@ -5630,4 +5652,4 @@ public static string YesHint } } } -} +} \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/generated/runtime/Properties/Resources.resx b/src/Aks/Aks.Autorest/generated/runtime/Properties/Resources.resx index 598cd53e958a..a08a2e50172b 100644 --- a/src/Aks/Aks.Autorest/generated/runtime/Properties/Resources.resx +++ b/src/Aks/Aks.Autorest/generated/runtime/Properties/Resources.resx @@ -1705,7 +1705,7 @@ Use the Enable-AzureDataCollection cmdlet to turn the feature On. The cmdlet can -- The change is expected to take effect from the version : '{0}' +- The change is expected to take effect from version : '{0}' ```powershell @@ -1736,6 +1736,12 @@ The type of the parameter is changing from '{0}' to '{1}'. Note : Go to {0} for steps to suppress this breaking change warning, and other information on breaking changes in Azure PowerShell. - This cmdlet is in preview. The functionality may not be available in the selected subscription. + This cmdlet is in preview. Its behavior is subject to change based on customer feedback. + + + The estimated generally available date is '{0}'. + + + - The change is expected to take effect from Az version : '{0}' \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/help/Get-AzAksMaintenanceConfiguration.md b/src/Aks/Aks.Autorest/help/Get-AzAksMaintenanceConfiguration.md index bca654f0b293..16d6d1ae2a09 100644 --- a/src/Aks/Aks.Autorest/help/Get-AzAksMaintenanceConfiguration.md +++ b/src/Aks/Aks.Autorest/help/Get-AzAksMaintenanceConfiguration.md @@ -186,24 +186,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## 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 - - `[AgentPoolName ]`: The name of the agent pool. - - `[CommandId ]`: Id of the command. - - `[ConfigName ]`: The name of the maintenance configuration. - - `[Id ]`: Resource identity path - - `[Location ]`: The name of Azure region. - - `[PrivateEndpointConnectionName ]`: The name of the private endpoint connection. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ResourceName ]`: The name of the managed cluster resource. - - `[RoleName ]`: The name of the role for managed cluster accessProfile resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/Aks/Aks.Autorest/help/Get-AzAksManagedClusterCommandResult.md b/src/Aks/Aks.Autorest/help/Get-AzAksManagedClusterCommandResult.md index 7f0a4f159e49..8845c58c2497 100644 --- a/src/Aks/Aks.Autorest/help/Get-AzAksManagedClusterCommandResult.md +++ b/src/Aks/Aks.Autorest/help/Get-AzAksManagedClusterCommandResult.md @@ -172,24 +172,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## 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 - - `[AgentPoolName ]`: The name of the agent pool. - - `[CommandId ]`: Id of the command. - - `[ConfigName ]`: The name of the maintenance configuration. - - `[Id ]`: Resource identity path - - `[Location ]`: The name of Azure region. - - `[PrivateEndpointConnectionName ]`: The name of the private endpoint connection. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ResourceName ]`: The name of the managed cluster resource. - - `[RoleName ]`: The name of the role for managed cluster accessProfile resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/Aks/Aks.Autorest/help/Get-AzAksManagedClusterOSOption.md b/src/Aks/Aks.Autorest/help/Get-AzAksManagedClusterOSOption.md index 84d28da041bb..f9b91621f760 100644 --- a/src/Aks/Aks.Autorest/help/Get-AzAksManagedClusterOSOption.md +++ b/src/Aks/Aks.Autorest/help/Get-AzAksManagedClusterOSOption.md @@ -134,24 +134,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## 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 - - `[AgentPoolName ]`: The name of the agent pool. - - `[CommandId ]`: Id of the command. - - `[ConfigName ]`: The name of the maintenance configuration. - - `[Id ]`: Resource identity path - - `[Location ]`: The name of Azure region. - - `[PrivateEndpointConnectionName ]`: The name of the private endpoint connection. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ResourceName ]`: The name of the managed cluster resource. - - `[RoleName ]`: The name of the role for managed cluster accessProfile resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/Aks/Aks.Autorest/help/Get-AzAksManagedClusterOutboundNetworkDependencyEndpoint.md b/src/Aks/Aks.Autorest/help/Get-AzAksManagedClusterOutboundNetworkDependencyEndpoint.md index 314783cec134..6b4fd31f6c08 100644 --- a/src/Aks/Aks.Autorest/help/Get-AzAksManagedClusterOutboundNetworkDependencyEndpoint.md +++ b/src/Aks/Aks.Autorest/help/Get-AzAksManagedClusterOutboundNetworkDependencyEndpoint.md @@ -118,7 +118,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Aks/Aks.Autorest/help/Get-AzAksNodePoolUpgradeProfile.md b/src/Aks/Aks.Autorest/help/Get-AzAksNodePoolUpgradeProfile.md index abee68231ea7..61fd43f23faa 100644 --- a/src/Aks/Aks.Autorest/help/Get-AzAksNodePoolUpgradeProfile.md +++ b/src/Aks/Aks.Autorest/help/Get-AzAksNodePoolUpgradeProfile.md @@ -149,24 +149,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## 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 - - `[AgentPoolName ]`: The name of the agent pool. - - `[CommandId ]`: Id of the command. - - `[ConfigName ]`: The name of the maintenance configuration. - - `[Id ]`: Resource identity path - - `[Location ]`: The name of Azure region. - - `[PrivateEndpointConnectionName ]`: The name of the private endpoint connection. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ResourceName ]`: The name of the managed cluster resource. - - `[RoleName ]`: The name of the role for managed cluster accessProfile resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/Aks/Aks.Autorest/help/Get-AzAksSnapshot.md b/src/Aks/Aks.Autorest/help/Get-AzAksSnapshot.md index 8667cd4ff465..eafd452a9c21 100644 --- a/src/Aks/Aks.Autorest/help/Get-AzAksSnapshot.md +++ b/src/Aks/Aks.Autorest/help/Get-AzAksSnapshot.md @@ -189,24 +189,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## 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 - - `[AgentPoolName ]`: The name of the agent pool. - - `[CommandId ]`: Id of the command. - - `[ConfigName ]`: The name of the maintenance configuration. - - `[Id ]`: Resource identity path - - `[Location ]`: The name of Azure region. - - `[PrivateEndpointConnectionName ]`: The name of the private endpoint connection. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ResourceName ]`: The name of the managed cluster resource. - - `[RoleName ]`: The name of the role for managed cluster accessProfile resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/Aks/Aks.Autorest/help/Get-AzAksUpgradeProfile.md b/src/Aks/Aks.Autorest/help/Get-AzAksUpgradeProfile.md index 9cb709ed353d..5d2ea560051f 100644 --- a/src/Aks/Aks.Autorest/help/Get-AzAksUpgradeProfile.md +++ b/src/Aks/Aks.Autorest/help/Get-AzAksUpgradeProfile.md @@ -138,22 +138,5 @@ ALIASES Get-AzAksClusterUpgradeProfile -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 - - `[AgentPoolName ]`: The name of the agent pool. - - `[CommandId ]`: Id of the command. - - `[ConfigName ]`: The name of the maintenance configuration. - - `[Id ]`: Resource identity path - - `[Location ]`: The name of Azure region. - - `[PrivateEndpointConnectionName ]`: The name of the private endpoint connection. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ResourceName ]`: The name of the managed cluster resource. - - `[RoleName ]`: The name of the role for managed cluster accessProfile resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/Aks/Aks.Autorest/help/Get-AzAksVersion.md b/src/Aks/Aks.Autorest/help/Get-AzAksVersion.md index a8fed7a34be5..8dee94b812dc 100644 --- a/src/Aks/Aks.Autorest/help/Get-AzAksVersion.md +++ b/src/Aks/Aks.Autorest/help/Get-AzAksVersion.md @@ -103,7 +103,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Aks/Aks.Autorest/help/Install-AzAksCliTool.md b/src/Aks/Aks.Autorest/help/Install-AzAksCliTool.md index 77c01745760e..1b9f76a0a5f2 100644 --- a/src/Aks/Aks.Autorest/help/Install-AzAksCliTool.md +++ b/src/Aks/Aks.Autorest/help/Install-AzAksCliTool.md @@ -222,7 +222,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Aks/Aks.Autorest/help/Invoke-AzAksAbortAgentPoolLatestOperation.md b/src/Aks/Aks.Autorest/help/Invoke-AzAksAbortAgentPoolLatestOperation.md index 52f9a46fd588..66be01d050b7 100644 --- a/src/Aks/Aks.Autorest/help/Invoke-AzAksAbortAgentPoolLatestOperation.md +++ b/src/Aks/Aks.Autorest/help/Invoke-AzAksAbortAgentPoolLatestOperation.md @@ -227,24 +227,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## 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 - - `[AgentPoolName ]`: The name of the agent pool. - - `[CommandId ]`: Id of the command. - - `[ConfigName ]`: The name of the maintenance configuration. - - `[Id ]`: Resource identity path - - `[Location ]`: The name of Azure region. - - `[PrivateEndpointConnectionName ]`: The name of the private endpoint connection. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ResourceName ]`: The name of the managed cluster resource. - - `[RoleName ]`: The name of the role for managed cluster accessProfile resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/Aks/Aks.Autorest/help/Invoke-AzAksAbortManagedClusterLatestOperation.md b/src/Aks/Aks.Autorest/help/Invoke-AzAksAbortManagedClusterLatestOperation.md index ae2ab6cc5053..5accf11ebfa5 100644 --- a/src/Aks/Aks.Autorest/help/Invoke-AzAksAbortManagedClusterLatestOperation.md +++ b/src/Aks/Aks.Autorest/help/Invoke-AzAksAbortManagedClusterLatestOperation.md @@ -212,24 +212,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## 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 - - `[AgentPoolName ]`: The name of the agent pool. - - `[CommandId ]`: Id of the command. - - `[ConfigName ]`: The name of the maintenance configuration. - - `[Id ]`: Resource identity path - - `[Location ]`: The name of Azure region. - - `[PrivateEndpointConnectionName ]`: The name of the private endpoint connection. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ResourceName ]`: The name of the managed cluster resource. - - `[RoleName ]`: The name of the role for managed cluster accessProfile resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/Aks/Aks.Autorest/help/Invoke-AzAksRotateManagedClusterServiceAccountSigningKey.md b/src/Aks/Aks.Autorest/help/Invoke-AzAksRotateManagedClusterServiceAccountSigningKey.md index 5155e0c16cbc..d8ebc8854fda 100644 --- a/src/Aks/Aks.Autorest/help/Invoke-AzAksRotateManagedClusterServiceAccountSigningKey.md +++ b/src/Aks/Aks.Autorest/help/Invoke-AzAksRotateManagedClusterServiceAccountSigningKey.md @@ -206,24 +206,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## 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 - - `[AgentPoolName ]`: The name of the agent pool. - - `[CommandId ]`: Id of the command. - - `[ConfigName ]`: The name of the maintenance configuration. - - `[Id ]`: Resource identity path - - `[Location ]`: The name of Azure region. - - `[PrivateEndpointConnectionName ]`: The name of the private endpoint connection. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ResourceName ]`: The name of the managed cluster resource. - - `[RoleName ]`: The name of the role for managed cluster accessProfile resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/Aks/Aks.Autorest/help/New-AzAksMaintenanceConfiguration.md b/src/Aks/Aks.Autorest/help/New-AzAksMaintenanceConfiguration.md index 42b9d6ca32da..07d33db87d4b 100644 --- a/src/Aks/Aks.Autorest/help/New-AzAksMaintenanceConfiguration.md +++ b/src/Aks/Aks.Autorest/help/New-AzAksMaintenanceConfiguration.md @@ -191,20 +191,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## 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. - - -`NOTALLOWEDTIME `: Time slots on which upgrade is not allowed. - - `[End ]`: The end of a time span - - `[Start ]`: The start of a time span - -`TIMEINWEEK `: If two array entries specify the same day of the week, the applied configuration is the union of times in both entries. - - `[Day ]`: The day of the week. - - `[HourSlot ]`: Each integer hour represents a time range beginning at 0m after the hour ending at the next hour (non-inclusive). 0 corresponds to 00:00 UTC, 23 corresponds to 23:00 UTC. Specifying [0, 1] means the 00:00 - 02:00 UTC time range. - ## RELATED LINKS diff --git a/src/Aks/Aks.Autorest/help/New-AzAksSnapshot.md b/src/Aks/Aks.Autorest/help/New-AzAksSnapshot.md index 39a14b730964..c0f62ddb3cbf 100644 --- a/src/Aks/Aks.Autorest/help/New-AzAksSnapshot.md +++ b/src/Aks/Aks.Autorest/help/New-AzAksSnapshot.md @@ -205,7 +205,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Aks/Aks.Autorest/help/New-AzAksTimeInWeekObject.md b/src/Aks/Aks.Autorest/help/New-AzAksTimeInWeekObject.md index f99c24e025d9..d425ea5fc3ce 100644 --- a/src/Aks/Aks.Autorest/help/New-AzAksTimeInWeekObject.md +++ b/src/Aks/Aks.Autorest/help/New-AzAksTimeInWeekObject.md @@ -81,7 +81,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Aks/Aks.Autorest/help/New-AzAksTimeSpanObject.md b/src/Aks/Aks.Autorest/help/New-AzAksTimeSpanObject.md index e26171023804..1cdbbf6909f9 100644 --- a/src/Aks/Aks.Autorest/help/New-AzAksTimeSpanObject.md +++ b/src/Aks/Aks.Autorest/help/New-AzAksTimeSpanObject.md @@ -80,7 +80,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Aks/Aks.Autorest/help/Remove-AzAksMaintenanceConfiguration.md b/src/Aks/Aks.Autorest/help/Remove-AzAksMaintenanceConfiguration.md index 9c29018f842a..7d269c439796 100644 --- a/src/Aks/Aks.Autorest/help/Remove-AzAksMaintenanceConfiguration.md +++ b/src/Aks/Aks.Autorest/help/Remove-AzAksMaintenanceConfiguration.md @@ -198,24 +198,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## 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 - - `[AgentPoolName ]`: The name of the agent pool. - - `[CommandId ]`: Id of the command. - - `[ConfigName ]`: The name of the maintenance configuration. - - `[Id ]`: Resource identity path - - `[Location ]`: The name of Azure region. - - `[PrivateEndpointConnectionName ]`: The name of the private endpoint connection. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ResourceName ]`: The name of the managed cluster resource. - - `[RoleName ]`: The name of the role for managed cluster accessProfile resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/Aks/Aks.Autorest/help/Remove-AzAksSnapshot.md b/src/Aks/Aks.Autorest/help/Remove-AzAksSnapshot.md index fca649e59f88..6dc961f37792 100644 --- a/src/Aks/Aks.Autorest/help/Remove-AzAksSnapshot.md +++ b/src/Aks/Aks.Autorest/help/Remove-AzAksSnapshot.md @@ -183,24 +183,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## 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 - - `[AgentPoolName ]`: The name of the agent pool. - - `[CommandId ]`: Id of the command. - - `[ConfigName ]`: The name of the maintenance configuration. - - `[Id ]`: Resource identity path - - `[Location ]`: The name of Azure region. - - `[PrivateEndpointConnectionName ]`: The name of the private endpoint connection. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ResourceName ]`: The name of the managed cluster resource. - - `[RoleName ]`: The name of the role for managed cluster accessProfile resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/Aks/Aks.Autorest/help/Start-AzAksCluster.md b/src/Aks/Aks.Autorest/help/Start-AzAksCluster.md index 58f954cd88d8..4ade2d134bac 100644 --- a/src/Aks/Aks.Autorest/help/Start-AzAksCluster.md +++ b/src/Aks/Aks.Autorest/help/Start-AzAksCluster.md @@ -212,24 +212,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## 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 - - `[AgentPoolName ]`: The name of the agent pool. - - `[CommandId ]`: Id of the command. - - `[ConfigName ]`: The name of the maintenance configuration. - - `[Id ]`: Resource identity path - - `[Location ]`: The name of Azure region. - - `[PrivateEndpointConnectionName ]`: The name of the private endpoint connection. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ResourceName ]`: The name of the managed cluster resource. - - `[RoleName ]`: The name of the role for managed cluster accessProfile resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/Aks/Aks.Autorest/help/Start-AzAksManagedClusterCommand.md b/src/Aks/Aks.Autorest/help/Start-AzAksManagedClusterCommand.md index f62493b87270..1d46da090910 100644 --- a/src/Aks/Aks.Autorest/help/Start-AzAksManagedClusterCommand.md +++ b/src/Aks/Aks.Autorest/help/Start-AzAksManagedClusterCommand.md @@ -275,24 +275,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## 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 - - `[AgentPoolName ]`: The name of the agent pool. - - `[CommandId ]`: Id of the command. - - `[ConfigName ]`: The name of the maintenance configuration. - - `[Id ]`: Resource identity path - - `[Location ]`: The name of Azure region. - - `[PrivateEndpointConnectionName ]`: The name of the private endpoint connection. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ResourceName ]`: The name of the managed cluster resource. - - `[RoleName ]`: The name of the role for managed cluster accessProfile resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/Aks/Aks.Autorest/help/Stop-AzAksCluster.md b/src/Aks/Aks.Autorest/help/Stop-AzAksCluster.md index 9ed741537a77..55f318e573ba 100644 --- a/src/Aks/Aks.Autorest/help/Stop-AzAksCluster.md +++ b/src/Aks/Aks.Autorest/help/Stop-AzAksCluster.md @@ -218,24 +218,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## 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 - - `[AgentPoolName ]`: The name of the agent pool. - - `[CommandId ]`: Id of the command. - - `[ConfigName ]`: The name of the maintenance configuration. - - `[Id ]`: Resource identity path - - `[Location ]`: The name of Azure region. - - `[PrivateEndpointConnectionName ]`: The name of the private endpoint connection. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ResourceName ]`: The name of the managed cluster resource. - - `[RoleName ]`: The name of the role for managed cluster accessProfile resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/Aks/Aks/Az.Aks.psd1 b/src/Aks/Aks/Az.Aks.psd1 index 7e2fe0e05184..53c2b973f7d8 100644 --- a/src/Aks/Aks/Az.Aks.psd1 +++ b/src/Aks/Aks/Az.Aks.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 12/5/2023 +# Generated on: 1/25/2024 # @{ @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.13.2'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.15.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Aks.Autorest/bin/Az.Aks.private.dll', diff --git a/src/Aks/Aks/ChangeLog.md b/src/Aks/Aks/ChangeLog.md index d0a608b383c8..5abeeb650adf 100644 --- a/src/Aks/Aks/ChangeLog.md +++ b/src/Aks/Aks/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fixed the resolve path issue in `Install-AzAksCliTool`. ## Version 6.0.0 * Removed parameter `DockerBridgeCidr` from `New-AzAksCluster`