diff --git a/src/ConnectedKubernetes/Az.ConnectedKubernetes.format.ps1xml b/src/ConnectedKubernetes/Az.ConnectedKubernetes.format.ps1xml index abea45198d67..222454d8bf39 100644 --- a/src/ConnectedKubernetes/Az.ConnectedKubernetes.format.ps1xml +++ b/src/ConnectedKubernetes/Az.ConnectedKubernetes.format.ps1xml @@ -36,18 +36,12 @@ - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedCluster + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ErrorAdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedCluster + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ErrorAdditionalInfo - - - - - - @@ -55,12 +49,6 @@ - - Location - - - Name - Type @@ -70,33 +58,33 @@ - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterAadProfile + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ErrorDetail - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterAadProfile + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ErrorDetail - + - + - + - ClientAppId + Code - ServerAppId + Message - TenantId + Target @@ -104,17 +92,14 @@ - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterIdentity + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.Resource - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterIdentity + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.Resource - - - - + @@ -124,10 +109,7 @@ - PrincipalId - - - TenantId + Name Type @@ -138,21 +120,33 @@ - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterList + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.TrackedResource - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterList + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.TrackedResource - + + + + + + + - NextLink + Name + + + Type + + + Location @@ -160,21 +154,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterPatchProperties + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.TrackedResourceTags - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterPatchProperties + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.TrackedResourceTags - + - AgentPublicKeyCertificate + Item @@ -182,21 +176,33 @@ - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterPatchTags + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedCluster - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterPatchTags + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedCluster - + + + + + + + - Item + Location + + + Name + + + Type @@ -204,45 +210,33 @@ - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterProperties + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedClusterIdentity - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterProperties + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedClusterIdentity - - - - - - - + - + - + - AgentPublicKeyCertificate - - - AgentVersion - - - KubernetesVersion + PrincipalId - ProvisioningState + TenantId - TotalNodeCount + Type @@ -250,27 +244,43 @@ - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.CredentialResult + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedClusterList - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.CredentialResult + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedClusterList - - - - + - Name + NextLink + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedClusterPatchTags + + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedClusterPatchTags + + + + + + + + + + - Value + Item @@ -278,27 +288,87 @@ - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ErrorDetails + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedClusterProperties - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ErrorDetails + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedClusterProperties - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - Code + AgentPublicKeyCertificate - Message + AgentVersion + + + ConnectivityStatus + + + Distribution + + + Infrastructure + + + KubernetesVersion + + + LastConnectivityTime + + + ManagedIdentityCertificateExpirationTime + + + Offering + + + ProvisioningState + + + TotalCoreCount + + + TotalNodeCount @@ -306,9 +376,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.Operation + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.Operation - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.Operation + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.Operation @@ -328,9 +398,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.OperationDisplay + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.OperationDisplay - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.OperationDisplay + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.OperationDisplay @@ -368,9 +438,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.OperationList + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.OperationList - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.OperationList + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.OperationList @@ -390,83 +460,51 @@ - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.Resource + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.SystemData - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.Resource + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.SystemData - + - + - - - - - - Name - - - Type - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.TrackedResource - - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.TrackedResource - - - - + - + - + + + + - Name + CreatedAt - Type + CreatedBy - Location + CreatedByType - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.TrackedResourceTags - - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.TrackedResourceTags - - - - - - - - - - - Item + LastModifiedAt + + + LastModifiedBy + + + LastModifiedByType diff --git a/src/ConnectedKubernetes/Az.ConnectedKubernetes.psd1 b/src/ConnectedKubernetes/Az.ConnectedKubernetes.psd1 index dfb89ea88860..e48a1dc9fefd 100644 --- a/src/ConnectedKubernetes/Az.ConnectedKubernetes.psd1 +++ b/src/ConnectedKubernetes/Az.ConnectedKubernetes.psd1 @@ -1,25 +1,133 @@ +# +# Module manifest for module 'Az.ConnectedKubernetes' +# +# Generated by: Microsoft Corporation +# +# Generated on: 2021-02-23 +# + @{ - GUID = '59df8ab1-442a-41ae-9b55-60b505bae789' - RootModule = './Az.ConnectedKubernetes.psm1' - ModuleVersion = '0.1.0' - CompatiblePSEditions = 'Core', 'Desktop' - Author = 'Microsoft Corporation' - CompanyName = 'Microsoft Corporation' - Copyright = 'Microsoft Corporation. All rights reserved.' - Description = 'Microsoft Azure PowerShell: ConnectedKubernetes cmdlets' - PowerShellVersion = '5.1' - DotNetFrameworkVersion = '4.7.2' - RequiredAssemblies = './bin/Az.ConnectedKubernetes.private.dll' - RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.5'; }) - FormatsToProcess = './Az.ConnectedKubernetes.format.ps1xml' - FunctionsToExport = 'Get-AzConnectedKubernetes', 'New-AzConnectedKubernetes', 'Remove-AzConnectedKubernetes', 'Update-AzConnectedKubernetes' - AliasesToExport = '*' - PrivateData = @{ + +# Script module or binary module file associated with this manifest. +RootModule = './Az.ConnectedKubernetes.psm1' + +# Version number of this module. +ModuleVersion = '0.1.0' + +# Supported PSEditions +CompatiblePSEditions = 'Core', 'Desktop' + +# ID used to uniquely identify this module +GUID = '59df8ab1-442a-41ae-9b55-60b505bae789' + +# Author of this module +Author = 'Microsoft Corporation' + +# Company or vendor of this module +CompanyName = 'Microsoft Corporation' + +# Copyright statement for this module +Copyright = 'Microsoft Corporation. All rights reserved.' + +# Description of the functionality provided by this module +Description = 'Microsoft Azure PowerShell: ConnectedKubernetes cmdlets' + +# Minimum version of the PowerShell engine required by this module +PowerShellVersion = '5.1' + +# Name of the PowerShell host required by this module +# PowerShellHostName = '' + +# Minimum version of the PowerShell host required by this module +# PowerShellHostVersion = '' + +# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. +DotNetFrameworkVersion = '4.7.2' + +# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. +# ClrVersion = '' + +# Processor architecture (None, X86, Amd64) required by this module +# ProcessorArchitecture = '' + +# Modules that must be imported into the global environment prior to importing this module +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.5'; }) + +# Assemblies that must be loaded prior to importing this module +RequiredAssemblies = './bin/Az.ConnectedKubernetes.private.dll' + +# Script files (.ps1) that are run in the caller's environment prior to importing this module. +# ScriptsToProcess = @() + +# Type files (.ps1xml) to be loaded when importing this module +# TypesToProcess = @() + +# Format files (.ps1xml) to be loaded when importing this module +FormatsToProcess = './Az.ConnectedKubernetes.format.ps1xml' + +# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess +# NestedModules = @() + +# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. +FunctionsToExport = 'Get-AzConnectedKubernetes', 'New-AzConnectedKubernetes', + 'Remove-AzConnectedKubernetes', 'Update-AzConnectedKubernetes' + +# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. +CmdletsToExport = @() + +# Variables to export from this module +# VariablesToExport = @() + +# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. +AliasesToExport = '*' + +# DSC resources to export from this module +# DscResourcesToExport = @() + +# List of all modules packaged with this module +# ModuleList = @() + +# List of all files packaged with this module +# FileList = @() + +# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. +PrivateData = @{ + PSData = @{ - Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'ConnectedKubernetes' - LicenseUri = 'https://aka.ms/azps-license' - ProjectUri = 'https://github.com/Azure/azure-powershell' - ReleaseNotes = '* the first preview release' - } - } + + # Tags applied to this module. These help with module discovery in online galleries. + Tags = 'Azure','ResourceManager','ARM','PSModule','ConnectedKubernetes' + + # A URL to the license for this module. + LicenseUri = 'https://aka.ms/azps-license' + + # A URL to the main website for this project. + ProjectUri = 'https://github.com/Azure/azure-powershell' + + # A URL to an icon representing this module. + # IconUri = '' + + # ReleaseNotes of this module + # ReleaseNotes = '' + + # Prerelease string of this module + # Prerelease = '' + + # Flag to indicate whether the module requires explicit user acceptance for install/update/save + # RequireLicenseAcceptance = $false + + # External dependent modules of this module + # ExternalModuleDependencies = @() + + } # End of PSData hashtable + + } # End of PrivateData hashtable + +# HelpInfo URI of this module +# HelpInfoURI = '' + +# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. +# DefaultCommandPrefix = '' + } + diff --git a/src/ConnectedKubernetes/Az.ConnectedKubernetes.psm1 b/src/ConnectedKubernetes/Az.ConnectedKubernetes.psm1 index 52bc33e74f63..89624257f268 100644 --- a/src/ConnectedKubernetes/Az.ConnectedKubernetes.psm1 +++ b/src/ConnectedKubernetes/Az.ConnectedKubernetes.psm1 @@ -24,17 +24,17 @@ } } if(-not $accountsModule) { - $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'1.7.4' } | Measure-Object).Count -gt 0 + $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'1.8.1' } | Measure-Object).Count -gt 0 if($hasAdequateVersion) { - $accountsModule = Import-Module -Name $accountsName -MinimumVersion 1.7.4 -Scope Global -PassThru + $accountsModule = Import-Module -Name $accountsName -MinimumVersion 1.8.1 -Scope Global -PassThru } } } if(-not $accountsModule) { - Write-Error "`nThis module requires $accountsName version 1.7.4 or greater. For installation instructions, please see: https://docs.microsoft.com/en-us/powershell/azure/install-az-ps" -ErrorAction Stop - } elseif (($accountsModule.Version -lt [System.Version]'1.7.4') -and (-not $localAccounts)) { - Write-Error "`nThis module requires $accountsName version 1.7.4 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to remove '.PSSharedModules' in your home directory. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop + Write-Error "`nThis module requires $accountsName version 1.8.1 or greater. For installation instructions, please see: https://docs.microsoft.com/en-us/powershell/azure/install-az-ps" -ErrorAction Stop + } elseif (($accountsModule.Version -lt [System.Version]'1.8.1') -and (-not $localAccounts)) { + Write-Error "`nThis module requires $accountsName version 1.8.1 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to remove '.PSSharedModules' in your home directory. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop } Write-Information "Loaded Module '$($accountsModule.Name)'" diff --git a/src/ConnectedKubernetes/ChangeLog.md b/src/ConnectedKubernetes/ChangeLog.md index b76ecb79cf4a..bdcb0e8ec2af 100644 --- a/src/ConnectedKubernetes/ChangeLog.md +++ b/src/ConnectedKubernetes/ChangeLog.md @@ -18,7 +18,8 @@ - Additional information about change #1 --> ## Upcoming Release +* Updated api-version of ConnectedKubernetes to 2021-03-01 ## Version 0.1.0 -* the first preview release +* The first preview release diff --git a/src/ConnectedKubernetes/check-dependencies.ps1 b/src/ConnectedKubernetes/check-dependencies.ps1 index 5cd7ab5c808f..513c52ca2fb5 100644 --- a/src/ConnectedKubernetes/check-dependencies.ps1 +++ b/src/ConnectedKubernetes/check-dependencies.ps1 @@ -21,13 +21,15 @@ if(-not $Isolated) { return } -function DownloadModule ([bool]$predicate, [string]$path, [string]$moduleName, [string]$versionMinimum) { +function DownloadModule ([bool]$predicate, [string]$path, [string]$moduleName, [string]$versionMinimum, [string]$requiredVersion) { if($predicate) { $module = Get-Module -ListAvailable -Name $moduleName if((-not $module) -or ($versionMinimum -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -ge [System.Version]$versionMinimum } | Measure-Object).Count -eq 0)) { $null = New-Item -ItemType Directory -Force -Path $path Write-Host -ForegroundColor Green "Installing local $moduleName module into '$path'..." - if($versionMinimum) { + if ($requiredVersion) { + Find-Module -Name $moduleName -RequiredVersion $requiredVersion -Repository PSGallery | Save-Module -Path $path + }elseif($versionMinimum) { Find-Module -Name $moduleName -MinimumVersion $versionMinimum -Repository PSGallery | Save-Module -Path $path } else { Find-Module -Name $moduleName -Repository PSGallery | Save-Module -Path $path @@ -44,8 +46,8 @@ if(Test-Path -Path $localModulesPath) { $env:PSModulePath = "$localModulesPath$([IO.Path]::PathSeparator)$env:PSModulePath" } -DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '1.7.4' -DownloadModule -predicate ($all -or $Pester) -path $localModulesPath -moduleName 'Pester' -versionMinimum '' +DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '1.8.1' +DownloadModule -predicate ($all -or $Pester) -path $localModulesPath -moduleName 'Pester' -requiredVersion '4.10.1' $tools = Join-Path $PSScriptRoot 'tools' $resourceDir = Join-Path $tools 'Resources' diff --git a/src/ConnectedKubernetes/custom/Az.ConnectedKubernetes.custom.psm1 b/src/ConnectedKubernetes/custom/Az.ConnectedKubernetes.custom.psm1 index 98305bb3def3..74f166ae1e67 100644 --- a/src/ConnectedKubernetes/custom/Az.ConnectedKubernetes.custom.psm1 +++ b/src/ConnectedKubernetes/custom/Az.ConnectedKubernetes.custom.psm1 @@ -1,9 +1,9 @@ # region Generated # Load the private module dll - $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '../bin/Az.ConnectedKubernetes.private.dll') + $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.ConnectedKubernetes.private.dll') # Load the internal module - $internalModulePath = Join-Path $PSScriptRoot '../internal/Az.ConnectedKubernetes.internal.psm1' + $internalModulePath = Join-Path $PSScriptRoot '..\internal\Az.ConnectedKubernetes.internal.psm1' if(Test-Path $internalModulePath) { $null = Import-Module -Name $internalModulePath } diff --git a/src/ConnectedKubernetes/custom/New-AzConnectedKubernetes.ps1 b/src/ConnectedKubernetes/custom/New-AzConnectedKubernetes.ps1 index e0832426fb6e..707391638c34 100644 --- a/src/ConnectedKubernetes/custom/New-AzConnectedKubernetes.ps1 +++ b/src/ConnectedKubernetes/custom/New-AzConnectedKubernetes.ps1 @@ -20,12 +20,12 @@ API to register a new K8s cluster and thereby create a tracked resource in ARM API to register a new K8s cluster and thereby create a tracked resource in ARM .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster +Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster .Link -https://docs.microsoft.com/en-us/powershell/module/az.connectedkubernetes/new-azconnectedkubernetes +https://docs.microsoft.com/powershell/module/az.connectedkubernetes/new-azconnectedkubernetes #> function New-AzConnectedKubernetes { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -145,12 +145,6 @@ function New-AzConnectedKubernetes { if ($PSBoundParameters.ContainsKey('SubscriptionId')) { $CommonPSBoundParameters['SubscriptionId'] = $SubscriptionId } - $AadProfileClientAppId = '' - $PSBoundParameters.Add('AadProfileClientAppId', $AadProfileClientAppId) - $AadProfileServerAppId = '' - $PSBoundParameters.Add('AadProfileServerAppId', $AadProfileServerAppId) - $AadProfileTenantId = '' - $PSBoundParameters.Add('AadProfileTenantId', $AadProfileTenantId) $IdentityType = [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ResourceIdentityType]::SystemAssigned $PSBoundParameters.Add('IdentityType', $IdentityType) @@ -244,7 +238,12 @@ function New-AzConnectedKubernetes { #Endregion #Region export helm chart - $ChartExportPath = Join-Path -Path (Get-Item Env:HOME).Value -ChildPath '.azure' | Join-Path -ChildPath 'AzureArcCharts' + if (Test-Path Env:Home) { + $ChartExportPath = Join-Path -Path (Get-Item Env:HOME).Value -ChildPath '.azure' | Join-Path -ChildPath 'AzureArcCharts' + # $KubeConfig = Join-Path -Path $Env:Home -ChildPath '.kube' | Join-Path -ChildPath 'config' + } else { + $ChartExportPath = Join-Path -Path $Home -ChildPath '.azure' | Join-Path -ChildPath 'AzureArcCharts' + } try { helm chart export $RegisteryPath --kubeconfig $KubeConfig --kube-context $KubeContext --destination $ChartExportPath } catch { diff --git a/src/ConnectedKubernetes/custom/Remove-AzConnectedKubernetes.ps1 b/src/ConnectedKubernetes/custom/Remove-AzConnectedKubernetes.ps1 index 0492a667023b..dc8cfb39f92d 100644 --- a/src/ConnectedKubernetes/custom/Remove-AzConnectedKubernetes.ps1 +++ b/src/ConnectedKubernetes/custom/Remove-AzConnectedKubernetes.ps1 @@ -34,7 +34,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. .Link -https://docs.microsoft.com/en-us/powershell/module/az.connectedkubernetes/remove-azconnectedkubernetes +https://docs.microsoft.com/powershell/module/az.connectedkubernetes/remove-azconnectedkubernetes #> function Remove-AzConnectedKubernetes { [OutputType([System.Boolean])] diff --git a/src/ConnectedKubernetes/custom/Update-AzConnectedKubernetes.ps1 b/src/ConnectedKubernetes/custom/Update-AzConnectedKubernetes.ps1 index 245140ee0c54..d17442b61b04 100644 --- a/src/ConnectedKubernetes/custom/Update-AzConnectedKubernetes.ps1 +++ b/src/ConnectedKubernetes/custom/Update-AzConnectedKubernetes.ps1 @@ -22,7 +22,7 @@ API to update certain properties of the connected cluster resource. .Inputs Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.IConnectedKubernetesIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster +Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster .Notes COMPLEX PARAMETER PROPERTIES @@ -34,10 +34,10 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. .Link -https://docs.microsoft.com/en-us/powershell/module/az.connectedkubernetes/update-azconnectedkubernetes +https://docs.microsoft.com/powershell/module/az.connectedkubernetes/update-azconnectedkubernetes #> function Update-AzConnectedKubernetes { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -70,7 +70,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, diff --git a/src/ConnectedKubernetes/exports/Get-AzConnectedKubernetes.ps1 b/src/ConnectedKubernetes/exports/Get-AzConnectedKubernetes.ps1 index dd98f93d57b7..999175d03e49 100644 --- a/src/ConnectedKubernetes/exports/Get-AzConnectedKubernetes.ps1 +++ b/src/ConnectedKubernetes/exports/Get-AzConnectedKubernetes.ps1 @@ -55,7 +55,7 @@ eastus connected-pwsh-aks Microsoft.Kubernetes/connectedClusters .Inputs Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.IConnectedKubernetesIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster +Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster .Notes COMPLEX PARAMETER PROPERTIES @@ -67,10 +67,10 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. .Link -https://docs.microsoft.com/en-us/powershell/module/az.connectedkubernetes/get-azconnectedkubernetes +https://docs.microsoft.com/powershell/module/az.connectedkubernetes/get-azconnectedkubernetes #> function Get-AzConnectedKubernetes { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster])] [CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/src/ConnectedKubernetes/exports/New-AzConnectedKubernetes.ps1 b/src/ConnectedKubernetes/exports/New-AzConnectedKubernetes.ps1 index de664b436669..b9e8c04c81ef 100644 --- a/src/ConnectedKubernetes/exports/New-AzConnectedKubernetes.ps1 +++ b/src/ConnectedKubernetes/exports/New-AzConnectedKubernetes.ps1 @@ -31,12 +31,12 @@ Location Name Type eastus ps-connaks-t02 Microsoft.Kubernetes/connectedClusters .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster +Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster .Link -https://docs.microsoft.com/en-us/powershell/module/az.connectedkubernetes/new-azconnectedkubernetes +https://docs.microsoft.com/powershell/module/az.connectedkubernetes/new-azconnectedkubernetes #> function New-AzConnectedKubernetes { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/src/ConnectedKubernetes/exports/ProxyCmdletDefinitions.ps1 b/src/ConnectedKubernetes/exports/ProxyCmdletDefinitions.ps1 index 2ed83093b8d8..9d3e9612d7d8 100644 --- a/src/ConnectedKubernetes/exports/ProxyCmdletDefinitions.ps1 +++ b/src/ConnectedKubernetes/exports/ProxyCmdletDefinitions.ps1 @@ -55,7 +55,7 @@ eastus connected-pwsh-aks Microsoft.Kubernetes/connectedClusters .Inputs Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.IConnectedKubernetesIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster +Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster .Notes COMPLEX PARAMETER PROPERTIES @@ -67,10 +67,10 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. .Link -https://docs.microsoft.com/en-us/powershell/module/az.connectedkubernetes/get-azconnectedkubernetes +https://docs.microsoft.com/powershell/module/az.connectedkubernetes/get-azconnectedkubernetes #> function Get-AzConnectedKubernetes { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster])] [CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -226,12 +226,12 @@ Location Name Type eastus ps-connaks-t02 Microsoft.Kubernetes/connectedClusters .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster +Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster .Link -https://docs.microsoft.com/en-us/powershell/module/az.connectedkubernetes/new-azconnectedkubernetes +https://docs.microsoft.com/powershell/module/az.connectedkubernetes/new-azconnectedkubernetes #> function New-AzConnectedKubernetes { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -401,7 +401,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. .Link -https://docs.microsoft.com/en-us/powershell/module/az.connectedkubernetes/remove-azconnectedkubernetes +https://docs.microsoft.com/powershell/module/az.connectedkubernetes/remove-azconnectedkubernetes #> function Remove-AzConnectedKubernetes { [OutputType([System.Boolean])] @@ -589,7 +589,7 @@ eastus ps-connaks-t03 Microsoft.Kubernetes/connectedClusters .Inputs Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.IConnectedKubernetesIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster +Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster .Notes COMPLEX PARAMETER PROPERTIES @@ -601,10 +601,10 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. .Link -https://docs.microsoft.com/en-us/powershell/module/az.connectedkubernetes/update-azconnectedkubernetes +https://docs.microsoft.com/powershell/module/az.connectedkubernetes/update-azconnectedkubernetes #> function Update-AzConnectedKubernetes { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -637,7 +637,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, diff --git a/src/ConnectedKubernetes/exports/Remove-AzConnectedKubernetes.ps1 b/src/ConnectedKubernetes/exports/Remove-AzConnectedKubernetes.ps1 index aa254ae2bc0e..2486cd3bb17b 100644 --- a/src/ConnectedKubernetes/exports/Remove-AzConnectedKubernetes.ps1 +++ b/src/ConnectedKubernetes/exports/Remove-AzConnectedKubernetes.ps1 @@ -41,7 +41,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. .Link -https://docs.microsoft.com/en-us/powershell/module/az.connectedkubernetes/remove-azconnectedkubernetes +https://docs.microsoft.com/powershell/module/az.connectedkubernetes/remove-azconnectedkubernetes #> function Remove-AzConnectedKubernetes { [OutputType([System.Boolean])] diff --git a/src/ConnectedKubernetes/exports/Update-AzConnectedKubernetes.ps1 b/src/ConnectedKubernetes/exports/Update-AzConnectedKubernetes.ps1 index be02864d928a..e22e3e08bdf2 100644 --- a/src/ConnectedKubernetes/exports/Update-AzConnectedKubernetes.ps1 +++ b/src/ConnectedKubernetes/exports/Update-AzConnectedKubernetes.ps1 @@ -35,7 +35,7 @@ eastus ps-connaks-t03 Microsoft.Kubernetes/connectedClusters .Inputs Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.IConnectedKubernetesIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster +Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster .Notes COMPLEX PARAMETER PROPERTIES @@ -47,10 +47,10 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. .Link -https://docs.microsoft.com/en-us/powershell/module/az.connectedkubernetes/update-azconnectedkubernetes +https://docs.microsoft.com/powershell/module/az.connectedkubernetes/update-azconnectedkubernetes #> function Update-AzConnectedKubernetes { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -83,7 +83,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, diff --git a/src/ConnectedKubernetes/generate-info.json b/src/ConnectedKubernetes/generate-info.json index 2550f04b74e6..e5b86d6a7bf7 100644 --- a/src/ConnectedKubernetes/generate-info.json +++ b/src/ConnectedKubernetes/generate-info.json @@ -1,8 +1,10 @@ { - "swagger_commit": "734319d8284f0bb20ba521808630be3e235ea344", - "autorest_core": "3.0.6282", - "autorest": "3.0.6187", - "node": "v10.16.0", - "autorest_remodeler": "2.1.27", - "autorest_powershell": "2.1.394" + "autorest_powershell": "3.0.410", + "autorest_core": "3.0.6320", + "autorest_modelerfour": "4.15.414", + "autorest": "3.0.6149", + "microsoft.azure_autorest-interactive": "0.8.1", + "swagger_commit": "1c6693669b5fc74957e1d1cbc0ff245e58870333", + "node": "v10.16.3", + "autorest_remodeler": "2.1.27" } diff --git a/src/ConnectedKubernetes/generated/api/ConnectedKubernetes.cs b/src/ConnectedKubernetes/generated/api/ConnectedKubernetes.cs index 993e81651841..3f286c2d3a7b 100644 --- a/src/ConnectedKubernetes/generated/api/ConnectedKubernetes.cs +++ b/src/ConnectedKubernetes/generated/api/ConnectedKubernetes.cs @@ -28,9 +28,9 @@ public partial class ConnectedKubernetes /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ConnectedClusterCreate(string subscriptionId, string resourceGroupName, string clusterName, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ConnectedClusterCreate(string subscriptionId, string resourceGroupName, string clusterName, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) { - var apiVersion = @"2020-01-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -75,9 +75,9 @@ public partial class ConnectedKubernetes /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ConnectedClusterCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ConnectedClusterCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) { - var apiVersion = @"2020-01-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -131,7 +131,7 @@ public partial class ConnectedKubernetes /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ConnectedClusterCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ConnectedClusterCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -238,13 +238,13 @@ public partial class ConnectedKubernetes case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedCluster.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedCluster.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -271,7 +271,7 @@ public partial class ConnectedKubernetes /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ConnectedClusterCreate_Validate(string subscriptionId, string resourceGroupName, string clusterName, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster body, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ConnectedClusterCreate_Validate(string subscriptionId, string resourceGroupName, string clusterName, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster body, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -302,9 +302,9 @@ public partial class ConnectedKubernetes /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ConnectedClusterDelete(string subscriptionId, string resourceGroupName, string clusterName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ConnectedClusterDelete(string subscriptionId, string resourceGroupName, string clusterName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) { - var apiVersion = @"2020-01-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -345,9 +345,9 @@ public partial class ConnectedKubernetes /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ConnectedClusterDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ConnectedClusterDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) { - var apiVersion = @"2020-01-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -398,7 +398,7 @@ public partial class ConnectedKubernetes /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ConnectedClusterDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ConnectedClusterDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -518,7 +518,7 @@ public partial class ConnectedKubernetes default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -573,9 +573,9 @@ public partial class ConnectedKubernetes /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ConnectedClusterGet(string subscriptionId, string resourceGroupName, string clusterName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ConnectedClusterGet(string subscriptionId, string resourceGroupName, string clusterName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) { - var apiVersion = @"2020-01-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -616,9 +616,9 @@ public partial class ConnectedKubernetes /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ConnectedClusterGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ConnectedClusterGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) { - var apiVersion = @"2020-01-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -668,7 +668,7 @@ public partial class ConnectedKubernetes /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ConnectedClusterGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ConnectedClusterGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -685,13 +685,13 @@ public partial class ConnectedKubernetes case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedCluster.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedCluster.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -742,9 +742,9 @@ public partial class ConnectedKubernetes /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ConnectedClusterListByResourceGroup(string subscriptionId, string resourceGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ConnectedClusterListByResourceGroup(string subscriptionId, string resourceGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) { - var apiVersion = @"2020-01-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -781,9 +781,9 @@ public partial class ConnectedKubernetes /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ConnectedClusterListByResourceGroupViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ConnectedClusterListByResourceGroupViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) { - var apiVersion = @"2020-01-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -831,7 +831,7 @@ public partial class ConnectedKubernetes /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ConnectedClusterListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ConnectedClusterListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -848,13 +848,13 @@ public partial class ConnectedKubernetes case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedClusterList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -902,9 +902,9 @@ public partial class ConnectedKubernetes /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ConnectedClusterListBySubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ConnectedClusterListBySubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) { - var apiVersion = @"2020-01-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -939,9 +939,9 @@ public partial class ConnectedKubernetes /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ConnectedClusterListBySubscriptionViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ConnectedClusterListBySubscriptionViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) { - var apiVersion = @"2020-01-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -986,7 +986,7 @@ public partial class ConnectedKubernetes /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ConnectedClusterListBySubscription_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ConnectedClusterListBySubscription_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1003,13 +1003,13 @@ public partial class ConnectedKubernetes case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedClusterList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1042,181 +1042,6 @@ public partial class ConnectedKubernetes } } - /// - /// Gets cluster user credentials of the connected cluster with a specified resource group and name. - /// - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the Kubernetes cluster on which get is called. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task ConnectedClusterListClusterUserCredentials(string subscriptionId, string resourceGroupName, string clusterName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) - { - var apiVersion = @"2020-01-01-preview"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourcegroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Kubernetes/connectedClusters/" - + global::System.Uri.EscapeDataString(clusterName) - + "/listClusterUserCredentials" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.ConnectedClusterListClusterUserCredentials_Call(request,onOk,onDefault,eventListener,sender); - } - } - - /// - /// Gets cluster user credentials of the connected cluster with a specified resource group and name. - /// - /// - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task ConnectedClusterListClusterUserCredentialsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) - { - var apiVersion = @"2020-01-01-preview"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourcegroups/(?[^/]+)/providers/Microsoft.Kubernetes/connectedClusters/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}/listClusterUserCredentials'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var clusterName = _match.Groups["clusterName"].Value; - // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" - + subscriptionId - + "/resourcegroups/" - + resourceGroupName - + "/providers/Microsoft.Kubernetes/connectedClusters/" - + clusterName - + "/listClusterUserCredentials" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.ConnectedClusterListClusterUserCredentials_Call(request,onOk,onDefault,eventListener,sender); - } - } - - /// - /// Actual wire call for method. - /// - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task ConnectedClusterListClusterUserCredentials_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.CredentialResults.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Validation method for method. Call this like the actual call, - /// but you will get validation events back. - /// - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the Kubernetes cluster on which get is called. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task ConnectedClusterListClusterUserCredentials_Validate(string subscriptionId, string resourceGroupName, string clusterName, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); - await eventListener.AssertNotNull(nameof(clusterName),clusterName); - } - } - /// API to update certain properties of the connected cluster resource /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -1230,9 +1055,9 @@ public partial class ConnectedKubernetes /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ConnectedClusterUpdate(string subscriptionId, string resourceGroupName, string clusterName, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ConnectedClusterUpdate(string subscriptionId, string resourceGroupName, string clusterName, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) { - var apiVersion = @"2020-01-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1275,9 +1100,9 @@ public partial class ConnectedKubernetes /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ConnectedClusterUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ConnectedClusterUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) { - var apiVersion = @"2020-01-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1331,7 +1156,7 @@ public partial class ConnectedKubernetes /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ConnectedClusterUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ConnectedClusterUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1348,13 +1173,13 @@ public partial class ConnectedKubernetes case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedCluster.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedCluster.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1381,7 +1206,7 @@ public partial class ConnectedKubernetes /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ConnectedClusterUpdate_Validate(string subscriptionId, string resourceGroupName, string clusterName, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatch body, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ConnectedClusterUpdate_Validate(string subscriptionId, string resourceGroupName, string clusterName, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatch body, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -1406,9 +1231,9 @@ public partial class ConnectedKubernetes /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OperationsGet(global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OperationsGet(global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) { - var apiVersion = @"2020-01-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1441,9 +1266,9 @@ public partial class ConnectedKubernetes /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OperationsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OperationsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) { - var apiVersion = @"2020-01-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1485,7 +1310,7 @@ public partial class ConnectedKubernetes /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task OperationsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task OperationsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1502,13 +1327,13 @@ public partial class ConnectedKubernetes case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.OperationList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.OperationList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/CredentialResult.PowerShell.cs b/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorAdditionalInfo.PowerShell.cs similarity index 66% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/CredentialResult.PowerShell.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20/ErrorAdditionalInfo.PowerShell.cs index 39a0d6a4efb5..4a1d2c6c3791 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/CredentialResult.PowerShell.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorAdditionalInfo.PowerShell.cs @@ -1,10 +1,10 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20 { using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; - /// The credential result response. - [System.ComponentModel.TypeConverter(typeof(CredentialResultTypeConverter))] - public partial class CredentialResult + /// The resource management error additional info. + [System.ComponentModel.TypeConverter(typeof(ErrorAdditionalInfoTypeConverter))] + public partial class ErrorAdditionalInfo { /// @@ -48,11 +48,37 @@ public partial class CredentialResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal CredentialResult(global::System.Collections.IDictionary content) + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ErrorAdditionalInfo(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.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ErrorAdditionalInfo(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ErrorAdditionalInfo(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -61,17 +87,17 @@ internal CredentialResult(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResultInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResultInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResultInternal)this).Value = (byte[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResultInternal)this).Value, i => i); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo1) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ErrorAdditionalInfo1TypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal CredentialResult(global::System.Management.Automation.PSObject content) + internal ErrorAdditionalInfo(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -80,54 +106,26 @@ internal CredentialResult(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResultInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResultInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResultInternal)this).Value = (byte[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResultInternal)this).Value, i => i); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo1) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ErrorAdditionalInfo1TypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfoInternal)this).Type, 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.ConnectedKubernetes.Models.Api202001Preview.ICredentialResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CredentialResult(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.ConnectedKubernetes.Models.Api202001Preview.ICredentialResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CredentialResult(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. + /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.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.ConnectedKubernetes.Runtime.SerializationMode.IncludeAll)?.ToString(); } - /// The credential result response. - [System.ComponentModel.TypeConverter(typeof(CredentialResultTypeConverter))] - public partial interface ICredentialResult + /// The resource management error additional info. + [System.ComponentModel.TypeConverter(typeof(ErrorAdditionalInfoTypeConverter))] + public partial interface IErrorAdditionalInfo { diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/CredentialResults.TypeConverter.cs b/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorAdditionalInfo.TypeConverter.cs similarity index 85% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/CredentialResults.TypeConverter.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20/ErrorAdditionalInfo.TypeConverter.cs index 28b8348267ef..c1334618c881 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/CredentialResults.TypeConverter.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorAdditionalInfo.TypeConverter.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20 { using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class CredentialResultsTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class ErrorAdditionalInfoTypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -24,10 +24,10 @@ public partial class CredentialResultsTypeConverter : global::System.Management. /// Determines if the converter can convert the parameter to the /// parameter. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -89,7 +89,7 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); @@ -97,24 +97,24 @@ public static bool CanConvertFrom(dynamic sourceValue) /// Converts the parameter to the parameter using and /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResults ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResults).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo).IsAssignableFrom(type)) { return sourceValue; } try { - return CredentialResults.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return ErrorAdditionalInfo.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -122,11 +122,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api2 } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return CredentialResults.DeserializeFromPSObject(sourceValue); + return ErrorAdditionalInfo.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return CredentialResults.DeserializeFromDictionary(sourceValue); + return ErrorAdditionalInfo.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorAdditionalInfo.cs b/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorAdditionalInfo.cs new file mode 100644 index 000000000000..c0d18c698e3d --- /dev/null +++ b/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorAdditionalInfo.cs @@ -0,0 +1,69 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; + + /// The resource management error additional info. + public partial class ErrorAdditionalInfo : + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo, + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfoInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo1 _info; + + /// The additional info. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo1 Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ErrorAdditionalInfo1()); } + + /// Internal Acessors for Info + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo1 Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfoInternal.Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ErrorAdditionalInfo1()); set { {_info = value;} } } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfoInternal.Type { get => this._type; set { {_type = value;} } } + + /// Backing field for property. + private string _type; + + /// The additional info type. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] + public string Type { get => this._type; } + + /// Creates an new instance. + public ErrorAdditionalInfo() + { + + } + } + /// The resource management error additional info. + public partial interface IErrorAdditionalInfo : + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IJsonSerializable + { + /// The additional info. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The additional info.", + SerializedName = @"info", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo1) })] + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo1 Info { get; } + /// The additional info type. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The additional info type.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string Type { get; } + + } + /// The resource management error additional info. + internal partial interface IErrorAdditionalInfoInternal + + { + /// The additional info. + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo1 Info { get; set; } + /// The additional info type. + string Type { get; set; } + + } +} \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/CredentialResult.json.cs b/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorAdditionalInfo.json.cs similarity index 76% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/CredentialResult.json.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20/ErrorAdditionalInfo.json.cs index 6ae44a836dbf..18e972b7565c 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/CredentialResult.json.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorAdditionalInfo.json.cs @@ -1,9 +1,9 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20 { using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; - /// The credential result response. - public partial class CredentialResult + /// The resource management error additional info. + public partial class ErrorAdditionalInfo { /// @@ -47,10 +47,10 @@ public partial class CredentialResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject instance to deserialize from. - internal CredentialResult(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject json) + internal ErrorAdditionalInfo(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); @@ -58,31 +58,31 @@ internal CredentialResult(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes { return; } - {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} - {_value = If( json?.PropertyT("value"), out var __w) ? System.Convert.FromBase64String( ((string)__w).Replace("_","/").Replace("-","+").PadRight( ((string)__w).Length + ((string)__w).Length * 3 % 4, '=') ) : null;} + {_info = If( json?.PropertyT("info"), out var __jsonInfo) ? Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ErrorAdditionalInfo1.FromJson(__jsonInfo) : Info;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject json ? new CredentialResult(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject json ? new ErrorAdditionalInfo(json) : null; } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.SerializationMode serializationMode) { @@ -96,11 +96,11 @@ public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonN } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.SerializationMode.IncludeReadOnly)) { - AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != this._info ? (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode) this._info.ToJson(null,serializationMode) : null, "info" ,container.Add ); } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.SerializationMode.IncludeReadOnly)) { - AddIf( null != this._value ? global::System.Convert.ToBase64String( this._value) : null ,(v)=> container.Add( "value",v) ); + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); } AfterToJson(ref container); return container; diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ErrorDetails.PowerShell.cs b/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorAdditionalInfo1.PowerShell.cs similarity index 65% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ErrorDetails.PowerShell.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20/ErrorAdditionalInfo1.PowerShell.cs index 356b38f0d2ae..b0cf5ae8d81b 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ErrorDetails.PowerShell.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorAdditionalInfo1.PowerShell.cs @@ -1,10 +1,10 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20 { using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; - /// The error response details containing error code and error message - [System.ComponentModel.TypeConverter(typeof(ErrorDetailsTypeConverter))] - public partial class ErrorDetails + /// The additional info. + [System.ComponentModel.TypeConverter(typeof(ErrorAdditionalInfo1TypeConverter))] + public partial class ErrorAdditionalInfo1 { /// @@ -48,39 +48,37 @@ public partial class ErrorDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo1 DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new ErrorDetails(content); + return new ErrorAdditionalInfo1(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo1 DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new ErrorDetails(content); + return new ErrorAdditionalInfo1(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal ErrorDetails(global::System.Collections.IDictionary content) + internal ErrorAdditionalInfo1(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -89,17 +87,15 @@ internal ErrorDetails(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorDetailsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorDetailsInternal)this).Code, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorDetailsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorDetailsInternal)this).Message, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal ErrorDetails(global::System.Management.Automation.PSObject content) + internal ErrorAdditionalInfo1(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -108,26 +104,24 @@ internal ErrorDetails(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorDetailsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorDetailsInternal)this).Code, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorDetailsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorDetailsInternal)this).Message, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Creates a new instance of , deserializing the content from a json string. + /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo1 FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.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.ConnectedKubernetes.Runtime.SerializationMode.IncludeAll)?.ToString(); } - /// The error response details containing error code and error message - [System.ComponentModel.TypeConverter(typeof(ErrorDetailsTypeConverter))] - public partial interface IErrorDetails + /// The additional info. + [System.ComponentModel.TypeConverter(typeof(ErrorAdditionalInfo1TypeConverter))] + public partial interface IErrorAdditionalInfo1 { diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterAadProfile.TypeConverter.cs b/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorAdditionalInfo1.TypeConverter.cs similarity index 84% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterAadProfile.TypeConverter.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20/ErrorAdditionalInfo1.TypeConverter.cs index c6bc3c24f8bf..60fddd53cdb7 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterAadProfile.TypeConverter.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorAdditionalInfo1.TypeConverter.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20 { using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class ConnectedClusterAadProfileTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class ErrorAdditionalInfo1TypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -24,10 +24,10 @@ public partial class ConnectedClusterAadProfileTypeConverter : global::System.Ma /// Determines if the converter can convert the parameter to the /// parameter. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -89,7 +89,7 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); @@ -97,24 +97,24 @@ public static bool CanConvertFrom(dynamic sourceValue) /// Converts the parameter to the parameter using and /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfile ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo1 ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfile).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo1).IsAssignableFrom(type)) { return sourceValue; } try { - return ConnectedClusterAadProfile.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return ErrorAdditionalInfo1.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -122,11 +122,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api2 } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return ConnectedClusterAadProfile.DeserializeFromPSObject(sourceValue); + return ErrorAdditionalInfo1.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return ConnectedClusterAadProfile.DeserializeFromDictionary(sourceValue); + return ErrorAdditionalInfo1.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorAdditionalInfo1.cs b/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorAdditionalInfo1.cs new file mode 100644 index 000000000000..22b16518608d --- /dev/null +++ b/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorAdditionalInfo1.cs @@ -0,0 +1,29 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; + + /// The additional info. + public partial class ErrorAdditionalInfo1 : + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo1, + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo1Internal + { + + /// Creates an new instance. + public ErrorAdditionalInfo1() + { + + } + } + /// The additional info. + public partial interface IErrorAdditionalInfo1 : + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IJsonSerializable + { + + } + /// The additional info. + internal partial interface IErrorAdditionalInfo1Internal + + { + + } +} \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ErrorDetails.json.cs b/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorAdditionalInfo1.json.cs similarity index 70% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ErrorDetails.json.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20/ErrorAdditionalInfo1.json.cs index 1229ccc67fb2..5e8ac3f3ef3a 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ErrorDetails.json.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorAdditionalInfo1.json.cs @@ -1,9 +1,9 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20 { using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; - /// The error response details containing error code and error message - public partial class ErrorDetails + /// The additional info. + public partial class ErrorAdditionalInfo1 { /// @@ -47,10 +47,10 @@ public partial class ErrorDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject instance to deserialize from. - internal ErrorDetails(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject json) + internal ErrorAdditionalInfo1(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); @@ -58,31 +58,29 @@ internal ErrorDetails(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Run { return; } - {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code;} - {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo1. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo1. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo1 FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject json ? new ErrorDetails(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject json ? new ErrorAdditionalInfo1(json) : null; } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.SerializationMode serializationMode) { @@ -94,14 +92,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonN { return container; } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != (((object)this._code)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonString(this._code.ToString()) : null, "code" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add ); - } AfterToJson(ref container); return container; } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorDetail.PowerShell.cs b/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorDetail.PowerShell.cs new file mode 100644 index 000000000000..3a87bfd779f2 --- /dev/null +++ b/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorDetail.PowerShell.cs @@ -0,0 +1,139 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20 +{ + using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; + + /// The error detail. + [System.ComponentModel.TypeConverter(typeof(ErrorDetailTypeConverter))] + public partial class ErrorDetail + { + + /// + /// 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.ConnectedKubernetes.Models.Api20.IErrorDetail DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ErrorDetail(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.ConnectedKubernetes.Models.Api20.IErrorDetail DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ErrorDetail(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ErrorDetail(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ErrorDetailTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ErrorDetail(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ErrorDetailTypeConverter.ConvertFrom)); + AfterDeserializePSObject(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.ConnectedKubernetes.Models.Api20.IErrorDetail FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.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.ConnectedKubernetes.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The error detail. + [System.ComponentModel.TypeConverter(typeof(ErrorDetailTypeConverter))] + public partial interface IErrorDetail + + { + + } +} \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/CredentialResult.TypeConverter.cs b/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorDetail.TypeConverter.cs similarity index 86% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/CredentialResult.TypeConverter.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20/ErrorDetail.TypeConverter.cs index f72d09a47fbe..e98fbbdeed79 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/CredentialResult.TypeConverter.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorDetail.TypeConverter.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20 { using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class CredentialResultTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class ErrorDetailTypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -24,10 +24,10 @@ public partial class CredentialResultTypeConverter : global::System.Management.A /// Determines if the converter can convert the parameter to the /// parameter. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -89,7 +89,7 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); @@ -97,24 +97,24 @@ public static bool CanConvertFrom(dynamic sourceValue) /// Converts the parameter to the parameter using and /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetail ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetail).IsAssignableFrom(type)) { return sourceValue; } try { - return CredentialResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return ErrorDetail.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -122,11 +122,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api2 } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return CredentialResult.DeserializeFromPSObject(sourceValue); + return ErrorDetail.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return CredentialResult.DeserializeFromDictionary(sourceValue); + return ErrorDetail.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorDetail.cs b/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorDetail.cs new file mode 100644 index 000000000000..a7fcf3488676 --- /dev/null +++ b/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorDetail.cs @@ -0,0 +1,129 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; + + /// The error detail. + public partial class ErrorDetail : + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetail, + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo[] _additionalInfo; + + /// The error additional info. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo[] AdditionalInfo { get => this._additionalInfo; } + + /// Backing field for property. + private string _code; + + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] + public string Code { get => this._code; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetail[] _detail; + + /// The error details. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetail[] Detail { get => this._detail; } + + /// Backing field for property. + private string _message; + + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] + public string Message { get => this._message; } + + /// Internal Acessors for AdditionalInfo + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal.AdditionalInfo { get => this._additionalInfo; set { {_additionalInfo = value;} } } + + /// Internal Acessors for Code + string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal.Code { get => this._code; set { {_code = value;} } } + + /// Internal Acessors for Detail + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetail[] Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal.Detail { get => this._detail; set { {_detail = value;} } } + + /// Internal Acessors for Message + string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal.Message { get => this._message; set { {_message = value;} } } + + /// Internal Acessors for Target + string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal.Target { get => this._target; set { {_target = value;} } } + + /// Backing field for property. + private string _target; + + /// The error target. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] + public string Target { get => this._target; } + + /// Creates an new instance. + public ErrorDetail() + { + + } + } + /// The error detail. + public partial interface IErrorDetail : + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IJsonSerializable + { + /// The error additional info. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error additional info.", + SerializedName = @"additionalInfo", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo[] AdditionalInfo { get; } + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error code.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; } + /// The error details. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error details.", + SerializedName = @"details", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetail) })] + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetail[] Detail { get; } + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error message.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; } + /// The error target. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error target.", + SerializedName = @"target", + PossibleTypes = new [] { typeof(string) })] + string Target { get; } + + } + /// The error detail. + internal partial interface IErrorDetailInternal + + { + /// The error additional info. + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo[] AdditionalInfo { get; set; } + /// The error code. + string Code { get; set; } + /// The error details. + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetail[] Detail { get; set; } + /// The error message. + string Message { get; set; } + /// The error target. + string Target { get; set; } + + } +} \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/CredentialResults.json.cs b/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorDetail.json.cs similarity index 54% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/CredentialResults.json.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20/ErrorDetail.json.cs index 4fab27f08b03..71f69cb43d62 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/CredentialResults.json.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorDetail.json.cs @@ -1,9 +1,9 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20 { using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; - /// The list of credential result response. - public partial class CredentialResults + /// The error detail. + public partial class ErrorDetail { /// @@ -47,10 +47,10 @@ public partial class CredentialResults partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject instance to deserialize from. - internal CredentialResults(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject json) + internal ErrorDetail(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); @@ -58,30 +58,34 @@ internal CredentialResults(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernete { return; } - {_kubeconfig = If( json?.PropertyT("kubeconfigs"), out var __jsonKubeconfigs) ? If( __jsonKubeconfigs as Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResult) (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.CredentialResult.FromJson(__u) )) ))() : null : Kubeconfig;} + {_additionalInfo = If( json?.PropertyT("additionalInfo"), out var __jsonAdditionalInfo) ? If( __jsonAdditionalInfo as Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo) (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ErrorAdditionalInfo.FromJson(__u) )) ))() : null : AdditionalInfo;} + {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code;} + {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message;} + {_target = If( json?.PropertyT("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)Target;} + {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetail) (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ErrorDetail.FromJson(__p) )) ))() : null : Detail;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResults. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetail. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResults. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetail. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResults FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetail FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject json ? new CredentialResults(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject json ? new ErrorDetail(json) : null; } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.SerializationMode serializationMode) { @@ -95,14 +99,38 @@ public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonN } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.SerializationMode.IncludeReadOnly)) { - if (null != this._kubeconfig) + if (null != this._additionalInfo) { var __w = new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.XNodeArray(); - foreach( var __x in this._kubeconfig ) + foreach( var __x in this._additionalInfo ) { AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); } - container.Add("kubeconfigs",__w); + container.Add("additionalInfo",__w); + } + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._code)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonString(this._code.ToString()) : null, "code" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._target)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonString(this._target.ToString()) : null, "target" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._detail) + { + var __r = new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.XNodeArray(); + foreach( var __s in this._detail ) + { + AddIf(__s?.ToJson(null, serializationMode) ,__r.Add); + } + container.Add("details",__r); } } AfterToJson(ref container); diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ErrorResponse.PowerShell.cs b/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorResponse.PowerShell.cs similarity index 52% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ErrorResponse.PowerShell.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20/ErrorResponse.PowerShell.cs index 9a144e92f461..32ec9b0aca67 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ErrorResponse.PowerShell.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorResponse.PowerShell.cs @@ -1,8 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20 { using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; - /// The error response that indicates why an operation has failed. + /// + /// Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows + /// the OData error response format.). + /// [System.ComponentModel.TypeConverter(typeof(ErrorResponseTypeConverter))] public partial class ErrorResponse { @@ -48,35 +51,33 @@ public partial class ErrorResponse partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ErrorResponse(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ErrorResponse(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -89,14 +90,17 @@ internal ErrorResponse(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorDetails) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ErrorDetailsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorResponseInternal)this).Code, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorResponseInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ErrorDetailTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponseInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponseInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponseInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ErrorDetailTypeConverter.ConvertFrom)); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -109,9 +113,12 @@ internal ErrorResponse(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorDetails) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ErrorDetailsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorResponseInternal)this).Code, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorResponseInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ErrorDetailTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponseInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponseInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponseInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ErrorDetailTypeConverter.ConvertFrom)); AfterDeserializePSObject(content); } @@ -120,14 +127,15 @@ internal ErrorResponse(global::System.Management.Automation.PSObject content) /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.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.ConnectedKubernetes.Runtime.SerializationMode.IncludeAll)?.ToString(); } - /// The error response that indicates why an operation has failed. + /// Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows + /// the OData error response format.). [System.ComponentModel.TypeConverter(typeof(ErrorResponseTypeConverter))] public partial interface IErrorResponse diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ErrorResponse.TypeConverter.cs b/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorResponse.TypeConverter.cs similarity index 97% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ErrorResponse.TypeConverter.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20/ErrorResponse.TypeConverter.cs index 43596acd295a..738f6b330641 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ErrorResponse.TypeConverter.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorResponse.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20 { using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorResponse ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponse ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorResponse).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponse).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorResponse.cs b/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorResponse.cs new file mode 100644 index 000000000000..dc440c844e53 --- /dev/null +++ b/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorResponse.cs @@ -0,0 +1,131 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; + + /// + /// Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows + /// the OData error response format.). + /// + public partial class ErrorResponse : + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponse, + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponseInternal + { + + /// The error additional info. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal)Error).AdditionalInfo; } + + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal)Error).Code; } + + /// The error details. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetail[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal)Error).Detail; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetail _error; + + /// The error object. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetail Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ErrorDetail()); set => this._error = value; } + + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal)Error).Message; } + + /// Internal Acessors for AdditionalInfo + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal)Error).AdditionalInfo = value; } + + /// Internal Acessors for Code + string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal)Error).Code = value; } + + /// Internal Acessors for Detail + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetail[] Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal)Error).Detail = value; } + + /// Internal Acessors for Error + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ErrorDetail()); set { {_error = value;} } } + + /// Internal Acessors for Message + string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal)Error).Message = value; } + + /// Internal Acessors for Target + string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal)Error).Target = value; } + + /// The error target. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetailInternal)Error).Target; } + + /// Creates an new instance. + public ErrorResponse() + { + + } + } + /// Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows + /// the OData error response format.). + public partial interface IErrorResponse : + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IJsonSerializable + { + /// The error additional info. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error additional info.", + SerializedName = @"additionalInfo", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo[] AdditionalInfo { get; } + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error code.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; } + /// The error details. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error details.", + SerializedName = @"details", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetail) })] + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetail[] Detail { get; } + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error message.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; } + /// The error target. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error target.", + SerializedName = @"target", + PossibleTypes = new [] { typeof(string) })] + string Target { get; } + + } + /// Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows + /// the OData error response format.). + internal partial interface IErrorResponseInternal + + { + /// The error additional info. + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorAdditionalInfo[] AdditionalInfo { get; set; } + /// The error code. + string Code { get; set; } + /// The error details. + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetail[] Detail { get; set; } + /// The error object. + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorDetail Error { get; set; } + /// The error message. + string Message { get; set; } + /// The error target. + string Target { get; set; } + + } +} \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ErrorResponse.json.cs b/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorResponse.json.cs similarity index 92% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ErrorResponse.json.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20/ErrorResponse.json.cs index 389b94163065..36b5c06630ae 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ErrorResponse.json.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20/ErrorResponse.json.cs @@ -1,8 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20 { using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; - /// The error response that indicates why an operation has failed. + /// + /// Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows + /// the OData error response format.). + /// public partial class ErrorResponse { @@ -58,18 +61,18 @@ internal ErrorResponse(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Ru { return; } - {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ErrorDetails.FromJson(__jsonError) : Error;} + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ErrorDetail.FromJson(__jsonError) : Error;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorResponse. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponse. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorResponse. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponse. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IErrorResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject json ? new ErrorResponse(json) : null; } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api10/Resource.PowerShell.cs b/src/ConnectedKubernetes/generated/api/Models/Api20/Resource.PowerShell.cs similarity index 82% rename from src/ConnectedKubernetes/generated/api/Models/Api10/Resource.PowerShell.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20/Resource.PowerShell.cs index 3c595fecd119..a926dc84dbfd 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api10/Resource.PowerShell.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20/Resource.PowerShell.cs @@ -1,7 +1,10 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10 +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20 { using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; + /// + /// Common fields that are returned in the response for all Azure Resource Manager resources + /// [System.ComponentModel.TypeConverter(typeof(ResourceTypeConverter))] public partial class Resource { @@ -47,27 +50,27 @@ public partial class Resource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResource DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Resource(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Resource(content); } @@ -77,10 +80,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api1 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -93,14 +96,14 @@ internal Resource(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -113,9 +116,9 @@ internal Resource(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); AfterDeserializePSObject(content); } @@ -124,6 +127,7 @@ internal Resource(global::System.Management.Automation.PSObject content) /// a containing this model serialized to JSON text. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.SerializationMode.IncludeAll)?.ToString(); } + /// Common fields that are returned in the response for all Azure Resource Manager resources [System.ComponentModel.TypeConverter(typeof(ResourceTypeConverter))] public partial interface IResource diff --git a/src/ConnectedKubernetes/generated/api/Models/Api10/Resource.TypeConverter.cs b/src/ConnectedKubernetes/generated/api/Models/Api20/Resource.TypeConverter.cs similarity index 98% rename from src/ConnectedKubernetes/generated/api/Models/Api10/Resource.TypeConverter.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20/Resource.TypeConverter.cs index c2517f1a7bd7..d0dc493c2ffa 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api10/Resource.TypeConverter.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20/Resource.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10 +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20 { using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api10/Resource.cs b/src/ConnectedKubernetes/generated/api/Models/Api20/Resource.cs similarity index 74% rename from src/ConnectedKubernetes/generated/api/Models/Api10/Resource.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20/Resource.cs index 94e327b6c0c6..47768e018081 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api10/Resource.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20/Resource.cs @@ -1,29 +1,32 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10 +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20 { using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; + /// + /// Common fields that are returned in the response for all Azure Resource Manager resources + /// public partial class Resource : - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResource, - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResource, + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal { /// Backing field for property. private string _id; /// - /// Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] public string Id { get => this._id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal.Type { get => this._type; set { {_type = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal.Type { get => this._type; set { {_type = value;} } } /// Backing field for property. private string _name; @@ -36,7 +39,7 @@ public partial class Resource : private string _type; /// - /// The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] public string Type { get => this._type; } @@ -47,16 +50,17 @@ public Resource() } } + /// Common fields that are returned in the response for all Azure Resource Manager resources public partial interface IResource : Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IJsonSerializable { /// - /// Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( Required = false, ReadOnly = true, - Description = @"Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}", + Description = @"Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}", SerializedName = @"id", PossibleTypes = new [] { typeof(string) })] string Id { get; } @@ -69,28 +73,29 @@ public partial interface IResource : PossibleTypes = new [] { typeof(string) })] string Name { get; } /// - /// The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( Required = false, ReadOnly = true, - Description = @"The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.", + Description = @"The type of the resource. E.g. ""Microsoft.Compute/virtualMachines"" or ""Microsoft.Storage/storageAccounts""", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] string Type { get; } } + /// Common fields that are returned in the response for all Azure Resource Manager resources internal partial interface IResourceInternal { /// - /// Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// string Id { get; set; } /// The name of the resource string Name { get; set; } /// - /// The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// string Type { get; set; } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api10/Resource.json.cs b/src/ConnectedKubernetes/generated/api/Models/Api20/Resource.json.cs similarity index 96% rename from src/ConnectedKubernetes/generated/api/Models/Api10/Resource.json.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20/Resource.json.cs index 8a188d957f10..fd7a96aceff8 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api10/Resource.json.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20/Resource.json.cs @@ -1,7 +1,10 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10 +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20 { using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; + /// + /// Common fields that are returned in the response for all Azure Resource Manager resources + /// public partial class Resource { @@ -46,13 +49,13 @@ public partial class Resource partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject json ? new Resource(json) : null; } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api10/TrackedResource.PowerShell.cs b/src/ConnectedKubernetes/generated/api/Models/Api20/TrackedResource.PowerShell.cs similarity index 77% rename from src/ConnectedKubernetes/generated/api/Models/Api10/TrackedResource.PowerShell.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20/TrackedResource.PowerShell.cs index d4ed8b33f61e..9b0f74917bf3 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api10/TrackedResource.PowerShell.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20/TrackedResource.PowerShell.cs @@ -1,8 +1,10 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10 +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20 { using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; - /// The resource model definition for a ARM tracked top level resource + /// + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' + /// [System.ComponentModel.TypeConverter(typeof(TrackedResourceTypeConverter))] public partial class TrackedResource { @@ -48,27 +50,27 @@ public partial class TrackedResource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResource DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TrackedResource(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TrackedResource(content); } @@ -78,7 +80,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api1 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -86,7 +88,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api1 public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -99,16 +101,16 @@ internal TrackedResource(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.TrackedResourceTagsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -121,15 +123,15 @@ internal TrackedResource(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.TrackedResourceTagsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); AfterDeserializePSObject(content); } } - /// The resource model definition for a ARM tracked top level resource + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' [System.ComponentModel.TypeConverter(typeof(TrackedResourceTypeConverter))] public partial interface ITrackedResource diff --git a/src/ConnectedKubernetes/generated/api/Models/Api10/TrackedResource.TypeConverter.cs b/src/ConnectedKubernetes/generated/api/Models/Api20/TrackedResource.TypeConverter.cs similarity index 98% rename from src/ConnectedKubernetes/generated/api/Models/Api10/TrackedResource.TypeConverter.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20/TrackedResource.TypeConverter.cs index 2e699099ce35..be5f3d5d4aa5 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api10/TrackedResource.TypeConverter.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20/TrackedResource.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10 +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20 { using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api10/TrackedResource.cs b/src/ConnectedKubernetes/generated/api/Models/Api20/TrackedResource.cs similarity index 72% rename from src/ConnectedKubernetes/generated/api/Models/Api10/TrackedResource.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20/TrackedResource.cs index 4f0dd38f9b19..2efc48c2aa29 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api10/TrackedResource.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20/TrackedResource.cs @@ -1,24 +1,26 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10 +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20 { using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; - /// The resource model definition for a ARM tracked top level resource + /// + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' + /// public partial class TrackedResource : - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResource, - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResource, + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceInternal, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.Resource(); /// - /// Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)__resource).Id; } /// Backing field for property. private string _location; @@ -28,30 +30,30 @@ public partial class TrackedResource : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)__resource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)__resource).Name = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)__resource).Type = value; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)__resource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceTags _tag; /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.TrackedResourceTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.TrackedResourceTags()); set => this._tag = value; } /// - /// The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)__resource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)__resource).Type; } /// Creates an new instance. public TrackedResource() @@ -71,10 +73,10 @@ public TrackedResource() await eventListener.AssertObjectIsValid(nameof(__resource), __resource); } } - /// The resource model definition for a ARM tracked top level resource + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' public partial interface ITrackedResource : Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResource + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResource { /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( @@ -90,18 +92,18 @@ public partial interface ITrackedResource : ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceTags) })] - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceTags) })] + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceTags Tag { get; set; } } - /// The resource model definition for a ARM tracked top level resource + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' internal partial interface ITrackedResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal { /// The geo-location where the resource lives string Location { get; set; } /// Resource tags. - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceTags Tag { get; set; } } } \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Models/Api10/TrackedResource.json.cs b/src/ConnectedKubernetes/generated/api/Models/Api20/TrackedResource.json.cs similarity index 94% rename from src/ConnectedKubernetes/generated/api/Models/Api10/TrackedResource.json.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20/TrackedResource.json.cs index fd46ac66492e..120931f73bf2 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api10/TrackedResource.json.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20/TrackedResource.json.cs @@ -1,8 +1,10 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10 +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20 { using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; - /// The resource model definition for a ARM tracked top level resource + /// + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' + /// public partial class TrackedResource { @@ -47,13 +49,13 @@ public partial class TrackedResource partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject json ? new TrackedResource(json) : null; } @@ -96,9 +98,9 @@ internal TrackedResource(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes. { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.Resource(json); + __resource = new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.Resource(json); {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.TrackedResourceTags.FromJson(__jsonTags) : Tag;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.TrackedResourceTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api10/TrackedResourceTags.PowerShell.cs b/src/ConnectedKubernetes/generated/api/Models/Api20/TrackedResourceTags.PowerShell.cs similarity index 92% rename from src/ConnectedKubernetes/generated/api/Models/Api10/TrackedResourceTags.PowerShell.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20/TrackedResourceTags.PowerShell.cs index ff5a73da21e4..163c508cbce2 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api10/TrackedResourceTags.PowerShell.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20/TrackedResourceTags.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10 +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20 { using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; @@ -48,27 +48,27 @@ public partial class TrackedResourceTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TrackedResourceTags(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TrackedResourceTags(content); } @@ -78,7 +78,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api1 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -86,7 +86,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api1 public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,7 +105,7 @@ internal TrackedResourceTags(global::System.Collections.IDictionary content) } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/ConnectedKubernetes/generated/api/Models/Api10/TrackedResourceTags.TypeConverter.cs b/src/ConnectedKubernetes/generated/api/Models/Api20/TrackedResourceTags.TypeConverter.cs similarity index 98% rename from src/ConnectedKubernetes/generated/api/Models/Api10/TrackedResourceTags.TypeConverter.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20/TrackedResourceTags.TypeConverter.cs index 7cf6f2df70b3..c4371dbf064a 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api10/TrackedResourceTags.TypeConverter.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20/TrackedResourceTags.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10 +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20 { using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api10/TrackedResourceTags.cs b/src/ConnectedKubernetes/generated/api/Models/Api20/TrackedResourceTags.cs similarity index 91% rename from src/ConnectedKubernetes/generated/api/Models/Api10/TrackedResourceTags.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20/TrackedResourceTags.cs index a6810236396d..eb26f8191415 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api10/TrackedResourceTags.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20/TrackedResourceTags.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10 +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20 { using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; /// Resource tags. public partial class TrackedResourceTags : - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceTags, - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceTags, + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceTagsInternal { /// Creates an new instance. diff --git a/src/ConnectedKubernetes/generated/api/Models/Api10/TrackedResourceTags.dictionary.cs b/src/ConnectedKubernetes/generated/api/Models/Api20/TrackedResourceTags.dictionary.cs similarity index 98% rename from src/ConnectedKubernetes/generated/api/Models/Api10/TrackedResourceTags.dictionary.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20/TrackedResourceTags.dictionary.cs index 08e360613b56..28e50cb75e01 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api10/TrackedResourceTags.dictionary.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20/TrackedResourceTags.dictionary.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10 +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20 { using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; @@ -65,6 +65,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.TrackedResourceTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.TrackedResourceTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Models/Api10/TrackedResourceTags.json.cs b/src/ConnectedKubernetes/generated/api/Models/Api20/TrackedResourceTags.json.cs similarity index 97% rename from src/ConnectedKubernetes/generated/api/Models/Api10/TrackedResourceTags.json.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20/TrackedResourceTags.json.cs index 71aad39dd6ed..fe373c11a142 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api10/TrackedResourceTags.json.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20/TrackedResourceTags.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10 +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20 { using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class TrackedResourceTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject json ? new TrackedResourceTags(json) : null; } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedCluster.PowerShell.cs b/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedCluster.PowerShell.cs deleted file mode 100644 index 4ad152b5620b..000000000000 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedCluster.PowerShell.cs +++ /dev/null @@ -1,169 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; - - /// Represents a connected cluster. - [System.ComponentModel.TypeConverter(typeof(ConnectedClusterTypeConverter))] - public partial class ConnectedCluster - { - - /// - /// 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 ConnectedCluster(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterIdentityTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterPropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.TrackedResourceTagsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).KubernetesVersion = (string) content.GetValueForProperty("KubernetesVersion",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).KubernetesVersion, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).IdentityTenantId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).AadProfile = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfile) content.GetValueForProperty("AadProfile",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).AadProfile, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterAadProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).AgentPublicKeyCertificate = (string) content.GetValueForProperty("AgentPublicKeyCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).AgentPublicKeyCertificate, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).AgentVersion, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ResourceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ResourceIdentityType.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).TotalNodeCount = (int?) content.GetValueForProperty("TotalNodeCount",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).TotalNodeCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).AadProfileClientAppId = (string) content.GetValueForProperty("AadProfileClientAppId",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).AadProfileClientAppId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).AadProfileServerAppId = (string) content.GetValueForProperty("AadProfileServerAppId",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).AadProfileServerAppId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).AadProfileTenantId = (string) content.GetValueForProperty("AadProfileTenantId",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).AadProfileTenantId, 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 ConnectedCluster(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterIdentityTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterPropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.TrackedResourceTagsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).KubernetesVersion = (string) content.GetValueForProperty("KubernetesVersion",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).KubernetesVersion, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).IdentityTenantId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).AadProfile = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfile) content.GetValueForProperty("AadProfile",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).AadProfile, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterAadProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).AgentPublicKeyCertificate = (string) content.GetValueForProperty("AgentPublicKeyCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).AgentPublicKeyCertificate, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).AgentVersion, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ResourceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ResourceIdentityType.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).TotalNodeCount = (int?) content.GetValueForProperty("TotalNodeCount",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).TotalNodeCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).AadProfileClientAppId = (string) content.GetValueForProperty("AadProfileClientAppId",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).AadProfileClientAppId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).AadProfileServerAppId = (string) content.GetValueForProperty("AadProfileServerAppId",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).AadProfileServerAppId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).AadProfileTenantId = (string) content.GetValueForProperty("AadProfileTenantId",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal)this).AadProfileTenantId, 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.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ConnectedCluster(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.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ConnectedCluster(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.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.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.ConnectedKubernetes.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Represents a connected cluster. - [System.ComponentModel.TypeConverter(typeof(ConnectedClusterTypeConverter))] - public partial interface IConnectedCluster - - { - - } -} \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedCluster.cs b/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedCluster.cs deleted file mode 100644 index c21942370230..000000000000 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedCluster.cs +++ /dev/null @@ -1,305 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview -{ - using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; - - /// Represents a connected cluster. - public partial class ConnectedCluster : - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster, - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal, - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.TrackedResource(); - - /// The client app id configured on target K8 cluster - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] - public string AadProfileClientAppId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)Property).AadProfileClientAppId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)Property).AadProfileClientAppId = value; } - - /// The server app id to access AD server - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] - public string AadProfileServerAppId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)Property).AadProfileServerAppId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)Property).AadProfileServerAppId = value; } - - /// The aad tenant id which is configured on target K8s cluster - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] - public string AadProfileTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)Property).AadProfileTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)Property).AadProfileTenantId = value; } - - /// - /// Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure. - /// - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] - public string AgentPublicKeyCertificate { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)Property).AgentPublicKeyCertificate; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)Property).AgentPublicKeyCertificate = value; } - - /// Version of the agent running on the connected cluster resource - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] - public string AgentVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)Property).AgentVersion; } - - /// - /// Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - /// - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)__trackedResource).Id; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentity _identity; - - /// The identity of the connected cluster. - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentity Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterIdentity()); set => this._identity = value; } - - /// - /// The principal id of connected cluster identity. This property will only be provided for a system assigned identity. - /// - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] - public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentityInternal)Identity).PrincipalId; } - - /// - /// The tenant id associated with the connected cluster. This property will only be provided for a system assigned identity. - /// - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] - public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentityInternal)Identity).TenantId; } - - /// - /// The type of identity used for the connected cluster. The type 'SystemAssigned, includes a system created identity. The - /// type 'None' means no identity is assigned to the connected cluster. - /// - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ResourceIdentityType IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentityInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentityInternal)Identity).Type = value; } - - /// The Kubernetes version of the connected cluster resource - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] - public string KubernetesVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)Property).KubernetesVersion; } - - /// The geo-location where the resource lives - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceInternal)__trackedResource).Location = value; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)__trackedResource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)__trackedResource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)__trackedResource).Type = value; } - - /// Internal Acessors for AadProfile - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfile Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal.AadProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)Property).AadProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)Property).AadProfile = value; } - - /// Internal Acessors for AgentVersion - string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal.AgentVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)Property).AgentVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)Property).AgentVersion = value; } - - /// Internal Acessors for Identity - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentity Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterIdentity()); set { {_identity = value;} } } - - /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentityInternal)Identity).PrincipalId = value; } - - /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentityInternal)Identity).TenantId = value; } - - /// Internal Acessors for KubernetesVersion - string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal.KubernetesVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)Property).KubernetesVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)Property).KubernetesVersion = value; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterProperties Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterProperties()); set { {_property = value;} } } - - /// Internal Acessors for TotalNodeCount - int? Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterInternal.TotalNodeCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)Property).TotalNodeCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)Property).TotalNodeCount = value; } - - /// The name of the resource - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)__trackedResource).Name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterProperties _property; - - /// Describes the connected cluster resource properties. - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterProperties()); set => this._property = value; } - - /// The current deployment state of connectedClusters. - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)Property).ProvisioningState = value; } - - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceInternal)__trackedResource).Tag = value; } - - /// Number of nodes present in the connected cluster resource - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] - public int? TotalNodeCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)Property).TotalNodeCount; } - - /// - /// The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - /// - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.IResourceInternal)__trackedResource).Type; } - - /// Creates an new instance. - public ConnectedCluster() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__trackedResource), __trackedResource); - await eventListener.AssertObjectIsValid(nameof(__trackedResource), __trackedResource); - } - } - /// Represents a connected cluster. - public partial interface IConnectedCluster : - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResource - { - /// The client app id configured on target K8 cluster - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The client app id configured on target K8 cluster ", - SerializedName = @"clientAppId", - PossibleTypes = new [] { typeof(string) })] - string AadProfileClientAppId { get; set; } - /// The server app id to access AD server - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The server app id to access AD server", - SerializedName = @"serverAppId", - PossibleTypes = new [] { typeof(string) })] - string AadProfileServerAppId { get; set; } - /// The aad tenant id which is configured on target K8s cluster - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The aad tenant id which is configured on target K8s cluster", - SerializedName = @"tenantId", - PossibleTypes = new [] { typeof(string) })] - string AadProfileTenantId { get; set; } - /// - /// Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure. - /// - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure.", - SerializedName = @"agentPublicKeyCertificate", - PossibleTypes = new [] { typeof(string) })] - string AgentPublicKeyCertificate { get; set; } - /// Version of the agent running on the connected cluster resource - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Version of the agent running on the connected cluster resource", - SerializedName = @"agentVersion", - PossibleTypes = new [] { typeof(string) })] - string AgentVersion { get; } - /// - /// The principal id of connected cluster identity. This property will only be provided for a system assigned identity. - /// - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The principal id of connected cluster identity. This property will only be provided for a system assigned identity.", - SerializedName = @"principalId", - PossibleTypes = new [] { typeof(string) })] - string IdentityPrincipalId { get; } - /// - /// The tenant id associated with the connected cluster. This property will only be provided for a system assigned identity. - /// - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The tenant id associated with the connected cluster. This property will only be provided for a system assigned identity.", - SerializedName = @"tenantId", - PossibleTypes = new [] { typeof(string) })] - string IdentityTenantId { get; } - /// - /// The type of identity used for the connected cluster. The type 'SystemAssigned, includes a system created identity. The - /// type 'None' means no identity is assigned to the connected cluster. - /// - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The type of identity used for the connected cluster. The type 'SystemAssigned, includes a system created identity. The type 'None' means no identity is assigned to the connected cluster.", - SerializedName = @"type", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ResourceIdentityType) })] - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ResourceIdentityType IdentityType { get; set; } - /// The Kubernetes version of the connected cluster resource - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The Kubernetes version of the connected cluster resource", - SerializedName = @"kubernetesVersion", - PossibleTypes = new [] { typeof(string) })] - string KubernetesVersion { get; } - /// The current deployment state of connectedClusters. - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The current deployment state of connectedClusters.", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState) })] - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState? ProvisioningState { get; set; } - /// Number of nodes present in the connected cluster resource - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Number of nodes present in the connected cluster resource", - SerializedName = @"totalNodeCount", - PossibleTypes = new [] { typeof(int) })] - int? TotalNodeCount { get; } - - } - /// Represents a connected cluster. - internal partial interface IConnectedClusterInternal : - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceInternal - { - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfile AadProfile { get; set; } - /// The client app id configured on target K8 cluster - string AadProfileClientAppId { get; set; } - /// The server app id to access AD server - string AadProfileServerAppId { get; set; } - /// The aad tenant id which is configured on target K8s cluster - string AadProfileTenantId { get; set; } - /// - /// Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure. - /// - string AgentPublicKeyCertificate { get; set; } - /// Version of the agent running on the connected cluster resource - string AgentVersion { get; set; } - /// The identity of the connected cluster. - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentity Identity { get; set; } - /// - /// The principal id of connected cluster identity. This property will only be provided for a system assigned identity. - /// - string IdentityPrincipalId { get; set; } - /// - /// The tenant id associated with the connected cluster. This property will only be provided for a system assigned identity. - /// - string IdentityTenantId { get; set; } - /// - /// The type of identity used for the connected cluster. The type 'SystemAssigned, includes a system created identity. The - /// type 'None' means no identity is assigned to the connected cluster. - /// - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ResourceIdentityType IdentityType { get; set; } - /// The Kubernetes version of the connected cluster resource - string KubernetesVersion { get; set; } - /// Describes the connected cluster resource properties. - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterProperties Property { get; set; } - /// The current deployment state of connectedClusters. - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState? ProvisioningState { get; set; } - /// Number of nodes present in the connected cluster resource - int? TotalNodeCount { get; set; } - - } -} \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterAadProfile.PowerShell.cs b/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterAadProfile.PowerShell.cs deleted file mode 100644 index bba1c3d90330..000000000000 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterAadProfile.PowerShell.cs +++ /dev/null @@ -1,135 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; - - [System.ComponentModel.TypeConverter(typeof(ConnectedClusterAadProfileTypeConverter))] - public partial class ConnectedClusterAadProfile - { - - /// - /// 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 ConnectedClusterAadProfile(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfileInternal)this).ClientAppId = (string) content.GetValueForProperty("ClientAppId",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfileInternal)this).ClientAppId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfileInternal)this).ServerAppId = (string) content.GetValueForProperty("ServerAppId",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfileInternal)this).ServerAppId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfileInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfileInternal)this).TenantId, 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 ConnectedClusterAadProfile(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfileInternal)this).ClientAppId = (string) content.GetValueForProperty("ClientAppId",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfileInternal)this).ClientAppId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfileInternal)this).ServerAppId = (string) content.GetValueForProperty("ServerAppId",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfileInternal)this).ServerAppId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfileInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfileInternal)this).TenantId, 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.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfile DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ConnectedClusterAadProfile(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.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfile DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ConnectedClusterAadProfile(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.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfile FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.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.ConnectedKubernetes.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - [System.ComponentModel.TypeConverter(typeof(ConnectedClusterAadProfileTypeConverter))] - public partial interface IConnectedClusterAadProfile - - { - - } -} \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterAadProfile.cs b/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterAadProfile.cs deleted file mode 100644 index e76e820c6585..000000000000 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterAadProfile.cs +++ /dev/null @@ -1,77 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview -{ - using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; - - public partial class ConnectedClusterAadProfile : - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfile, - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfileInternal - { - - /// Backing field for property. - private string _clientAppId; - - /// The client app id configured on target K8 cluster - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] - public string ClientAppId { get => this._clientAppId; set => this._clientAppId = value; } - - /// Backing field for property. - private string _serverAppId; - - /// The server app id to access AD server - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] - public string ServerAppId { get => this._serverAppId; set => this._serverAppId = value; } - - /// Backing field for property. - private string _tenantId; - - /// The aad tenant id which is configured on target K8s cluster - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] - public string TenantId { get => this._tenantId; set => this._tenantId = value; } - - /// Creates an new instance. - public ConnectedClusterAadProfile() - { - - } - } - public partial interface IConnectedClusterAadProfile : - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IJsonSerializable - { - /// The client app id configured on target K8 cluster - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The client app id configured on target K8 cluster ", - SerializedName = @"clientAppId", - PossibleTypes = new [] { typeof(string) })] - string ClientAppId { get; set; } - /// The server app id to access AD server - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The server app id to access AD server", - SerializedName = @"serverAppId", - PossibleTypes = new [] { typeof(string) })] - string ServerAppId { get; set; } - /// The aad tenant id which is configured on target K8s cluster - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The aad tenant id which is configured on target K8s cluster", - SerializedName = @"tenantId", - PossibleTypes = new [] { typeof(string) })] - string TenantId { get; set; } - - } - internal partial interface IConnectedClusterAadProfileInternal - - { - /// The client app id configured on target K8 cluster - string ClientAppId { get; set; } - /// The server app id to access AD server - string ServerAppId { get; set; } - /// The aad tenant id which is configured on target K8s cluster - string TenantId { get; set; } - - } -} \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatch.cs b/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatch.cs deleted file mode 100644 index e4c88f75bb9a..000000000000 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatch.cs +++ /dev/null @@ -1,82 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview -{ - using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; - - /// Object containing updates for patch operations. - public partial class ConnectedClusterPatch : - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatch, - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchInternal - { - - /// - /// Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure. - /// - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] - public string AgentPublicKeyCertificate { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchPropertiesInternal)Property).AgentPublicKeyCertificate; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchPropertiesInternal)Property).AgentPublicKeyCertificate = value; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchProperties Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterPatchProperties()); set { {_property = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchProperties _property; - - /// - /// Describes the connected cluster resource properties that can be updated during PATCH operation. - /// - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterPatchProperties()); set => this._property = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchTags _tag; - - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterPatchTags()); set => this._tag = value; } - - /// Creates an new instance. - public ConnectedClusterPatch() - { - - } - } - /// Object containing updates for patch operations. - public partial interface IConnectedClusterPatch : - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IJsonSerializable - { - /// - /// Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure. - /// - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure.", - SerializedName = @"agentPublicKeyCertificate", - PossibleTypes = new [] { typeof(string) })] - string AgentPublicKeyCertificate { get; set; } - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource tags.", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchTags) })] - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchTags Tag { get; set; } - - } - /// Object containing updates for patch operations. - internal partial interface IConnectedClusterPatchInternal - - { - /// - /// Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure. - /// - string AgentPublicKeyCertificate { get; set; } - /// - /// Describes the connected cluster resource properties that can be updated during PATCH operation. - /// - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchProperties Property { get; set; } - /// Resource tags. - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchTags Tag { get; set; } - - } -} \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatchProperties.cs b/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatchProperties.cs deleted file mode 100644 index dfd1f840201d..000000000000 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatchProperties.cs +++ /dev/null @@ -1,49 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview -{ - using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; - - public partial class ConnectedClusterPatchProperties : - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchProperties, - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchPropertiesInternal - { - - /// Backing field for property. - private string _agentPublicKeyCertificate; - - /// - /// Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure. - /// - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] - public string AgentPublicKeyCertificate { get => this._agentPublicKeyCertificate; set => this._agentPublicKeyCertificate = value; } - - /// Creates an new instance. - public ConnectedClusterPatchProperties() - { - - } - } - public partial interface IConnectedClusterPatchProperties : - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IJsonSerializable - { - /// - /// Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure. - /// - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure.", - SerializedName = @"agentPublicKeyCertificate", - PossibleTypes = new [] { typeof(string) })] - string AgentPublicKeyCertificate { get; set; } - - } - internal partial interface IConnectedClusterPatchPropertiesInternal - - { - /// - /// Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure. - /// - string AgentPublicKeyCertificate { get; set; } - - } -} \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterProperties.PowerShell.cs b/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterProperties.PowerShell.cs deleted file mode 100644 index e70de58b03b4..000000000000 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterProperties.PowerShell.cs +++ /dev/null @@ -1,147 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; - - [System.ComponentModel.TypeConverter(typeof(ConnectedClusterPropertiesTypeConverter))] - public partial class ConnectedClusterProperties - { - - /// - /// 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 ConnectedClusterProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).AadProfile = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfile) content.GetValueForProperty("AadProfile",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).AadProfile, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterAadProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).AgentPublicKeyCertificate = (string) content.GetValueForProperty("AgentPublicKeyCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).AgentPublicKeyCertificate, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).AgentVersion, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).KubernetesVersion = (string) content.GetValueForProperty("KubernetesVersion",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).KubernetesVersion, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).TotalNodeCount = (int?) content.GetValueForProperty("TotalNodeCount",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).TotalNodeCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).AadProfileClientAppId = (string) content.GetValueForProperty("AadProfileClientAppId",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).AadProfileClientAppId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).AadProfileServerAppId = (string) content.GetValueForProperty("AadProfileServerAppId",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).AadProfileServerAppId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).AadProfileTenantId = (string) content.GetValueForProperty("AadProfileTenantId",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).AadProfileTenantId, 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 ConnectedClusterProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).AadProfile = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfile) content.GetValueForProperty("AadProfile",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).AadProfile, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterAadProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).AgentPublicKeyCertificate = (string) content.GetValueForProperty("AgentPublicKeyCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).AgentPublicKeyCertificate, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).AgentVersion, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).KubernetesVersion = (string) content.GetValueForProperty("KubernetesVersion",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).KubernetesVersion, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).TotalNodeCount = (int?) content.GetValueForProperty("TotalNodeCount",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).TotalNodeCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).AadProfileClientAppId = (string) content.GetValueForProperty("AadProfileClientAppId",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).AadProfileClientAppId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).AadProfileServerAppId = (string) content.GetValueForProperty("AadProfileServerAppId",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).AadProfileServerAppId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).AadProfileTenantId = (string) content.GetValueForProperty("AadProfileTenantId",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal)this).AadProfileTenantId, 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.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ConnectedClusterProperties(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.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ConnectedClusterProperties(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.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.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.ConnectedKubernetes.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - [System.ComponentModel.TypeConverter(typeof(ConnectedClusterPropertiesTypeConverter))] - public partial interface IConnectedClusterProperties - - { - - } -} \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterProperties.cs b/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterProperties.cs deleted file mode 100644 index 643dea4fda92..000000000000 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterProperties.cs +++ /dev/null @@ -1,178 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview -{ - using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; - - public partial class ConnectedClusterProperties : - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterProperties, - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal - { - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfile _aadProfile; - - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfile AadProfile { get => (this._aadProfile = this._aadProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterAadProfile()); set => this._aadProfile = value; } - - /// The client app id configured on target K8 cluster - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] - public string AadProfileClientAppId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfileInternal)AadProfile).ClientAppId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfileInternal)AadProfile).ClientAppId = value; } - - /// The server app id to access AD server - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] - public string AadProfileServerAppId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfileInternal)AadProfile).ServerAppId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfileInternal)AadProfile).ServerAppId = value; } - - /// The aad tenant id which is configured on target K8s cluster - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] - public string AadProfileTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfileInternal)AadProfile).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfileInternal)AadProfile).TenantId = value; } - - /// Backing field for property. - private string _agentPublicKeyCertificate; - - /// - /// Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure. - /// - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] - public string AgentPublicKeyCertificate { get => this._agentPublicKeyCertificate; set => this._agentPublicKeyCertificate = value; } - - /// Backing field for property. - private string _agentVersion; - - /// Version of the agent running on the connected cluster resource - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] - public string AgentVersion { get => this._agentVersion; } - - /// Backing field for property. - private string _kubernetesVersion; - - /// The Kubernetes version of the connected cluster resource - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] - public string KubernetesVersion { get => this._kubernetesVersion; } - - /// Internal Acessors for AadProfile - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfile Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal.AadProfile { get => (this._aadProfile = this._aadProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterAadProfile()); set { {_aadProfile = value;} } } - - /// Internal Acessors for AgentVersion - string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal.AgentVersion { get => this._agentVersion; set { {_agentVersion = value;} } } - - /// Internal Acessors for KubernetesVersion - string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal.KubernetesVersion { get => this._kubernetesVersion; set { {_kubernetesVersion = value;} } } - - /// Internal Acessors for TotalNodeCount - int? Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPropertiesInternal.TotalNodeCount { get => this._totalNodeCount; set { {_totalNodeCount = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState? _provisioningState; - - /// The current deployment state of connectedClusters. - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; set => this._provisioningState = value; } - - /// Backing field for property. - private int? _totalNodeCount; - - /// Number of nodes present in the connected cluster resource - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] - public int? TotalNodeCount { get => this._totalNodeCount; } - - /// Creates an new instance. - public ConnectedClusterProperties() - { - - } - } - public partial interface IConnectedClusterProperties : - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IJsonSerializable - { - /// The client app id configured on target K8 cluster - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The client app id configured on target K8 cluster ", - SerializedName = @"clientAppId", - PossibleTypes = new [] { typeof(string) })] - string AadProfileClientAppId { get; set; } - /// The server app id to access AD server - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The server app id to access AD server", - SerializedName = @"serverAppId", - PossibleTypes = new [] { typeof(string) })] - string AadProfileServerAppId { get; set; } - /// The aad tenant id which is configured on target K8s cluster - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The aad tenant id which is configured on target K8s cluster", - SerializedName = @"tenantId", - PossibleTypes = new [] { typeof(string) })] - string AadProfileTenantId { get; set; } - /// - /// Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure. - /// - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure.", - SerializedName = @"agentPublicKeyCertificate", - PossibleTypes = new [] { typeof(string) })] - string AgentPublicKeyCertificate { get; set; } - /// Version of the agent running on the connected cluster resource - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Version of the agent running on the connected cluster resource", - SerializedName = @"agentVersion", - PossibleTypes = new [] { typeof(string) })] - string AgentVersion { get; } - /// The Kubernetes version of the connected cluster resource - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The Kubernetes version of the connected cluster resource", - SerializedName = @"kubernetesVersion", - PossibleTypes = new [] { typeof(string) })] - string KubernetesVersion { get; } - /// The current deployment state of connectedClusters. - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The current deployment state of connectedClusters.", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState) })] - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState? ProvisioningState { get; set; } - /// Number of nodes present in the connected cluster resource - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Number of nodes present in the connected cluster resource", - SerializedName = @"totalNodeCount", - PossibleTypes = new [] { typeof(int) })] - int? TotalNodeCount { get; } - - } - internal partial interface IConnectedClusterPropertiesInternal - - { - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfile AadProfile { get; set; } - /// The client app id configured on target K8 cluster - string AadProfileClientAppId { get; set; } - /// The server app id to access AD server - string AadProfileServerAppId { get; set; } - /// The aad tenant id which is configured on target K8s cluster - string AadProfileTenantId { get; set; } - /// - /// Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure. - /// - string AgentPublicKeyCertificate { get; set; } - /// Version of the agent running on the connected cluster resource - string AgentVersion { get; set; } - /// The Kubernetes version of the connected cluster resource - string KubernetesVersion { get; set; } - /// The current deployment state of connectedClusters. - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState? ProvisioningState { get; set; } - /// Number of nodes present in the connected cluster resource - int? TotalNodeCount { get; set; } - - } -} \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/CredentialResult.cs b/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/CredentialResult.cs deleted file mode 100644 index a4d6e4739194..000000000000 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/CredentialResult.cs +++ /dev/null @@ -1,69 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview -{ - using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; - - /// The credential result response. - public partial class CredentialResult : - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResult, - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResultInternal - { - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResultInternal.Name { get => this._name; set { {_name = value;} } } - - /// Internal Acessors for Value - byte[] Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResultInternal.Value { get => this._value; set { {_value = value;} } } - - /// Backing field for property. - private string _name; - - /// The name of the credential. - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] - public string Name { get => this._name; } - - /// Backing field for property. - private byte[] _value; - - /// Base64-encoded Kubernetes configuration file. - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] - public byte[] Value { get => this._value; } - - /// Creates an new instance. - public CredentialResult() - { - - } - } - /// The credential result response. - public partial interface ICredentialResult : - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IJsonSerializable - { - /// The name of the credential. - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The name of the credential.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; } - /// Base64-encoded Kubernetes configuration file. - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Base64-encoded Kubernetes configuration file.", - SerializedName = @"value", - PossibleTypes = new [] { typeof(byte[]) })] - byte[] Value { get; } - - } - /// The credential result response. - internal partial interface ICredentialResultInternal - - { - /// The name of the credential. - string Name { get; set; } - /// Base64-encoded Kubernetes configuration file. - byte[] Value { get; set; } - - } -} \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/CredentialResults.PowerShell.cs b/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/CredentialResults.PowerShell.cs deleted file mode 100644 index 5f64c9f9da00..000000000000 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/CredentialResults.PowerShell.cs +++ /dev/null @@ -1,133 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; - - /// The list of credential result response. - [System.ComponentModel.TypeConverter(typeof(CredentialResultsTypeConverter))] - public partial class CredentialResults - { - - /// - /// 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 CredentialResults(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResultsInternal)this).Kubeconfig = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResult[]) content.GetValueForProperty("Kubeconfig",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResultsInternal)this).Kubeconfig, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.CredentialResultTypeConverter.ConvertFrom)); - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal CredentialResults(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResultsInternal)this).Kubeconfig = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResult[]) content.GetValueForProperty("Kubeconfig",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResultsInternal)this).Kubeconfig, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.CredentialResultTypeConverter.ConvertFrom)); - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResults DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CredentialResults(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.ConnectedKubernetes.Models.Api202001Preview.ICredentialResults DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CredentialResults(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.ConnectedKubernetes.Models.Api202001Preview.ICredentialResults FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.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.ConnectedKubernetes.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// The list of credential result response. - [System.ComponentModel.TypeConverter(typeof(CredentialResultsTypeConverter))] - public partial interface ICredentialResults - - { - - } -} \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/CredentialResults.cs b/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/CredentialResults.cs deleted file mode 100644 index 26b25adefec3..000000000000 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/CredentialResults.cs +++ /dev/null @@ -1,49 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview -{ - using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; - - /// The list of credential result response. - public partial class CredentialResults : - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResults, - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResultsInternal - { - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResult[] _kubeconfig; - - /// Base64-encoded Kubernetes configuration file. - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResult[] Kubeconfig { get => this._kubeconfig; } - - /// Internal Acessors for Kubeconfig - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResult[] Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResultsInternal.Kubeconfig { get => this._kubeconfig; set { {_kubeconfig = value;} } } - - /// Creates an new instance. - public CredentialResults() - { - - } - } - /// The list of credential result response. - public partial interface ICredentialResults : - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IJsonSerializable - { - /// Base64-encoded Kubernetes configuration file. - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Base64-encoded Kubernetes configuration file.", - SerializedName = @"kubeconfigs", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResult) })] - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResult[] Kubeconfig { get; } - - } - /// The list of credential result response. - internal partial interface ICredentialResultsInternal - - { - /// Base64-encoded Kubernetes configuration file. - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ICredentialResult[] Kubeconfig { get; set; } - - } -} \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ErrorDetails.cs b/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ErrorDetails.cs deleted file mode 100644 index 9dc3f79c9db2..000000000000 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ErrorDetails.cs +++ /dev/null @@ -1,69 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview -{ - using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; - - /// The error response details containing error code and error message - public partial class ErrorDetails : - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorDetails, - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorDetailsInternal - { - - /// Backing field for property. - private string _code; - - /// The error code. - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] - public string Code { get => this._code; } - - /// Backing field for property. - private string _message; - - /// The error message. - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] - public string Message { get => this._message; } - - /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorDetailsInternal.Code { get => this._code; set { {_code = value;} } } - - /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorDetailsInternal.Message { get => this._message; set { {_message = value;} } } - - /// Creates an new instance. - public ErrorDetails() - { - - } - } - /// The error response details containing error code and error message - public partial interface IErrorDetails : - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IJsonSerializable - { - /// The error code. - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The error code.", - SerializedName = @"code", - PossibleTypes = new [] { typeof(string) })] - string Code { get; } - /// The error message. - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The error message.", - SerializedName = @"message", - PossibleTypes = new [] { typeof(string) })] - string Message { get; } - - } - /// The error response details containing error code and error message - internal partial interface IErrorDetailsInternal - - { - /// The error code. - string Code { get; set; } - /// The error message. - string Message { get; set; } - - } -} \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ErrorResponse.cs b/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ErrorResponse.cs deleted file mode 100644 index 780f7eddede7..000000000000 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ErrorResponse.cs +++ /dev/null @@ -1,75 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview -{ - using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; - - /// The error response that indicates why an operation has failed. - public partial class ErrorResponse : - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorResponse, - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorResponseInternal - { - - /// The error code. - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorDetailsInternal)Error).Code; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorDetails _error; - - /// The error response details containing error code and error message - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorDetails Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ErrorDetails()); set => this._error = value; } - - /// The error message. - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorDetailsInternal)Error).Message; } - - /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorDetailsInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorDetailsInternal)Error).Code = value; } - - /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorDetails Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ErrorDetails()); set { {_error = value;} } } - - /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorDetailsInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorDetailsInternal)Error).Message = value; } - - /// Creates an new instance. - public ErrorResponse() - { - - } - } - /// The error response that indicates why an operation has failed. - public partial interface IErrorResponse : - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IJsonSerializable - { - /// The error code. - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The error code.", - SerializedName = @"code", - PossibleTypes = new [] { typeof(string) })] - string Code { get; } - /// The error message. - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The error message.", - SerializedName = @"message", - PossibleTypes = new [] { typeof(string) })] - string Message { get; } - - } - /// The error response that indicates why an operation has failed. - internal partial interface IErrorResponseInternal - - { - /// The error code. - string Code { get; set; } - /// The error response details containing error code and error message - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorDetails Error { get; set; } - /// The error message. - string Message { get; set; } - - } -} \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedCluster.PowerShell.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedCluster.PowerShell.cs new file mode 100644 index 000000000000..1b46eb5639ad --- /dev/null +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedCluster.PowerShell.cs @@ -0,0 +1,189 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; + + /// Represents a connected cluster. + [System.ComponentModel.TypeConverter(typeof(ConnectedClusterTypeConverter))] + public partial class ConnectedCluster + { + + /// + /// 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 ConnectedCluster(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedClusterIdentityTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedClusterPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).ConnectivityStatus = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ConnectivityStatus?) content.GetValueForProperty("ConnectivityStatus",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).ConnectivityStatus, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ConnectivityStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).ManagedIdentityCertificateExpirationTime = (global::System.DateTime?) content.GetValueForProperty("ManagedIdentityCertificateExpirationTime",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).ManagedIdentityCertificateExpirationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ResourceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ResourceIdentityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).Distribution = (string) content.GetValueForProperty("Distribution",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).Distribution, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).Infrastructure = (string) content.GetValueForProperty("Infrastructure",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).Infrastructure, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).KubernetesVersion = (string) content.GetValueForProperty("KubernetesVersion",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).KubernetesVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).LastConnectivityTime = (global::System.DateTime?) content.GetValueForProperty("LastConnectivityTime",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).LastConnectivityTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).Offering = (string) content.GetValueForProperty("Offering",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).Offering, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).TotalCoreCount = (int?) content.GetValueForProperty("TotalCoreCount",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).TotalCoreCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).TotalNodeCount = (int?) content.GetValueForProperty("TotalNodeCount",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).TotalNodeCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).AgentPublicKeyCertificate = (string) content.GetValueForProperty("AgentPublicKeyCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).AgentPublicKeyCertificate, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).AgentVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByType.CreateFrom); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ConnectedCluster(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedClusterIdentityTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedClusterPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).ConnectivityStatus = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ConnectivityStatus?) content.GetValueForProperty("ConnectivityStatus",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).ConnectivityStatus, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ConnectivityStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).ManagedIdentityCertificateExpirationTime = (global::System.DateTime?) content.GetValueForProperty("ManagedIdentityCertificateExpirationTime",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).ManagedIdentityCertificateExpirationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ResourceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ResourceIdentityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).Distribution = (string) content.GetValueForProperty("Distribution",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).Distribution, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).Infrastructure = (string) content.GetValueForProperty("Infrastructure",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).Infrastructure, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).KubernetesVersion = (string) content.GetValueForProperty("KubernetesVersion",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).KubernetesVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).LastConnectivityTime = (global::System.DateTime?) content.GetValueForProperty("LastConnectivityTime",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).LastConnectivityTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).Offering = (string) content.GetValueForProperty("Offering",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).Offering, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).TotalCoreCount = (int?) content.GetValueForProperty("TotalCoreCount",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).TotalCoreCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).TotalNodeCount = (int?) content.GetValueForProperty("TotalNodeCount",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).TotalNodeCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).AgentPublicKeyCertificate = (string) content.GetValueForProperty("AgentPublicKeyCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).AgentPublicKeyCertificate, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).AgentVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByType.CreateFrom); + 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.ConnectedKubernetes.Models.Api20210301.IConnectedCluster DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ConnectedCluster(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.ConnectedKubernetes.Models.Api20210301.IConnectedCluster DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ConnectedCluster(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.ConnectedKubernetes.Models.Api20210301.IConnectedCluster FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.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.ConnectedKubernetes.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Represents a connected cluster. + [System.ComponentModel.TypeConverter(typeof(ConnectedClusterTypeConverter))] + public partial interface IConnectedCluster + + { + + } +} \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedCluster.TypeConverter.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedCluster.TypeConverter.cs similarity index 97% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedCluster.TypeConverter.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedCluster.TypeConverter.cs index 9b4952383071..29a0b0698a73 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedCluster.TypeConverter.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedCluster.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedCluster.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedCluster.cs new file mode 100644 index 000000000000..91dd73dd3918 --- /dev/null +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedCluster.cs @@ -0,0 +1,480 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; + + /// Represents a connected cluster. + public partial class ConnectedCluster : + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster, + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal, + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.TrackedResource(); + + /// + /// Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] + public string AgentPublicKeyCertificate { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)Property).AgentPublicKeyCertificate; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)Property).AgentPublicKeyCertificate = value; } + + /// Version of the agent running on the connected cluster resource + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] + public string AgentVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)Property).AgentVersion; } + + /// Represents the connectivity status of the connected cluster. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ConnectivityStatus? ConnectivityStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)Property).ConnectivityStatus; } + + /// The Kubernetes distribution running on this connected cluster. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] + public string Distribution { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)Property).Distribution; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)Property).Distribution = value; } + + /// + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)__trackedResource).Id; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentity _identity; + + /// The identity of the connected cluster. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentity Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedClusterIdentity()); set => this._identity = value; } + + /// + /// The principal id of connected cluster identity. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] + public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentityInternal)Identity).PrincipalId; } + + /// + /// The tenant id associated with the connected cluster. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] + public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentityInternal)Identity).TenantId; } + + /// + /// The type of identity used for the connected cluster. The type 'SystemAssigned, includes a system created identity. The + /// type 'None' means no identity is assigned to the connected cluster. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ResourceIdentityType IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentityInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentityInternal)Identity).Type = value; } + + /// + /// The infrastructure on which the Kubernetes cluster represented by this connected cluster is running on. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] + public string Infrastructure { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)Property).Infrastructure; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)Property).Infrastructure = value; } + + /// The Kubernetes version of the connected cluster resource + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] + public string KubernetesVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)Property).KubernetesVersion; } + + /// + /// Time representing the last instance when heart beat was received from the cluster + /// + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] + public global::System.DateTime? LastConnectivityTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)Property).LastConnectivityTime; } + + /// The geo-location where the resource lives + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceInternal)__trackedResource).Location = value; } + + /// Expiration time of the managed identity certificate + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] + public global::System.DateTime? ManagedIdentityCertificateExpirationTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)Property).ManagedIdentityCertificateExpirationTime; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)__trackedResource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)__trackedResource).Name = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)__trackedResource).Type = value; } + + /// Internal Acessors for AgentVersion + string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal.AgentVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)Property).AgentVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)Property).AgentVersion = value; } + + /// Internal Acessors for ConnectivityStatus + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ConnectivityStatus? Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal.ConnectivityStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)Property).ConnectivityStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)Property).ConnectivityStatus = value; } + + /// Internal Acessors for Identity + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentity Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedClusterIdentity()); set { {_identity = value;} } } + + /// Internal Acessors for IdentityPrincipalId + string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentityInternal)Identity).PrincipalId = value; } + + /// Internal Acessors for IdentityTenantId + string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentityInternal)Identity).TenantId = value; } + + /// Internal Acessors for KubernetesVersion + string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal.KubernetesVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)Property).KubernetesVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)Property).KubernetesVersion = value; } + + /// Internal Acessors for LastConnectivityTime + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal.LastConnectivityTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)Property).LastConnectivityTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)Property).LastConnectivityTime = value; } + + /// Internal Acessors for ManagedIdentityCertificateExpirationTime + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal.ManagedIdentityCertificateExpirationTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)Property).ManagedIdentityCertificateExpirationTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)Property).ManagedIdentityCertificateExpirationTime = value; } + + /// Internal Acessors for Offering + string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal.Offering { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)Property).Offering; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)Property).Offering = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterProperties Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedClusterProperties()); set { {_property = value;} } } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.SystemData()); set { {_systemData = value;} } } + + /// Internal Acessors for TotalCoreCount + int? Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal.TotalCoreCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)Property).TotalCoreCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)Property).TotalCoreCount = value; } + + /// Internal Acessors for TotalNodeCount + int? Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterInternal.TotalNodeCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)Property).TotalNodeCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)Property).TotalNodeCount = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)__trackedResource).Name; } + + /// Connected cluster offering + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] + public string Offering { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)Property).Offering; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterProperties _property; + + /// Describes the connected cluster resource properties. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedClusterProperties()); set => this._property = value; } + + /// Provisioning state of the connected cluster resource. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)Property).ProvisioningState = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemData _systemData; + + /// Metadata pertaining to creation and last modification of the resource + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.SystemData()); } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)SystemData).CreatedAt = value; } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)SystemData).CreatedBy = value; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)SystemData).CreatedByType = value; } + + /// The timestamp of resource modification (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)SystemData).LastModifiedAt = value; } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)SystemData).LastModifiedBy = value; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)SystemData).LastModifiedByType = value; } + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceInternal)__trackedResource).Tag = value; } + + /// Number of CPU cores present in the connected cluster resource + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] + public int? TotalCoreCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)Property).TotalCoreCount; } + + /// Number of nodes present in the connected cluster resource + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] + public int? TotalNodeCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)Property).TotalNodeCount; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.IResourceInternal)__trackedResource).Type; } + + /// Creates an new instance. + public ConnectedCluster() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__trackedResource), __trackedResource); + await eventListener.AssertObjectIsValid(nameof(__trackedResource), __trackedResource); + } + } + /// Represents a connected cluster. + public partial interface IConnectedCluster : + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResource + { + /// + /// Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure.", + SerializedName = @"agentPublicKeyCertificate", + PossibleTypes = new [] { typeof(string) })] + string AgentPublicKeyCertificate { get; set; } + /// Version of the agent running on the connected cluster resource + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Version of the agent running on the connected cluster resource", + SerializedName = @"agentVersion", + PossibleTypes = new [] { typeof(string) })] + string AgentVersion { get; } + /// Represents the connectivity status of the connected cluster. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Represents the connectivity status of the connected cluster.", + SerializedName = @"connectivityStatus", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ConnectivityStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ConnectivityStatus? ConnectivityStatus { get; } + /// The Kubernetes distribution running on this connected cluster. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Kubernetes distribution running on this connected cluster.", + SerializedName = @"distribution", + PossibleTypes = new [] { typeof(string) })] + string Distribution { get; set; } + /// + /// The principal id of connected cluster identity. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The principal id of connected cluster identity. This property will only be provided for a system assigned identity.", + SerializedName = @"principalId", + PossibleTypes = new [] { typeof(string) })] + string IdentityPrincipalId { get; } + /// + /// The tenant id associated with the connected cluster. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The tenant id associated with the connected cluster. This property will only be provided for a system assigned identity.", + SerializedName = @"tenantId", + PossibleTypes = new [] { typeof(string) })] + string IdentityTenantId { get; } + /// + /// The type of identity used for the connected cluster. The type 'SystemAssigned, includes a system created identity. The + /// type 'None' means no identity is assigned to the connected cluster. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The type of identity used for the connected cluster. The type 'SystemAssigned, includes a system created identity. The type 'None' means no identity is assigned to the connected cluster.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ResourceIdentityType) })] + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ResourceIdentityType IdentityType { get; set; } + /// + /// The infrastructure on which the Kubernetes cluster represented by this connected cluster is running on. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The infrastructure on which the Kubernetes cluster represented by this connected cluster is running on.", + SerializedName = @"infrastructure", + PossibleTypes = new [] { typeof(string) })] + string Infrastructure { get; set; } + /// The Kubernetes version of the connected cluster resource + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The Kubernetes version of the connected cluster resource", + SerializedName = @"kubernetesVersion", + PossibleTypes = new [] { typeof(string) })] + string KubernetesVersion { get; } + /// + /// Time representing the last instance when heart beat was received from the cluster + /// + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Time representing the last instance when heart beat was received from the cluster", + SerializedName = @"lastConnectivityTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? LastConnectivityTime { get; } + /// Expiration time of the managed identity certificate + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Expiration time of the managed identity certificate", + SerializedName = @"managedIdentityCertificateExpirationTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? ManagedIdentityCertificateExpirationTime { get; } + /// Connected cluster offering + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Connected cluster offering", + SerializedName = @"offering", + PossibleTypes = new [] { typeof(string) })] + string Offering { get; } + /// Provisioning state of the connected cluster resource. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Provisioning state of the connected cluster resource.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState) })] + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState? ProvisioningState { get; set; } + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The timestamp of resource creation (UTC).", + SerializedName = @"createdAt", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? SystemDataCreatedAt { get; set; } + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The identity that created the resource.", + SerializedName = @"createdBy", + PossibleTypes = new [] { typeof(string) })] + string SystemDataCreatedBy { get; set; } + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of identity that created the resource.", + SerializedName = @"createdByType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByType) })] + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByType? SystemDataCreatedByType { get; set; } + /// The timestamp of resource modification (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The timestamp of resource modification (UTC).", + SerializedName = @"lastModifiedAt", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? SystemDataLastModifiedAt { get; set; } + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The identity that last modified the resource.", + SerializedName = @"lastModifiedBy", + PossibleTypes = new [] { typeof(string) })] + string SystemDataLastModifiedBy { get; set; } + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of identity that last modified the resource.", + SerializedName = @"lastModifiedByType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByType) })] + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByType? SystemDataLastModifiedByType { get; set; } + /// Number of CPU cores present in the connected cluster resource + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Number of CPU cores present in the connected cluster resource", + SerializedName = @"totalCoreCount", + PossibleTypes = new [] { typeof(int) })] + int? TotalCoreCount { get; } + /// Number of nodes present in the connected cluster resource + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Number of nodes present in the connected cluster resource", + SerializedName = @"totalNodeCount", + PossibleTypes = new [] { typeof(int) })] + int? TotalNodeCount { get; } + + } + /// Represents a connected cluster. + internal partial interface IConnectedClusterInternal : + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceInternal + { + /// + /// Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure. + /// + string AgentPublicKeyCertificate { get; set; } + /// Version of the agent running on the connected cluster resource + string AgentVersion { get; set; } + /// Represents the connectivity status of the connected cluster. + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ConnectivityStatus? ConnectivityStatus { get; set; } + /// The Kubernetes distribution running on this connected cluster. + string Distribution { get; set; } + /// The identity of the connected cluster. + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentity Identity { get; set; } + /// + /// The principal id of connected cluster identity. This property will only be provided for a system assigned identity. + /// + string IdentityPrincipalId { get; set; } + /// + /// The tenant id associated with the connected cluster. This property will only be provided for a system assigned identity. + /// + string IdentityTenantId { get; set; } + /// + /// The type of identity used for the connected cluster. The type 'SystemAssigned, includes a system created identity. The + /// type 'None' means no identity is assigned to the connected cluster. + /// + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ResourceIdentityType IdentityType { get; set; } + /// + /// The infrastructure on which the Kubernetes cluster represented by this connected cluster is running on. + /// + string Infrastructure { get; set; } + /// The Kubernetes version of the connected cluster resource + string KubernetesVersion { get; set; } + /// + /// Time representing the last instance when heart beat was received from the cluster + /// + global::System.DateTime? LastConnectivityTime { get; set; } + /// Expiration time of the managed identity certificate + global::System.DateTime? ManagedIdentityCertificateExpirationTime { get; set; } + /// Connected cluster offering + string Offering { get; set; } + /// Describes the connected cluster resource properties. + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterProperties Property { get; set; } + /// Provisioning state of the connected cluster resource. + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState? ProvisioningState { get; set; } + /// Metadata pertaining to creation and last modification of the resource + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemData SystemData { get; set; } + /// The timestamp of resource creation (UTC). + global::System.DateTime? SystemDataCreatedAt { get; set; } + /// The identity that created the resource. + string SystemDataCreatedBy { get; set; } + /// The type of identity that created the resource. + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByType? SystemDataCreatedByType { get; set; } + /// The timestamp of resource modification (UTC). + global::System.DateTime? SystemDataLastModifiedAt { get; set; } + /// The identity that last modified the resource. + string SystemDataLastModifiedBy { get; set; } + /// The type of identity that last modified the resource. + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByType? SystemDataLastModifiedByType { get; set; } + /// Number of CPU cores present in the connected cluster resource + int? TotalCoreCount { get; set; } + /// Number of nodes present in the connected cluster resource + int? TotalNodeCount { get; set; } + + } +} \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedCluster.json.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedCluster.json.cs similarity index 85% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedCluster.json.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedCluster.json.cs index b707232a7af1..7314c6664389 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedCluster.json.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedCluster.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; @@ -58,20 +58,21 @@ internal ConnectedCluster(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes { return; } - __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.TrackedResource(json); - {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterIdentity.FromJson(__jsonIdentity) : Identity;} - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterProperties.FromJson(__jsonProperties) : Property;} + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.TrackedResource(json); + {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedClusterIdentity.FromJson(__jsonIdentity) : Identity;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedClusterProperties.FromJson(__jsonProperties) : Property;} + {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.SystemData.FromJson(__jsonSystemData) : SystemData;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject json ? new ConnectedCluster(json) : null; } @@ -98,6 +99,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonN __trackedResource?.ToJson(container, serializationMode); AddIf( null != this._identity ? (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode) this._identity.ToJson(null,serializationMode) : null, "identity" ,container.Add ); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._systemData ? (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode) this._systemData.ToJson(null,serializationMode) : null, "systemData" ,container.Add ); + } AfterToJson(ref container); return container; } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterIdentity.PowerShell.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterIdentity.PowerShell.cs similarity index 70% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterIdentity.PowerShell.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterIdentity.PowerShell.cs index 72fd650926fe..a365fda4e27f 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterIdentity.PowerShell.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterIdentity.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class ConnectedClusterIdentity partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,14 +61,14 @@ internal ConnectedClusterIdentity(global::System.Collections.IDictionary content return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentityInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ResourceIdentityType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentityInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ResourceIdentityType.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentityInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentityInternal)this).PrincipalId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentityInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentityInternal)this).TenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentityInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ResourceIdentityType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentityInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ResourceIdentityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentityInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentityInternal)this).PrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentityInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentityInternal)this).TenantId, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -81,36 +81,36 @@ internal ConnectedClusterIdentity(global::System.Management.Automation.PSObject return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentityInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ResourceIdentityType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentityInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ResourceIdentityType.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentityInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentityInternal)this).PrincipalId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentityInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentityInternal)this).TenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentityInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ResourceIdentityType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentityInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ResourceIdentityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentityInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentityInternal)this).PrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentityInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentityInternal)this).TenantId, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentity DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentity DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ConnectedClusterIdentity(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentity DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentity DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ConnectedClusterIdentity(content); } @@ -120,7 +120,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api2 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterIdentity.TypeConverter.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterIdentity.TypeConverter.cs similarity index 97% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterIdentity.TypeConverter.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterIdentity.TypeConverter.cs index edcbca0c9c13..315d9ea675e8 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterIdentity.TypeConverter.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterIdentity.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentity ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentity ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentity).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentity).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterIdentity.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterIdentity.cs similarity index 93% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterIdentity.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterIdentity.cs index 2b8cee36bbfe..7742e43bc5b2 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterIdentity.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterIdentity.cs @@ -1,18 +1,18 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; /// Identity for the connected cluster. public partial class ConnectedClusterIdentity : - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentity, - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentityInternal + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentity, + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentityInternal { /// Internal Acessors for PrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentityInternal.PrincipalId { get => this._principalId; set { {_principalId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentityInternal.PrincipalId { get => this._principalId; set { {_principalId = value;} } } /// Internal Acessors for TenantId - string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentityInternal.TenantId { get => this._tenantId; set { {_tenantId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentityInternal.TenantId { get => this._tenantId; set { {_tenantId = value;} } } /// Backing field for property. private string _principalId; diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterIdentity.json.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterIdentity.json.cs similarity index 96% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterIdentity.json.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterIdentity.json.cs index 9ff0c63a255c..07bd1ebf7ef8 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterIdentity.json.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterIdentity.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; @@ -65,13 +65,13 @@ internal ConnectedClusterIdentity(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKu } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentity. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentity. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentity. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentity. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterIdentity FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterIdentity FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject json ? new ConnectedClusterIdentity(json) : null; } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterList.PowerShell.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterList.PowerShell.cs similarity index 70% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterList.PowerShell.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterList.PowerShell.cs index 5fdaed3bf80a..4b5c5403d430 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterList.PowerShell.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterList.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class ConnectedClusterList partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,13 +61,13 @@ internal ConnectedClusterList(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterListInternal)this).NextLink, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedClusterTypeConverter.ConvertFrom)); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -80,35 +80,35 @@ internal ConnectedClusterList(global::System.Management.Automation.PSObject cont return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterListInternal)this).NextLink, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedClusterTypeConverter.ConvertFrom)); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterList DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ConnectedClusterList(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ConnectedClusterList(content); } @@ -118,7 +118,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api2 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterList.TypeConverter.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterList.TypeConverter.cs similarity index 97% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterList.TypeConverter.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterList.TypeConverter.cs index c3a09841265f..f546a82b665d 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterList.TypeConverter.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterList.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterList.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterList.cs similarity index 85% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterList.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterList.cs index d5380dcf0f7b..c7e23db3745f 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterList.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterList.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; /// The paginated list of connected Clusters public partial class ConnectedClusterList : - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterList, - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterListInternal + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterList, + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterListInternal { /// Backing field for property. @@ -16,11 +16,11 @@ public partial class ConnectedClusterList : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster[] _value; /// The list of connected clusters [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public ConnectedClusterList() @@ -46,8 +46,8 @@ public partial interface IConnectedClusterList : ReadOnly = false, Description = @"The list of connected clusters", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster) })] - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster) })] + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster[] Value { get; set; } } /// The paginated list of connected Clusters @@ -57,7 +57,7 @@ internal partial interface IConnectedClusterListInternal /// The link to fetch the next page of connected cluster string NextLink { get; set; } /// The list of connected clusters - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster[] Value { get; set; } } } \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterList.json.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterList.json.cs similarity index 91% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterList.json.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterList.json.cs index 75d7b1922391..47caa5005584 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterList.json.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterList.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; @@ -59,18 +59,18 @@ internal ConnectedClusterList(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubern return; } {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster) (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedCluster.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster) (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedCluster.FromJson(__u) )) ))() : null : Value;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterList FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterList FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject json ? new ConnectedClusterList(json) : null; } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatch.PowerShell.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatch.PowerShell.cs similarity index 64% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatch.PowerShell.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatch.PowerShell.cs index 62eca5bf63c7..655e8ce310c5 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatch.PowerShell.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatch.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class ConnectedClusterPatch partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,14 +61,13 @@ internal ConnectedClusterPatch(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterPatchPropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterPatchTagsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchInternal)this).AgentPublicKeyCertificate = (string) content.GetValueForProperty("AgentPublicKeyCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchInternal)this).AgentPublicKeyCertificate, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedClusterPatchPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedClusterPatchTagsTypeConverter.ConvertFrom); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -81,36 +80,35 @@ internal ConnectedClusterPatch(global::System.Management.Automation.PSObject con return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterPatchPropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterPatchTagsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchInternal)this).AgentPublicKeyCertificate = (string) content.GetValueForProperty("AgentPublicKeyCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchInternal)this).AgentPublicKeyCertificate, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedClusterPatchPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedClusterPatchTagsTypeConverter.ConvertFrom); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ConnectedClusterPatch(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ConnectedClusterPatch(content); } @@ -120,7 +118,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api2 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatch.TypeConverter.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatch.TypeConverter.cs similarity index 97% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatch.TypeConverter.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatch.TypeConverter.cs index a8d2d105d558..8b05f32fc810 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatch.TypeConverter.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatch.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatch ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatch ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatch).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatch).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatch.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatch.cs new file mode 100644 index 000000000000..f615bbeb7db6 --- /dev/null +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatch.cs @@ -0,0 +1,69 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; + + /// Object containing updates for patch operations. + public partial class ConnectedClusterPatch : + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatch, + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchProperties _property; + + /// + /// Describes the connected cluster resource properties that can be updated during PATCH operation. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedClusterPatchProperties()); set => this._property = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchTags _tag; + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedClusterPatchTags()); set => this._tag = value; } + + /// Creates an new instance. + public ConnectedClusterPatch() + { + + } + } + /// Object containing updates for patch operations. + public partial interface IConnectedClusterPatch : + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IJsonSerializable + { + /// + /// Describes the connected cluster resource properties that can be updated during PATCH operation. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Describes the connected cluster resource properties that can be updated during PATCH operation.", + SerializedName = @"properties", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchProperties) })] + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchProperties Property { get; set; } + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchTags) })] + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchTags Tag { get; set; } + + } + /// Object containing updates for patch operations. + internal partial interface IConnectedClusterPatchInternal + + { + /// + /// Describes the connected cluster resource properties that can be updated during PATCH operation. + /// + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchProperties Property { get; set; } + /// Resource tags. + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchTags Tag { get; set; } + + } +} \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatch.json.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatch.json.cs similarity index 93% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatch.json.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatch.json.cs index 32aa034f70f7..9f08c306e509 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatch.json.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatch.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; @@ -58,19 +58,19 @@ internal ConnectedClusterPatch(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKuber { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterPatchProperties.FromJson(__jsonProperties) : Property;} - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterPatchTags.FromJson(__jsonTags) : Tag;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedClusterPatchProperties.FromJson(__jsonProperties) : Property;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedClusterPatchTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatch. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatch. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatch. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatch. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject json ? new ConnectedClusterPatch(json) : null; } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatchProperties.PowerShell.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatchProperties.PowerShell.cs similarity index 76% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatchProperties.PowerShell.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatchProperties.PowerShell.cs index 578f14699556..19bd24d332ef 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatchProperties.PowerShell.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatchProperties.PowerShell.cs @@ -1,7 +1,8 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; + /// Properties which can be patched on the connected cluster resource. [System.ComponentModel.TypeConverter(typeof(ConnectedClusterPatchPropertiesTypeConverter))] public partial class ConnectedClusterPatchProperties { @@ -47,7 +48,7 @@ public partial class ConnectedClusterPatchProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -60,12 +61,11 @@ internal ConnectedClusterPatchProperties(global::System.Collections.IDictionary return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchPropertiesInternal)this).AgentPublicKeyCertificate = (string) content.GetValueForProperty("AgentPublicKeyCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchPropertiesInternal)this).AgentPublicKeyCertificate, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -78,34 +78,33 @@ internal ConnectedClusterPatchProperties(global::System.Management.Automation.PS return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchPropertiesInternal)this).AgentPublicKeyCertificate = (string) content.GetValueForProperty("AgentPublicKeyCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchPropertiesInternal)this).AgentPublicKeyCertificate, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ConnectedClusterPatchProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ConnectedClusterPatchProperties(content); } @@ -115,13 +114,14 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api2 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.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.ConnectedKubernetes.Runtime.SerializationMode.IncludeAll)?.ToString(); } + /// Properties which can be patched on the connected cluster resource. [System.ComponentModel.TypeConverter(typeof(ConnectedClusterPatchPropertiesTypeConverter))] public partial interface IConnectedClusterPatchProperties diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatchProperties.TypeConverter.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatchProperties.TypeConverter.cs similarity index 96% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatchProperties.TypeConverter.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatchProperties.TypeConverter.cs index 1316a8d3d49b..579abb9ecb56 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatchProperties.TypeConverter.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatchProperties.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatchProperties.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatchProperties.cs new file mode 100644 index 000000000000..1c00a39a7fbb --- /dev/null +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatchProperties.cs @@ -0,0 +1,29 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; + + /// Properties which can be patched on the connected cluster resource. + public partial class ConnectedClusterPatchProperties : + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchProperties, + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchPropertiesInternal + { + + /// Creates an new instance. + public ConnectedClusterPatchProperties() + { + + } + } + /// Properties which can be patched on the connected cluster resource. + public partial interface IConnectedClusterPatchProperties : + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IJsonSerializable + { + + } + /// Properties which can be patched on the connected cluster resource. + internal partial interface IConnectedClusterPatchPropertiesInternal + + { + + } +} \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatchProperties.json.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatchProperties.json.cs similarity index 86% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatchProperties.json.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatchProperties.json.cs index 9833389c7649..2cafaae9ab8c 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatchProperties.json.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatchProperties.json.cs @@ -1,7 +1,8 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; + /// Properties which can be patched on the connected cluster resource. public partial class ConnectedClusterPatchProperties { @@ -57,18 +58,17 @@ internal ConnectedClusterPatchProperties(Microsoft.Azure.PowerShell.Cmdlets.Conn { return; } - {_agentPublicKeyCertificate = If( json?.PropertyT("agentPublicKeyCertificate"), out var __jsonAgentPublicKeyCertificate) ? (string)__jsonAgentPublicKeyCertificate : (string)AgentPublicKeyCertificate;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject json ? new ConnectedClusterPatchProperties(json) : null; } @@ -92,7 +92,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonN { return container; } - AddIf( null != (((object)this._agentPublicKeyCertificate)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonString(this._agentPublicKeyCertificate.ToString()) : null, "agentPublicKeyCertificate" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatchTags.PowerShell.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatchTags.PowerShell.cs similarity index 86% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatchTags.PowerShell.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatchTags.PowerShell.cs index 3ffb3066a7a5..f40c2a8ec879 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatchTags.PowerShell.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatchTags.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class ConnectedClusterPatchTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -67,7 +67,7 @@ internal ConnectedClusterPatchTags(global::System.Collections.IDictionary conten } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -86,29 +86,29 @@ internal ConnectedClusterPatchTags(global::System.Management.Automation.PSObject } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ConnectedClusterPatchTags(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ConnectedClusterPatchTags(content); } @@ -118,7 +118,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api2 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatchTags.TypeConverter.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatchTags.TypeConverter.cs similarity index 97% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatchTags.TypeConverter.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatchTags.TypeConverter.cs index 0ea40e82f2b3..bfa3c9e96aa0 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatchTags.TypeConverter.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatchTags.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatchTags.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatchTags.cs similarity index 87% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatchTags.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatchTags.cs index 1b7ea6eb8f22..5354e9c05174 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatchTags.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatchTags.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; /// Resource tags. public partial class ConnectedClusterPatchTags : - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchTags, - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchTags, + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchTagsInternal { /// Creates an new instance. diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatchTags.dictionary.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatchTags.dictionary.cs similarity index 96% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatchTags.dictionary.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatchTags.dictionary.cs index 76c7d202ac97..64686326cea1 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatchTags.dictionary.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatchTags.dictionary.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; @@ -65,6 +65,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterPatchTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedClusterPatchTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatchTags.json.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatchTags.json.cs similarity index 95% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatchTags.json.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatchTags.json.cs index 5ec51cc42669..c73a7ac2d93b 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterPatchTags.json.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterPatchTags.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; @@ -64,13 +64,13 @@ internal ConnectedClusterPatchTags(Microsoft.Azure.PowerShell.Cmdlets.ConnectedK } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject json ? new ConnectedClusterPatchTags(json) : null; } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterProperties.PowerShell.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterProperties.PowerShell.cs new file mode 100644 index 000000000000..97e386cc57f1 --- /dev/null +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterProperties.PowerShell.cs @@ -0,0 +1,155 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; + + /// Properties of the connected cluster. + [System.ComponentModel.TypeConverter(typeof(ConnectedClusterPropertiesTypeConverter))] + public partial class ConnectedClusterProperties + { + + /// + /// 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 ConnectedClusterProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).AgentPublicKeyCertificate = (string) content.GetValueForProperty("AgentPublicKeyCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).AgentPublicKeyCertificate, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).AgentVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).ConnectivityStatus = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ConnectivityStatus?) content.GetValueForProperty("ConnectivityStatus",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).ConnectivityStatus, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ConnectivityStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).Distribution = (string) content.GetValueForProperty("Distribution",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).Distribution, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).Infrastructure = (string) content.GetValueForProperty("Infrastructure",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).Infrastructure, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).KubernetesVersion = (string) content.GetValueForProperty("KubernetesVersion",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).KubernetesVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).LastConnectivityTime = (global::System.DateTime?) content.GetValueForProperty("LastConnectivityTime",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).LastConnectivityTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).ManagedIdentityCertificateExpirationTime = (global::System.DateTime?) content.GetValueForProperty("ManagedIdentityCertificateExpirationTime",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).ManagedIdentityCertificateExpirationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).Offering = (string) content.GetValueForProperty("Offering",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).Offering, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).TotalCoreCount = (int?) content.GetValueForProperty("TotalCoreCount",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).TotalCoreCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).TotalNodeCount = (int?) content.GetValueForProperty("TotalNodeCount",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).TotalNodeCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ConnectedClusterProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).AgentPublicKeyCertificate = (string) content.GetValueForProperty("AgentPublicKeyCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).AgentPublicKeyCertificate, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).AgentVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).ConnectivityStatus = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ConnectivityStatus?) content.GetValueForProperty("ConnectivityStatus",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).ConnectivityStatus, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ConnectivityStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).Distribution = (string) content.GetValueForProperty("Distribution",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).Distribution, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).Infrastructure = (string) content.GetValueForProperty("Infrastructure",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).Infrastructure, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).KubernetesVersion = (string) content.GetValueForProperty("KubernetesVersion",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).KubernetesVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).LastConnectivityTime = (global::System.DateTime?) content.GetValueForProperty("LastConnectivityTime",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).LastConnectivityTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).ManagedIdentityCertificateExpirationTime = (global::System.DateTime?) content.GetValueForProperty("ManagedIdentityCertificateExpirationTime",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).ManagedIdentityCertificateExpirationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).Offering = (string) content.GetValueForProperty("Offering",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).Offering, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).TotalCoreCount = (int?) content.GetValueForProperty("TotalCoreCount",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).TotalCoreCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).TotalNodeCount = (int?) content.GetValueForProperty("TotalNodeCount",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal)this).TotalNodeCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + 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.ConnectedKubernetes.Models.Api20210301.IConnectedClusterProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ConnectedClusterProperties(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.ConnectedKubernetes.Models.Api20210301.IConnectedClusterProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ConnectedClusterProperties(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.ConnectedKubernetes.Models.Api20210301.IConnectedClusterProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.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.ConnectedKubernetes.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Properties of the connected cluster. + [System.ComponentModel.TypeConverter(typeof(ConnectedClusterPropertiesTypeConverter))] + public partial interface IConnectedClusterProperties + + { + + } +} \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterProperties.TypeConverter.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterProperties.TypeConverter.cs similarity index 97% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterProperties.TypeConverter.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterProperties.TypeConverter.cs index 615486231841..b5694c3ce830 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterProperties.TypeConverter.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterProperties.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterProperties.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterProperties.cs new file mode 100644 index 000000000000..da5071d19b22 --- /dev/null +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterProperties.cs @@ -0,0 +1,277 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; + + /// Properties of the connected cluster. + public partial class ConnectedClusterProperties : + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterProperties, + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal + { + + /// Backing field for property. + private string _agentPublicKeyCertificate; + + /// + /// Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] + public string AgentPublicKeyCertificate { get => this._agentPublicKeyCertificate; set => this._agentPublicKeyCertificate = value; } + + /// Backing field for property. + private string _agentVersion; + + /// Version of the agent running on the connected cluster resource + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] + public string AgentVersion { get => this._agentVersion; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ConnectivityStatus? _connectivityStatus; + + /// Represents the connectivity status of the connected cluster. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ConnectivityStatus? ConnectivityStatus { get => this._connectivityStatus; } + + /// Backing field for property. + private string _distribution; + + /// The Kubernetes distribution running on this connected cluster. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] + public string Distribution { get => this._distribution; set => this._distribution = value; } + + /// Backing field for property. + private string _infrastructure; + + /// + /// The infrastructure on which the Kubernetes cluster represented by this connected cluster is running on. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] + public string Infrastructure { get => this._infrastructure; set => this._infrastructure = value; } + + /// Backing field for property. + private string _kubernetesVersion; + + /// The Kubernetes version of the connected cluster resource + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] + public string KubernetesVersion { get => this._kubernetesVersion; } + + /// Backing field for property. + private global::System.DateTime? _lastConnectivityTime; + + /// + /// Time representing the last instance when heart beat was received from the cluster + /// + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] + public global::System.DateTime? LastConnectivityTime { get => this._lastConnectivityTime; } + + /// + /// Backing field for property. + /// + private global::System.DateTime? _managedIdentityCertificateExpirationTime; + + /// Expiration time of the managed identity certificate + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] + public global::System.DateTime? ManagedIdentityCertificateExpirationTime { get => this._managedIdentityCertificateExpirationTime; } + + /// Internal Acessors for AgentVersion + string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal.AgentVersion { get => this._agentVersion; set { {_agentVersion = value;} } } + + /// Internal Acessors for ConnectivityStatus + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ConnectivityStatus? Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal.ConnectivityStatus { get => this._connectivityStatus; set { {_connectivityStatus = value;} } } + + /// Internal Acessors for KubernetesVersion + string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal.KubernetesVersion { get => this._kubernetesVersion; set { {_kubernetesVersion = value;} } } + + /// Internal Acessors for LastConnectivityTime + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal.LastConnectivityTime { get => this._lastConnectivityTime; set { {_lastConnectivityTime = value;} } } + + /// Internal Acessors for ManagedIdentityCertificateExpirationTime + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal.ManagedIdentityCertificateExpirationTime { get => this._managedIdentityCertificateExpirationTime; set { {_managedIdentityCertificateExpirationTime = value;} } } + + /// Internal Acessors for Offering + string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal.Offering { get => this._offering; set { {_offering = value;} } } + + /// Internal Acessors for TotalCoreCount + int? Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal.TotalCoreCount { get => this._totalCoreCount; set { {_totalCoreCount = value;} } } + + /// Internal Acessors for TotalNodeCount + int? Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPropertiesInternal.TotalNodeCount { get => this._totalNodeCount; set { {_totalNodeCount = value;} } } + + /// Backing field for property. + private string _offering; + + /// Connected cluster offering + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] + public string Offering { get => this._offering; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState? _provisioningState; + + /// Provisioning state of the connected cluster resource. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; set => this._provisioningState = value; } + + /// Backing field for property. + private int? _totalCoreCount; + + /// Number of CPU cores present in the connected cluster resource + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] + public int? TotalCoreCount { get => this._totalCoreCount; } + + /// Backing field for property. + private int? _totalNodeCount; + + /// Number of nodes present in the connected cluster resource + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] + public int? TotalNodeCount { get => this._totalNodeCount; } + + /// Creates an new instance. + public ConnectedClusterProperties() + { + + } + } + /// Properties of the connected cluster. + public partial interface IConnectedClusterProperties : + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IJsonSerializable + { + /// + /// Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure.", + SerializedName = @"agentPublicKeyCertificate", + PossibleTypes = new [] { typeof(string) })] + string AgentPublicKeyCertificate { get; set; } + /// Version of the agent running on the connected cluster resource + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Version of the agent running on the connected cluster resource", + SerializedName = @"agentVersion", + PossibleTypes = new [] { typeof(string) })] + string AgentVersion { get; } + /// Represents the connectivity status of the connected cluster. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Represents the connectivity status of the connected cluster.", + SerializedName = @"connectivityStatus", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ConnectivityStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ConnectivityStatus? ConnectivityStatus { get; } + /// The Kubernetes distribution running on this connected cluster. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Kubernetes distribution running on this connected cluster.", + SerializedName = @"distribution", + PossibleTypes = new [] { typeof(string) })] + string Distribution { get; set; } + /// + /// The infrastructure on which the Kubernetes cluster represented by this connected cluster is running on. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The infrastructure on which the Kubernetes cluster represented by this connected cluster is running on.", + SerializedName = @"infrastructure", + PossibleTypes = new [] { typeof(string) })] + string Infrastructure { get; set; } + /// The Kubernetes version of the connected cluster resource + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The Kubernetes version of the connected cluster resource", + SerializedName = @"kubernetesVersion", + PossibleTypes = new [] { typeof(string) })] + string KubernetesVersion { get; } + /// + /// Time representing the last instance when heart beat was received from the cluster + /// + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Time representing the last instance when heart beat was received from the cluster", + SerializedName = @"lastConnectivityTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? LastConnectivityTime { get; } + /// Expiration time of the managed identity certificate + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Expiration time of the managed identity certificate", + SerializedName = @"managedIdentityCertificateExpirationTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? ManagedIdentityCertificateExpirationTime { get; } + /// Connected cluster offering + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Connected cluster offering", + SerializedName = @"offering", + PossibleTypes = new [] { typeof(string) })] + string Offering { get; } + /// Provisioning state of the connected cluster resource. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Provisioning state of the connected cluster resource.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState) })] + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState? ProvisioningState { get; set; } + /// Number of CPU cores present in the connected cluster resource + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Number of CPU cores present in the connected cluster resource", + SerializedName = @"totalCoreCount", + PossibleTypes = new [] { typeof(int) })] + int? TotalCoreCount { get; } + /// Number of nodes present in the connected cluster resource + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Number of nodes present in the connected cluster resource", + SerializedName = @"totalNodeCount", + PossibleTypes = new [] { typeof(int) })] + int? TotalNodeCount { get; } + + } + /// Properties of the connected cluster. + internal partial interface IConnectedClusterPropertiesInternal + + { + /// + /// Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure. + /// + string AgentPublicKeyCertificate { get; set; } + /// Version of the agent running on the connected cluster resource + string AgentVersion { get; set; } + /// Represents the connectivity status of the connected cluster. + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ConnectivityStatus? ConnectivityStatus { get; set; } + /// The Kubernetes distribution running on this connected cluster. + string Distribution { get; set; } + /// + /// The infrastructure on which the Kubernetes cluster represented by this connected cluster is running on. + /// + string Infrastructure { get; set; } + /// The Kubernetes version of the connected cluster resource + string KubernetesVersion { get; set; } + /// + /// Time representing the last instance when heart beat was received from the cluster + /// + global::System.DateTime? LastConnectivityTime { get; set; } + /// Expiration time of the managed identity certificate + global::System.DateTime? ManagedIdentityCertificateExpirationTime { get; set; } + /// Connected cluster offering + string Offering { get; set; } + /// Provisioning state of the connected cluster resource. + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState? ProvisioningState { get; set; } + /// Number of CPU cores present in the connected cluster resource + int? TotalCoreCount { get; set; } + /// Number of nodes present in the connected cluster resource + int? TotalNodeCount { get; set; } + + } +} \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterProperties.json.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterProperties.json.cs similarity index 61% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterProperties.json.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterProperties.json.cs index b0079cc0a516..e49fbe6c7bf3 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterProperties.json.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/ConnectedClusterProperties.json.cs @@ -1,7 +1,8 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; + /// Properties of the connected cluster. public partial class ConnectedClusterProperties { @@ -57,23 +58,29 @@ internal ConnectedClusterProperties(Microsoft.Azure.PowerShell.Cmdlets.Connected { return; } - {_aadProfile = If( json?.PropertyT("aadProfile"), out var __jsonAadProfile) ? Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterAadProfile.FromJson(__jsonAadProfile) : AadProfile;} {_agentPublicKeyCertificate = If( json?.PropertyT("agentPublicKeyCertificate"), out var __jsonAgentPublicKeyCertificate) ? (string)__jsonAgentPublicKeyCertificate : (string)AgentPublicKeyCertificate;} {_agentVersion = If( json?.PropertyT("agentVersion"), out var __jsonAgentVersion) ? (string)__jsonAgentVersion : (string)AgentVersion;} + {_connectivityStatus = If( json?.PropertyT("connectivityStatus"), out var __jsonConnectivityStatus) ? (string)__jsonConnectivityStatus : (string)ConnectivityStatus;} + {_distribution = If( json?.PropertyT("distribution"), out var __jsonDistribution) ? (string)__jsonDistribution : (string)Distribution;} + {_infrastructure = If( json?.PropertyT("infrastructure"), out var __jsonInfrastructure) ? (string)__jsonInfrastructure : (string)Infrastructure;} {_kubernetesVersion = If( json?.PropertyT("kubernetesVersion"), out var __jsonKubernetesVersion) ? (string)__jsonKubernetesVersion : (string)KubernetesVersion;} + {_lastConnectivityTime = If( json?.PropertyT("lastConnectivityTime"), out var __jsonLastConnectivityTime) ? global::System.DateTime.TryParse((string)__jsonLastConnectivityTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastConnectivityTimeValue) ? __jsonLastConnectivityTimeValue : LastConnectivityTime : LastConnectivityTime;} + {_managedIdentityCertificateExpirationTime = If( json?.PropertyT("managedIdentityCertificateExpirationTime"), out var __jsonManagedIdentityCertificateExpirationTime) ? global::System.DateTime.TryParse((string)__jsonManagedIdentityCertificateExpirationTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonManagedIdentityCertificateExpirationTimeValue) ? __jsonManagedIdentityCertificateExpirationTimeValue : ManagedIdentityCertificateExpirationTime : ManagedIdentityCertificateExpirationTime;} + {_offering = If( json?.PropertyT("offering"), out var __jsonOffering) ? (string)__jsonOffering : (string)Offering;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} + {_totalCoreCount = If( json?.PropertyT("totalCoreCount"), out var __jsonTotalCoreCount) ? (int?)__jsonTotalCoreCount : TotalCoreCount;} {_totalNodeCount = If( json?.PropertyT("totalNodeCount"), out var __jsonTotalNodeCount) ? (int?)__jsonTotalNodeCount : TotalNodeCount;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject json ? new ConnectedClusterProperties(json) : null; } @@ -97,18 +104,39 @@ public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonN { return container; } - AddIf( null != this._aadProfile ? (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode) this._aadProfile.ToJson(null,serializationMode) : null, "aadProfile" ,container.Add ); AddIf( null != (((object)this._agentPublicKeyCertificate)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonString(this._agentPublicKeyCertificate.ToString()) : null, "agentPublicKeyCertificate" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._agentVersion)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonString(this._agentVersion.ToString()) : null, "agentVersion" ,container.Add ); } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._connectivityStatus)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonString(this._connectivityStatus.ToString()) : null, "connectivityStatus" ,container.Add ); + } + AddIf( null != (((object)this._distribution)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonString(this._distribution.ToString()) : null, "distribution" ,container.Add ); + AddIf( null != (((object)this._infrastructure)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonString(this._infrastructure.ToString()) : null, "infrastructure" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._kubernetesVersion)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonString(this._kubernetesVersion.ToString()) : null, "kubernetesVersion" ,container.Add ); } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._lastConnectivityTime ? (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonString(this._lastConnectivityTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "lastConnectivityTime" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._managedIdentityCertificateExpirationTime ? (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonString(this._managedIdentityCertificateExpirationTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "managedIdentityCertificateExpirationTime" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._offering)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonString(this._offering.ToString()) : null, "offering" ,container.Add ); + } AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._totalCoreCount ? (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNumber((int)this._totalCoreCount) : null, "totalCoreCount" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != this._totalNodeCount ? (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNumber((int)this._totalNodeCount) : null, "totalNodeCount" ,container.Add ); } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/Operation.PowerShell.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/Operation.PowerShell.cs similarity index 63% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/Operation.PowerShell.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/Operation.PowerShell.cs index 618ce5bbed61..97d00e7218fa 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/Operation.PowerShell.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/Operation.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; @@ -48,27 +48,27 @@ public partial class Operation partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperation DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperation DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Operation(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Operation(content); } @@ -78,10 +78,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api2 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -94,17 +94,17 @@ internal Operation(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.OperationDisplayTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationInternal)this).DisplayResource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.OperationDisplayTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationInternal)this).DisplayResource, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -117,12 +117,12 @@ internal Operation(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.OperationDisplayTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationInternal)this).DisplayResource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.OperationDisplayTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationInternal)this).DisplayResource, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/Operation.TypeConverter.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/Operation.TypeConverter.cs similarity index 97% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/Operation.TypeConverter.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/Operation.TypeConverter.cs index ca6900d4a649..d394de0e09fa 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/Operation.TypeConverter.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/Operation.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperation ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperation ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperation).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperation).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/Operation.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/Operation.cs similarity index 75% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/Operation.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/Operation.cs index 6b703a5c1431..ef0f8b2d6414 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/Operation.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/Operation.cs @@ -1,41 +1,41 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; /// The Connected cluster API operation public partial class Operation : - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperation, - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationInternal + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperation, + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplay _display; + private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplay _display; /// The object that represents the operation. [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplay Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.OperationDisplay()); } + internal Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplay Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.OperationDisplay()); } /// Description of the operation. [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] - public string DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplayInternal)Display).Description = value; } + public string DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplayInternal)Display).Description = value; } /// Operation type: Read, write, delete, etc. [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] - public string DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplayInternal)Display).Operation = value; } + public string DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplayInternal)Display).Operation = value; } /// Service provider: Microsoft.connectedClusters [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] - public string DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplayInternal)Display).Provider = value; } + public string DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplayInternal)Display).Provider = value; } /// Connected Cluster Resource on which the operation is performed [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Inlined)] - public string DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplayInternal)Display).Resource = value; } + public string DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplayInternal)Display).Resource = value; } /// Internal Acessors for Display - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.OperationDisplay()); set { {_display = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.OperationDisplay()); set { {_display = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationInternal.Name { get => this._name; set { {_name = value;} } } /// Backing field for property. private string _name; @@ -101,7 +101,7 @@ internal partial interface IOperationInternal { /// The object that represents the operation. - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplay Display { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplay Display { get; set; } /// Description of the operation. string DisplayDescription { get; set; } /// Operation type: Read, write, delete, etc. diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/Operation.json.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/Operation.json.cs similarity index 95% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/Operation.json.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/Operation.json.cs index 039bcc605bf3..20a4cd002ebf 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/Operation.json.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/Operation.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class Operation partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperation. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperation. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperation. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperation. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperation FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperation FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject json ? new Operation(json) : null; } @@ -70,7 +70,7 @@ internal Operation(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtim { return; } - {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.OperationDisplay.FromJson(__jsonDisplay) : Display;} + {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.OperationDisplay.FromJson(__jsonDisplay) : Display;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} AfterFromJson(json); } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/OperationDisplay.PowerShell.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/OperationDisplay.PowerShell.cs similarity index 68% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/OperationDisplay.PowerShell.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/OperationDisplay.PowerShell.cs index 51a65879601b..998d8c0fc6c5 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/OperationDisplay.PowerShell.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/OperationDisplay.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; @@ -48,29 +48,29 @@ public partial class OperationDisplay partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplay DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplay DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new OperationDisplay(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplay DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplay DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OperationDisplay(content); } @@ -80,10 +80,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api2 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplay FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplay FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,15 +96,15 @@ internal OperationDisplay(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplayInternal)this).Description, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplayInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -117,10 +117,10 @@ internal OperationDisplay(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplayInternal)this).Description, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplayInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/OperationDisplay.TypeConverter.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/OperationDisplay.TypeConverter.cs similarity index 97% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/OperationDisplay.TypeConverter.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/OperationDisplay.TypeConverter.cs index a9923ddc491f..53694e8ea081 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/OperationDisplay.TypeConverter.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/OperationDisplay.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplay ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplay ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplay).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplay).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/OperationDisplay.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/OperationDisplay.cs similarity index 97% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/OperationDisplay.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/OperationDisplay.cs index 659d7f86bd32..943ec3c43217 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/OperationDisplay.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/OperationDisplay.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; /// The object that represents the operation. public partial class OperationDisplay : - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplay, - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplayInternal + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplay, + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplayInternal { /// Backing field for property. diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/OperationDisplay.json.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/OperationDisplay.json.cs similarity index 96% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/OperationDisplay.json.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/OperationDisplay.json.cs index 6e9610cca541..35afbc7e5e8a 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/OperationDisplay.json.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/OperationDisplay.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class OperationDisplay partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplay. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplay. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplay. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplay. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationDisplay FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationDisplay FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject json ? new OperationDisplay(json) : null; } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/OperationList.PowerShell.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/OperationList.PowerShell.cs similarity index 71% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/OperationList.PowerShell.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/OperationList.PowerShell.cs index 31cdcec40876..b8a50329bde2 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/OperationList.PowerShell.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/OperationList.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; @@ -48,29 +48,27 @@ public partial class OperationList partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationList DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new OperationList(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OperationList(content); } @@ -80,10 +78,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api2 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,13 +94,13 @@ internal OperationList(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationListInternal)this).NextLink, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.OperationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.OperationTypeConverter.ConvertFrom)); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -115,8 +113,8 @@ internal OperationList(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationListInternal)this).NextLink, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.OperationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.OperationTypeConverter.ConvertFrom)); AfterDeserializePSObject(content); } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/OperationList.TypeConverter.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/OperationList.TypeConverter.cs similarity index 97% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/OperationList.TypeConverter.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/OperationList.TypeConverter.cs index 3f73b663d0e9..d6dcd079dac0 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/OperationList.TypeConverter.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/OperationList.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/OperationList.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/OperationList.cs similarity index 83% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/OperationList.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/OperationList.cs index 2a70d17cb039..9e171ae5d30e 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/OperationList.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/OperationList.cs @@ -1,15 +1,15 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; /// The paginated list of connected cluster API operations. public partial class OperationList : - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationList, - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationListInternal + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationList, + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationListInternal { /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperation[] Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationListInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperation[] Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationListInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; @@ -19,11 +19,11 @@ public partial class OperationList : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperation[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperation[] _value; /// The list of connected cluster API operations. [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperation[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperation[] Value { get => this._value; } /// Creates an new instance. public OperationList() @@ -49,8 +49,8 @@ public partial interface IOperationList : ReadOnly = true, Description = @"The list of connected cluster API operations.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperation) })] - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperation[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperation) })] + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperation[] Value { get; } } /// The paginated list of connected cluster API operations. @@ -60,7 +60,7 @@ internal partial interface IOperationListInternal /// The link to fetch the next page of connected cluster API operations. string NextLink { get; set; } /// The list of connected cluster API operations. - Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperation[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperation[] Value { get; set; } } } \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/OperationList.json.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/OperationList.json.cs similarity index 92% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/OperationList.json.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/OperationList.json.cs index 978774c2fd7e..d59b5687fb72 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/OperationList.json.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/OperationList.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class OperationList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperationList FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperationList FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject json ? new OperationList(json) : null; } @@ -71,7 +71,7 @@ internal OperationList(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Ru return; } {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperation) (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.Operation.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperation) (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.Operation.FromJson(__u) )) ))() : null : Value;} AfterFromJson(json); } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api20210301/SystemData.PowerShell.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/SystemData.PowerShell.cs new file mode 100644 index 000000000000..66ba022b293f --- /dev/null +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/SystemData.PowerShell.cs @@ -0,0 +1,141 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; + + /// Metadata pertaining to creation and last modification of the resource. + [System.ComponentModel.TypeConverter(typeof(SystemDataTypeConverter))] + public partial class SystemData + { + + /// + /// 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.ConnectedKubernetes.Models.Api20210301.ISystemData DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new SystemData(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.ConnectedKubernetes.Models.Api20210301.ISystemData DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new SystemData(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.ConnectedKubernetes.Models.Api20210301.ISystemData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal SystemData(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByType.CreateFrom); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal SystemData(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByType.CreateFrom); + 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.ConnectedKubernetes.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Metadata pertaining to creation and last modification of the resource. + [System.ComponentModel.TypeConverter(typeof(SystemDataTypeConverter))] + public partial interface ISystemData + + { + + } +} \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ErrorDetails.TypeConverter.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/SystemData.TypeConverter.cs similarity index 86% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ErrorDetails.TypeConverter.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/SystemData.TypeConverter.cs index a7811e31ad3f..85678c977fc0 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ErrorDetails.TypeConverter.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/SystemData.TypeConverter.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class ErrorDetailsTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class SystemDataTypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -24,10 +24,10 @@ public partial class ErrorDetailsTypeConverter : global::System.Management.Autom /// Determines if the converter can convert the parameter to the /// parameter. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -89,7 +89,7 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); @@ -97,24 +97,24 @@ public static bool CanConvertFrom(dynamic sourceValue) /// Converts the parameter to the parameter using and /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemData ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IErrorDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemData).IsAssignableFrom(type)) { return sourceValue; } try { - return ErrorDetails.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return SystemData.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -122,11 +122,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api2 } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return ErrorDetails.DeserializeFromPSObject(sourceValue); + return SystemData.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return ErrorDetails.DeserializeFromDictionary(sourceValue); + return SystemData.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/src/ConnectedKubernetes/generated/api/Models/Api20210301/SystemData.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/SystemData.cs new file mode 100644 index 000000000000..426ef249e557 --- /dev/null +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/SystemData.cs @@ -0,0 +1,131 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; + + /// Metadata pertaining to creation and last modification of the resource. + public partial class SystemData : + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemData, + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemDataInternal + { + + /// Backing field for property. + private global::System.DateTime? _createdAt; + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] + public global::System.DateTime? CreatedAt { get => this._createdAt; set => this._createdAt = value; } + + /// Backing field for property. + private string _createdBy; + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] + public string CreatedBy { get => this._createdBy; set => this._createdBy = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByType? _createdByType; + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByType? CreatedByType { get => this._createdByType; set => this._createdByType = value; } + + /// Backing field for property. + private global::System.DateTime? _lastModifiedAt; + + /// The timestamp of resource modification (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] + public global::System.DateTime? LastModifiedAt { get => this._lastModifiedAt; set => this._lastModifiedAt = value; } + + /// Backing field for property. + private string _lastModifiedBy; + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] + public string LastModifiedBy { get => this._lastModifiedBy; set => this._lastModifiedBy = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByType? _lastModifiedByType; + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Origin(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByType? LastModifiedByType { get => this._lastModifiedByType; set => this._lastModifiedByType = value; } + + /// Creates an new instance. + public SystemData() + { + + } + } + /// Metadata pertaining to creation and last modification of the resource. + public partial interface ISystemData : + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.IJsonSerializable + { + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The timestamp of resource creation (UTC).", + SerializedName = @"createdAt", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? CreatedAt { get; set; } + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The identity that created the resource.", + SerializedName = @"createdBy", + PossibleTypes = new [] { typeof(string) })] + string CreatedBy { get; set; } + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of identity that created the resource.", + SerializedName = @"createdByType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByType) })] + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByType? CreatedByType { get; set; } + /// The timestamp of resource modification (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The timestamp of resource modification (UTC).", + SerializedName = @"lastModifiedAt", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? LastModifiedAt { get; set; } + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The identity that last modified the resource.", + SerializedName = @"lastModifiedBy", + PossibleTypes = new [] { typeof(string) })] + string LastModifiedBy { get; set; } + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of identity that last modified the resource.", + SerializedName = @"lastModifiedByType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByType) })] + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByType? LastModifiedByType { get; set; } + + } + /// Metadata pertaining to creation and last modification of the resource. + internal partial interface ISystemDataInternal + + { + /// The timestamp of resource creation (UTC). + global::System.DateTime? CreatedAt { get; set; } + /// The identity that created the resource. + string CreatedBy { get; set; } + /// The type of identity that created the resource. + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByType? CreatedByType { get; set; } + /// The timestamp of resource modification (UTC). + global::System.DateTime? LastModifiedAt { get; set; } + /// The identity that last modified the resource. + string LastModifiedBy { get; set; } + /// The type of identity that last modified the resource. + Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByType? LastModifiedByType { get; set; } + + } +} \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterAadProfile.json.cs b/src/ConnectedKubernetes/generated/api/Models/Api20210301/SystemData.json.cs similarity index 53% rename from src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterAadProfile.json.cs rename to src/ConnectedKubernetes/generated/api/Models/Api20210301/SystemData.json.cs index b90956bbecd4..dfc71d03344f 100644 --- a/src/ConnectedKubernetes/generated/api/Models/Api202001Preview/ConnectedClusterAadProfile.json.cs +++ b/src/ConnectedKubernetes/generated/api/Models/Api20210301/SystemData.json.cs @@ -1,8 +1,9 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Extensions; - public partial class ConnectedClusterAadProfile + /// Metadata pertaining to creation and last modification of the resource. + public partial class SystemData { /// @@ -46,10 +47,22 @@ public partial class ConnectedClusterAadProfile partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemData. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemData. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ISystemData FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject json ? new SystemData(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject instance to deserialize from. - internal ConnectedClusterAadProfile(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject json) + internal SystemData(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); @@ -57,32 +70,23 @@ internal ConnectedClusterAadProfile(Microsoft.Azure.PowerShell.Cmdlets.Connected { return; } - {_clientAppId = If( json?.PropertyT("clientAppId"), out var __jsonClientAppId) ? (string)__jsonClientAppId : (string)ClientAppId;} - {_serverAppId = If( json?.PropertyT("serverAppId"), out var __jsonServerAppId) ? (string)__jsonServerAppId : (string)ServerAppId;} - {_tenantId = If( json?.PropertyT("tenantId"), out var __jsonTenantId) ? (string)__jsonTenantId : (string)TenantId;} + {_createdAt = If( json?.PropertyT("createdAt"), out var __jsonCreatedAt) ? global::System.DateTime.TryParse((string)__jsonCreatedAt, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonCreatedAtValue) ? __jsonCreatedAtValue : CreatedAt : CreatedAt;} + {_createdBy = If( json?.PropertyT("createdBy"), out var __jsonCreatedBy) ? (string)__jsonCreatedBy : (string)CreatedBy;} + {_createdByType = If( json?.PropertyT("createdByType"), out var __jsonCreatedByType) ? (string)__jsonCreatedByType : (string)CreatedByType;} + {_lastModifiedAt = If( json?.PropertyT("lastModifiedAt"), out var __jsonLastModifiedAt) ? global::System.DateTime.TryParse((string)__jsonLastModifiedAt, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastModifiedAtValue) ? __jsonLastModifiedAtValue : LastModifiedAt : LastModifiedAt;} + {_lastModifiedBy = If( json?.PropertyT("lastModifiedBy"), out var __jsonLastModifiedBy) ? (string)__jsonLastModifiedBy : (string)LastModifiedBy;} + {_lastModifiedByType = If( json?.PropertyT("lastModifiedByType"), out var __jsonLastModifiedByType) ? (string)__jsonLastModifiedByType : (string)LastModifiedByType;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfile. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfile. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterAadProfile FromJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject json ? new ConnectedClusterAadProfile(json) : null; - } - - /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.SerializationMode serializationMode) { @@ -94,9 +98,12 @@ public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonN { return container; } - AddIf( null != (((object)this._clientAppId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonString(this._clientAppId.ToString()) : null, "clientAppId" ,container.Add ); - AddIf( null != (((object)this._serverAppId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonString(this._serverAppId.ToString()) : null, "serverAppId" ,container.Add ); - AddIf( null != (((object)this._tenantId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonString(this._tenantId.ToString()) : null, "tenantId" ,container.Add ); + AddIf( null != this._createdAt ? (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonString(this._createdAt?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "createdAt" ,container.Add ); + AddIf( null != (((object)this._createdBy)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonString(this._createdBy.ToString()) : null, "createdBy" ,container.Add ); + AddIf( null != (((object)this._createdByType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonString(this._createdByType.ToString()) : null, "createdByType" ,container.Add ); + AddIf( null != this._lastModifiedAt ? (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonString(this._lastModifiedAt?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "lastModifiedAt" ,container.Add ); + AddIf( null != (((object)this._lastModifiedBy)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonString(this._lastModifiedBy.ToString()) : null, "lastModifiedBy" ,container.Add ); + AddIf( null != (((object)this._lastModifiedByType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Json.JsonString(this._lastModifiedByType.ToString()) : null, "lastModifiedByType" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/ConnectedKubernetes/generated/api/Support/ConnectivityStatus.Completer.cs b/src/ConnectedKubernetes/generated/api/Support/ConnectivityStatus.Completer.cs new file mode 100644 index 000000000000..ba926aaac6a5 --- /dev/null +++ b/src/ConnectedKubernetes/generated/api/Support/ConnectivityStatus.Completer.cs @@ -0,0 +1,47 @@ +// 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.ConnectedKubernetes.Support +{ + + /// Argument completer implementation for ConnectivityStatus. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ConnectivityStatusTypeConverter))] + public partial struct ConnectivityStatus : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Connecting".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Connecting", "Connecting", global::System.Management.Automation.CompletionResultType.ParameterValue, "Connecting"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Connected".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Connected", "Connected", global::System.Management.Automation.CompletionResultType.ParameterValue, "Connected"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Offline".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Offline", "Offline", global::System.Management.Automation.CompletionResultType.ParameterValue, "Offline"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Expired".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Expired", "Expired", global::System.Management.Automation.CompletionResultType.ParameterValue, "Expired"); + } + } + } +} \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Support/ConnectivityStatus.TypeConverter.cs b/src/ConnectedKubernetes/generated/api/Support/ConnectivityStatus.TypeConverter.cs new file mode 100644 index 000000000000..db4acb959011 --- /dev/null +++ b/src/ConnectedKubernetes/generated/api/Support/ConnectivityStatus.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support +{ + + /// TypeConverter implementation for ConnectivityStatus. + public partial class ConnectivityStatusTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConnectivityStatus.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Support/ConnectivityStatus.cs b/src/ConnectedKubernetes/generated/api/Support/ConnectivityStatus.cs new file mode 100644 index 000000000000..8733e8b4d858 --- /dev/null +++ b/src/ConnectedKubernetes/generated/api/Support/ConnectivityStatus.cs @@ -0,0 +1,101 @@ +// 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.ConnectedKubernetes.Support +{ + + public partial struct ConnectivityStatus : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ConnectivityStatus Connected = @"Connected"; + + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ConnectivityStatus Connecting = @"Connecting"; + + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ConnectivityStatus Expired = @"Expired"; + + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ConnectivityStatus Offline = @"Offline"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Creates an instance of the + /// the value to create an instance for. + private ConnectivityStatus(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Conversion from arbitrary object to ConnectivityStatus + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new ConnectivityStatus(System.Convert.ToString(value)); + } + + /// Compares values of enum type ConnectivityStatus + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ConnectivityStatus e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type ConnectivityStatus (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is ConnectivityStatus && Equals((ConnectivityStatus)obj); + } + + /// Returns hashCode for enum ConnectivityStatus + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for ConnectivityStatus + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to ConnectivityStatus + /// the value to convert to an instance of . + + public static implicit operator ConnectivityStatus(string value) + { + return new ConnectivityStatus(value); + } + + /// Implicit operator to convert ConnectivityStatus to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ConnectivityStatus e) + { + return e._value; + } + + /// Overriding != operator for enum ConnectivityStatus + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ConnectivityStatus e1, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ConnectivityStatus e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum ConnectivityStatus + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ConnectivityStatus e1, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ConnectivityStatus e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Support/CreatedByType.Completer.cs b/src/ConnectedKubernetes/generated/api/Support/CreatedByType.Completer.cs new file mode 100644 index 000000000000..8905b78581aa --- /dev/null +++ b/src/ConnectedKubernetes/generated/api/Support/CreatedByType.Completer.cs @@ -0,0 +1,47 @@ +// 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.ConnectedKubernetes.Support +{ + + /// Argument completer implementation for CreatedByType. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByTypeTypeConverter))] + public partial struct CreatedByType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "User".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("User", "User", global::System.Management.Automation.CompletionResultType.ParameterValue, "User"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Application".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Application", "Application", global::System.Management.Automation.CompletionResultType.ParameterValue, "Application"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "ManagedIdentity".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("ManagedIdentity", "ManagedIdentity", global::System.Management.Automation.CompletionResultType.ParameterValue, "ManagedIdentity"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Key".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Key", "Key", global::System.Management.Automation.CompletionResultType.ParameterValue, "Key"); + } + } + } +} \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Support/CreatedByType.TypeConverter.cs b/src/ConnectedKubernetes/generated/api/Support/CreatedByType.TypeConverter.cs new file mode 100644 index 000000000000..8f5432b7d100 --- /dev/null +++ b/src/ConnectedKubernetes/generated/api/Support/CreatedByType.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support +{ + + /// TypeConverter implementation for CreatedByType. + public partial class CreatedByTypeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => CreatedByType.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Support/CreatedByType.cs b/src/ConnectedKubernetes/generated/api/Support/CreatedByType.cs new file mode 100644 index 000000000000..9dc1a84a1579 --- /dev/null +++ b/src/ConnectedKubernetes/generated/api/Support/CreatedByType.cs @@ -0,0 +1,101 @@ +// 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.ConnectedKubernetes.Support +{ + + public partial struct CreatedByType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByType Application = @"Application"; + + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByType Key = @"Key"; + + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByType ManagedIdentity = @"ManagedIdentity"; + + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByType User = @"User"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to CreatedByType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new CreatedByType(System.Convert.ToString(value)); + } + + /// Creates an instance of the + /// the value to create an instance for. + private CreatedByType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Compares values of enum type CreatedByType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type CreatedByType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is CreatedByType && Equals((CreatedByType)obj); + } + + /// Returns hashCode for enum CreatedByType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for CreatedByType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to CreatedByType + /// the value to convert to an instance of . + + public static implicit operator CreatedByType(string value) + { + return new CreatedByType(value); + } + + /// Implicit operator to convert CreatedByType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByType e) + { + return e._value; + } + + /// Overriding != operator for enum CreatedByType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByType e1, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum CreatedByType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByType e1, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Support/LastModifiedByType.Completer.cs b/src/ConnectedKubernetes/generated/api/Support/LastModifiedByType.Completer.cs new file mode 100644 index 000000000000..7380690013a3 --- /dev/null +++ b/src/ConnectedKubernetes/generated/api/Support/LastModifiedByType.Completer.cs @@ -0,0 +1,47 @@ +// 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.ConnectedKubernetes.Support +{ + + /// Argument completer implementation for LastModifiedByType. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByTypeTypeConverter))] + public partial struct LastModifiedByType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "User".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("User", "User", global::System.Management.Automation.CompletionResultType.ParameterValue, "User"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Application".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Application", "Application", global::System.Management.Automation.CompletionResultType.ParameterValue, "Application"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "ManagedIdentity".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("ManagedIdentity", "ManagedIdentity", global::System.Management.Automation.CompletionResultType.ParameterValue, "ManagedIdentity"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Key".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Key", "Key", global::System.Management.Automation.CompletionResultType.ParameterValue, "Key"); + } + } + } +} \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Support/LastModifiedByType.TypeConverter.cs b/src/ConnectedKubernetes/generated/api/Support/LastModifiedByType.TypeConverter.cs new file mode 100644 index 000000000000..3c560b1637e2 --- /dev/null +++ b/src/ConnectedKubernetes/generated/api/Support/LastModifiedByType.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support +{ + + /// TypeConverter implementation for LastModifiedByType. + public partial class LastModifiedByTypeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => LastModifiedByType.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/api/Support/LastModifiedByType.cs b/src/ConnectedKubernetes/generated/api/Support/LastModifiedByType.cs new file mode 100644 index 000000000000..f596dca4ed3d --- /dev/null +++ b/src/ConnectedKubernetes/generated/api/Support/LastModifiedByType.cs @@ -0,0 +1,101 @@ +// 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.ConnectedKubernetes.Support +{ + + public partial struct LastModifiedByType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByType Application = @"Application"; + + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByType Key = @"Key"; + + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByType ManagedIdentity = @"ManagedIdentity"; + + public static Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByType User = @"User"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to LastModifiedByType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new LastModifiedByType(System.Convert.ToString(value)); + } + + /// Compares values of enum type LastModifiedByType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type LastModifiedByType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is LastModifiedByType && Equals((LastModifiedByType)obj); + } + + /// Returns hashCode for enum LastModifiedByType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Creates an instance of the + /// the value to create an instance for. + private LastModifiedByType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for LastModifiedByType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to LastModifiedByType + /// the value to convert to an instance of . + + public static implicit operator LastModifiedByType(string value) + { + return new LastModifiedByType(value); + } + + /// Implicit operator to convert LastModifiedByType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByType e) + { + return e._value; + } + + /// Overriding != operator for enum LastModifiedByType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByType e1, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum LastModifiedByType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByType e1, Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/ConnectedKubernetes/generated/cmdlets/GetAzConnectedKubernetes_Get.cs b/src/ConnectedKubernetes/generated/cmdlets/GetAzConnectedKubernetes_Get.cs index 6635bb626e09..2386facf5c69 100644 --- a/src/ConnectedKubernetes/generated/cmdlets/GetAzConnectedKubernetes_Get.cs +++ b/src/ConnectedKubernetes/generated/cmdlets/GetAzConnectedKubernetes_Get.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Cmdlets /// [OpenAPI] ConnectedCluster_Get=>GET:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzConnectedKubernetes_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster))] [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Description(@"Returns the properties of the specified connected cluster, including name, identity, properties, and additional cluster details.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Generated] public partial class GetAzConnectedKubernetes_Get : global::System.Management.Automation.PSCmdlet, @@ -148,24 +148,24 @@ public partial class GetAzConnectedKubernetes_Get : global::System.Management.Au /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -337,12 +337,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -359,7 +359,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ClusterName=ClusterName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -377,12 +377,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -394,7 +394,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster WriteObject((await response)); } } diff --git a/src/ConnectedKubernetes/generated/cmdlets/GetAzConnectedKubernetes_GetViaIdentity.cs b/src/ConnectedKubernetes/generated/cmdlets/GetAzConnectedKubernetes_GetViaIdentity.cs index 6ee992e3620d..76f4a15def29 100644 --- a/src/ConnectedKubernetes/generated/cmdlets/GetAzConnectedKubernetes_GetViaIdentity.cs +++ b/src/ConnectedKubernetes/generated/cmdlets/GetAzConnectedKubernetes_GetViaIdentity.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Cmdlets /// [OpenAPI] ConnectedCluster_Get=>GET:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzConnectedKubernetes_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster))] [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Description(@"Returns the properties of the specified connected cluster, including name, identity, properties, and additional cluster details.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Generated] public partial class GetAzConnectedKubernetes_GetViaIdentity : global::System.Management.Automation.PSCmdlet, @@ -109,24 +109,24 @@ public partial class GetAzConnectedKubernetes_GetViaIdentity : 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 body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -315,12 +315,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -337,7 +337,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -355,12 +355,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -372,7 +372,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster WriteObject((await response)); } } diff --git a/src/ConnectedKubernetes/generated/cmdlets/GetAzConnectedKubernetes_List.cs b/src/ConnectedKubernetes/generated/cmdlets/GetAzConnectedKubernetes_List.cs index d869636cb7c2..497a7f6454e6 100644 --- a/src/ConnectedKubernetes/generated/cmdlets/GetAzConnectedKubernetes_List.cs +++ b/src/ConnectedKubernetes/generated/cmdlets/GetAzConnectedKubernetes_List.cs @@ -12,7 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Cmdlets /// [OpenAPI] ConnectedCluster_ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzConnectedKubernetes_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster))] [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Description(@"API to enumerate registered connected K8s clusters under a Resource Group")] [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Generated] public partial class GetAzConnectedKubernetes_List : global::System.Management.Automation.PSCmdlet, @@ -130,24 +130,24 @@ public partial class GetAzConnectedKubernetes_List : global::System.Management.A /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -319,12 +319,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -341,7 +341,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -359,12 +359,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/ConnectedKubernetes/generated/cmdlets/GetAzConnectedKubernetes_List1.cs b/src/ConnectedKubernetes/generated/cmdlets/GetAzConnectedKubernetes_List1.cs index 4bcc2a28f2aa..2df08d543a8a 100644 --- a/src/ConnectedKubernetes/generated/cmdlets/GetAzConnectedKubernetes_List1.cs +++ b/src/ConnectedKubernetes/generated/cmdlets/GetAzConnectedKubernetes_List1.cs @@ -12,7 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Cmdlets /// [OpenAPI] ConnectedCluster_ListBySubscription=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Kubernetes/connectedClusters" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzConnectedKubernetes_List1")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster))] [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Description(@"API to enumerate registered connected K8s clusters under a Subscription")] [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Generated] public partial class GetAzConnectedKubernetes_List1 : global::System.Management.Automation.PSCmdlet, @@ -116,24 +116,24 @@ public partial class GetAzConnectedKubernetes_List1 : global::System.Management. /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -305,12 +305,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -327,7 +327,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -345,12 +345,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/ConnectedKubernetes/generated/cmdlets/GetAzOperation_Get.cs b/src/ConnectedKubernetes/generated/cmdlets/GetAzOperation_Get.cs index 3f22deddce19..17656f7151cc 100644 --- a/src/ConnectedKubernetes/generated/cmdlets/GetAzOperation_Get.cs +++ b/src/ConnectedKubernetes/generated/cmdlets/GetAzOperation_Get.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzOperation_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperation))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperation))] [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Description(@"Lists all of the available API operations for Connected Cluster resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Generated] public partial class GetAzOperation_Get : global::System.Management.Automation.PSCmdlet, @@ -99,24 +99,24 @@ public partial class GetAzOperation_Get : global::System.Management.Automation.P /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -285,12 +285,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -307,7 +307,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -325,12 +325,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/ConnectedKubernetes/generated/cmdlets/NewAzConnectedKubernetes_CreateExpanded.cs b/src/ConnectedKubernetes/generated/cmdlets/NewAzConnectedKubernetes_CreateExpanded.cs index 5027d0ff3694..e2e51eddff9b 100644 --- a/src/ConnectedKubernetes/generated/cmdlets/NewAzConnectedKubernetes_CreateExpanded.cs +++ b/src/ConnectedKubernetes/generated/cmdlets/NewAzConnectedKubernetes_CreateExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzConnectedKubernetes_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster))] [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Description(@"API to register a new Kubernetes cluster and create a tracked resource in Azure Resource Manager (ARM).")] [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Generated] public partial class NewAzConnectedKubernetes_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -35,39 +35,6 @@ public partial class NewAzConnectedKubernetes_CreateExpanded : global::System.Ma /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - /// The client app id configured on target K8 cluster - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The client app id configured on target K8 cluster ")] - [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The client app id configured on target K8 cluster ", - SerializedName = @"clientAppId", - PossibleTypes = new [] { typeof(string) })] - public string AadProfileClientAppId { get => ConnectedClusterBody.AadProfileClientAppId ?? null; set => ConnectedClusterBody.AadProfileClientAppId = value; } - - /// The server app id to access AD server - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The server app id to access AD server")] - [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The server app id to access AD server", - SerializedName = @"serverAppId", - PossibleTypes = new [] { typeof(string) })] - public string AadProfileServerAppId { get => ConnectedClusterBody.AadProfileServerAppId ?? null; set => ConnectedClusterBody.AadProfileServerAppId = value; } - - /// The aad tenant id which is configured on target K8s cluster - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The aad tenant id which is configured on target K8s cluster")] - [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The aad tenant id which is configured on target K8s cluster", - SerializedName = @"tenantId", - PossibleTypes = new [] { typeof(string) })] - public string AadProfileTenantId { get => ConnectedClusterBody.AadProfileTenantId ?? null; set => ConnectedClusterBody.AadProfileTenantId = value; } - /// /// Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure. /// @@ -110,10 +77,10 @@ public partial class NewAzConnectedKubernetes_CreateExpanded : global::System.Ma public string ClusterName { get => this._clusterName; set => this._clusterName = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster _connectedClusterBody= new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedCluster(); + private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster _connectedClusterBody= new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedCluster(); /// Represents a connected cluster. - private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster ConnectedClusterBody { get => this._connectedClusterBody; set => this._connectedClusterBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster ConnectedClusterBody { get => this._connectedClusterBody; set => this._connectedClusterBody = value; } /// /// The credentials, account, tenant, and subscription used for communication with Azure @@ -124,6 +91,17 @@ public partial class NewAzConnectedKubernetes_CreateExpanded : global::System.Ma [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// The Kubernetes distribution running on this connected cluster. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The Kubernetes distribution running on this connected cluster.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Kubernetes distribution running on this connected cluster.", + SerializedName = @"distribution", + PossibleTypes = new [] { typeof(string) })] + public string Distribution { get => ConnectedClusterBody.Distribution ?? null; set => ConnectedClusterBody.Distribution = value; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -151,6 +129,19 @@ public partial class NewAzConnectedKubernetes_CreateExpanded : global::System.Ma [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ResourceIdentityType))] public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ResourceIdentityType IdentityType { get => ConnectedClusterBody.IdentityType; set => ConnectedClusterBody.IdentityType = value; } + /// + /// The infrastructure on which the Kubernetes cluster represented by this connected cluster is running on. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The infrastructure on which the Kubernetes cluster represented by this connected cluster is running on.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The infrastructure on which the Kubernetes cluster represented by this connected cluster is running on.", + SerializedName = @"infrastructure", + PossibleTypes = new [] { typeof(string) })] + public string Infrastructure { get => ConnectedClusterBody.Infrastructure ?? null; set => ConnectedClusterBody.Infrastructure = value; } + /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } @@ -186,13 +177,13 @@ public partial class NewAzConnectedKubernetes_CreateExpanded : global::System.Ma /// private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.HttpPipeline Pipeline { get; set; } - /// The current deployment state of connectedClusters. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The current deployment state of connectedClusters.")] + /// Provisioning state of the connected cluster resource. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Provisioning state of the connected cluster resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The current deployment state of connectedClusters.", + Description = @"Provisioning state of the connected cluster resource.", SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState))] @@ -246,6 +237,74 @@ public partial class NewAzConnectedKubernetes_CreateExpanded : global::System.Ma [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.ParameterCategory.Path)] public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + /// The timestamp of resource creation (UTC). + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The timestamp of resource creation (UTC).")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The timestamp of resource creation (UTC).", + SerializedName = @"createdAt", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + public global::System.DateTime SystemDataCreatedAt { get => ConnectedClusterBody.SystemDataCreatedAt ?? default(global::System.DateTime); set => ConnectedClusterBody.SystemDataCreatedAt = value; } + + /// The identity that created the resource. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The identity that created the resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The identity that created the resource.", + SerializedName = @"createdBy", + PossibleTypes = new [] { typeof(string) })] + public string SystemDataCreatedBy { get => ConnectedClusterBody.SystemDataCreatedBy ?? null; set => ConnectedClusterBody.SystemDataCreatedBy = value; } + + /// The type of identity that created the resource. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The type of identity that created the resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of identity that created the resource.", + SerializedName = @"createdByType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByType))] + public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByType SystemDataCreatedByType { get => ConnectedClusterBody.SystemDataCreatedByType ?? ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByType)""); set => ConnectedClusterBody.SystemDataCreatedByType = value; } + + /// The timestamp of resource modification (UTC). + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The timestamp of resource modification (UTC).")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The timestamp of resource modification (UTC).", + SerializedName = @"lastModifiedAt", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + public global::System.DateTime SystemDataLastModifiedAt { get => ConnectedClusterBody.SystemDataLastModifiedAt ?? default(global::System.DateTime); set => ConnectedClusterBody.SystemDataLastModifiedAt = value; } + + /// The identity that last modified the resource. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The identity that last modified the resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The identity that last modified the resource.", + SerializedName = @"lastModifiedBy", + PossibleTypes = new [] { typeof(string) })] + public string SystemDataLastModifiedBy { get => ConnectedClusterBody.SystemDataLastModifiedBy ?? null; set => ConnectedClusterBody.SystemDataLastModifiedBy = value; } + + /// The type of identity that last modified the resource. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The type of identity that last modified the resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of identity that last modified the resource.", + SerializedName = @"lastModifiedByType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByType))] + public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByType SystemDataLastModifiedByType { get => ConnectedClusterBody.SystemDataLastModifiedByType ?? ((Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByType)""); set => ConnectedClusterBody.SystemDataLastModifiedByType = value; } + /// Resource tags. [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.ExportAs(typeof(global::System.Collections.Hashtable))] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] @@ -255,32 +314,32 @@ public partial class NewAzConnectedKubernetes_CreateExpanded : global::System.Ma ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceTags Tag { get => ConnectedClusterBody.Tag ?? null /* object */; set => ConnectedClusterBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceTags Tag { get => ConnectedClusterBody.Tag ?? null /* object */; set => ConnectedClusterBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -506,12 +565,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -528,7 +587,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ClusterName=ClusterName, body=ConnectedClusterBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -546,12 +605,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -563,7 +622,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster WriteObject((await response)); } } diff --git a/src/ConnectedKubernetes/generated/cmdlets/RemoveAzConnectedKubernetes_Delete.cs b/src/ConnectedKubernetes/generated/cmdlets/RemoveAzConnectedKubernetes_Delete.cs index 254c2a09cc0b..5dc8c5ed6df0 100644 --- a/src/ConnectedKubernetes/generated/cmdlets/RemoveAzConnectedKubernetes_Delete.cs +++ b/src/ConnectedKubernetes/generated/cmdlets/RemoveAzConnectedKubernetes_Delete.cs @@ -168,12 +168,12 @@ public partial class RemoveAzConnectedKubernetes_Delete : global::System.Managem /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -418,12 +418,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -440,7 +440,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ClusterName=ClusterName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/ConnectedKubernetes/generated/cmdlets/RemoveAzConnectedKubernetes_DeleteViaIdentity.cs b/src/ConnectedKubernetes/generated/cmdlets/RemoveAzConnectedKubernetes_DeleteViaIdentity.cs index 2ebac95186f1..08bb76339cea 100644 --- a/src/ConnectedKubernetes/generated/cmdlets/RemoveAzConnectedKubernetes_DeleteViaIdentity.cs +++ b/src/ConnectedKubernetes/generated/cmdlets/RemoveAzConnectedKubernetes_DeleteViaIdentity.cs @@ -129,12 +129,12 @@ public partial class RemoveAzConnectedKubernetes_DeleteViaIdentity : global::Sys /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -396,12 +396,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -418,7 +418,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/ConnectedKubernetes/generated/cmdlets/UpdateAzConnectedKubernetes_UpdateExpanded.cs b/src/ConnectedKubernetes/generated/cmdlets/UpdateAzConnectedKubernetes_UpdateExpanded.cs index 9c4b7a26cd32..af933bbf6535 100644 --- a/src/ConnectedKubernetes/generated/cmdlets/UpdateAzConnectedKubernetes_UpdateExpanded.cs +++ b/src/ConnectedKubernetes/generated/cmdlets/UpdateAzConnectedKubernetes_UpdateExpanded.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzConnectedKubernetes_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster))] [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Description(@"API to update certain properties of the connected cluster resource")] [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Generated] public partial class UpdateAzConnectedKubernetes_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -33,19 +33,6 @@ public partial class UpdateAzConnectedKubernetes_UpdateExpanded : global::System /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - /// - /// Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure.", - SerializedName = @"agentPublicKeyCertificate", - PossibleTypes = new [] { typeof(string) })] - public string AgentPublicKeyCertificate { get => ConnectedClusterPatchBody.AgentPublicKeyCertificate ?? null; set => ConnectedClusterPatchBody.AgentPublicKeyCertificate = value; } - /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.ParameterCategory.Runtime)] @@ -70,10 +57,10 @@ public partial class UpdateAzConnectedKubernetes_UpdateExpanded : global::System public string ClusterName { get => this._clusterName; set => this._clusterName = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatch _connectedClusterPatchBody= new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatch _connectedClusterPatchBody= new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedClusterPatch(); /// Object containing updates for patch operations. - private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatch ConnectedClusterPatchBody { get => this._connectedClusterPatchBody; set => this._connectedClusterPatchBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatch ConnectedClusterPatchBody { get => this._connectedClusterPatchBody; set => this._connectedClusterPatchBody = value; } /// /// The credentials, account, tenant, and subscription used for communication with Azure @@ -112,6 +99,19 @@ public partial class UpdateAzConnectedKubernetes_UpdateExpanded : global::System /// private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.HttpPipeline Pipeline { get; set; } + /// + /// Describes the connected cluster resource properties that can be updated during PATCH operation. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Describes the connected cluster resource properties that can be updated during PATCH operation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Describes the connected cluster resource properties that can be updated during PATCH operation.", + SerializedName = @"properties", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchProperties) })] + public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchProperties Property { get => ConnectedClusterPatchBody.Property ?? null /* object */; set => ConnectedClusterPatchBody.Property = value; } + /// The URI for the proxy server to use [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.ParameterCategory.Runtime)] @@ -169,32 +169,32 @@ public partial class UpdateAzConnectedKubernetes_UpdateExpanded : global::System ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchTags Tag { get => ConnectedClusterPatchBody.Tag ?? null /* object */; set => ConnectedClusterPatchBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchTags Tag { get => ConnectedClusterPatchBody.Tag ?? null /* object */; set => ConnectedClusterPatchBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -366,12 +366,12 @@ public UpdateAzConnectedKubernetes_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -388,7 +388,7 @@ public UpdateAzConnectedKubernetes_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ClusterName=ClusterName, body=ConnectedClusterPatchBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -406,12 +406,12 @@ public UpdateAzConnectedKubernetes_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -423,7 +423,7 @@ public UpdateAzConnectedKubernetes_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster WriteObject((await response)); } } diff --git a/src/ConnectedKubernetes/generated/cmdlets/UpdateAzConnectedKubernetes_UpdateViaIdentityExpanded.cs b/src/ConnectedKubernetes/generated/cmdlets/UpdateAzConnectedKubernetes_UpdateViaIdentityExpanded.cs index 60ec9488f34e..07c18bb956ec 100644 --- a/src/ConnectedKubernetes/generated/cmdlets/UpdateAzConnectedKubernetes_UpdateViaIdentityExpanded.cs +++ b/src/ConnectedKubernetes/generated/cmdlets/UpdateAzConnectedKubernetes_UpdateViaIdentityExpanded.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzConnectedKubernetes_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster))] [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Description(@"API to update certain properties of the connected cluster resource")] [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Generated] public partial class UpdateAzConnectedKubernetes_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -33,19 +33,6 @@ public partial class UpdateAzConnectedKubernetes_UpdateViaIdentityExpanded : glo /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - /// - /// Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure.", - SerializedName = @"agentPublicKeyCertificate", - PossibleTypes = new [] { typeof(string) })] - public string AgentPublicKeyCertificate { get => ConnectedClusterPatchBody.AgentPublicKeyCertificate ?? null; set => ConnectedClusterPatchBody.AgentPublicKeyCertificate = value; } - /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.ParameterCategory.Runtime)] @@ -55,10 +42,10 @@ public partial class UpdateAzConnectedKubernetes_UpdateViaIdentityExpanded : glo public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.ConnectedKubernetes Client => Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Module.Instance.ClientAPI; /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatch _connectedClusterPatchBody= new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.ConnectedClusterPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatch _connectedClusterPatchBody= new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.ConnectedClusterPatch(); /// Object containing updates for patch operations. - private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatch ConnectedClusterPatchBody { get => this._connectedClusterPatchBody; set => this._connectedClusterPatchBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatch ConnectedClusterPatchBody { get => this._connectedClusterPatchBody; set => this._connectedClusterPatchBody = value; } /// /// The credentials, account, tenant, and subscription used for communication with Azure @@ -105,6 +92,19 @@ public partial class UpdateAzConnectedKubernetes_UpdateViaIdentityExpanded : glo /// private Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.HttpPipeline Pipeline { get; set; } + /// + /// Describes the connected cluster resource properties that can be updated during PATCH operation. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Describes the connected cluster resource properties that can be updated during PATCH operation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Describes the connected cluster resource properties that can be updated during PATCH operation.", + SerializedName = @"properties", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchProperties) })] + public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchProperties Property { get => ConnectedClusterPatchBody.Property ?? null /* object */; set => ConnectedClusterPatchBody.Property = value; } + /// The URI for the proxy server to use [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] [global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.ParameterCategory.Runtime)] @@ -130,32 +130,32 @@ public partial class UpdateAzConnectedKubernetes_UpdateViaIdentityExpanded : glo ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchTags Tag { get => ConnectedClusterPatchBody.Tag ?? null /* object */; set => ConnectedClusterPatchBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchTags Tag { get => ConnectedClusterPatchBody.Tag ?? null /* object */; set => ConnectedClusterPatchBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -347,12 +347,12 @@ public UpdateAzConnectedKubernetes_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -369,7 +369,7 @@ public UpdateAzConnectedKubernetes_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ConnectedClusterPatchBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -387,12 +387,12 @@ public UpdateAzConnectedKubernetes_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -404,7 +404,7 @@ public UpdateAzConnectedKubernetes_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster WriteObject((await response)); } } diff --git a/src/ConnectedKubernetes/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs b/src/ConnectedKubernetes/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs index 9847d53348e5..36b265f19961 100644 --- a/src/ConnectedKubernetes/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs +++ b/src/ConnectedKubernetes/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs @@ -113,7 +113,7 @@ internal class ModulePageMetadataOutput { public PsModuleHelpInfo ModuleInfo { get; } - private static string HelpLinkPrefix { get; } = @"https://docs.microsoft.com/en-us/powershell/module/"; + private static string HelpLinkPrefix { get; } = @"https://docs.microsoft.com/powershell/module/"; public ModulePageMetadataOutput(PsModuleHelpInfo moduleInfo) { diff --git a/src/ConnectedKubernetes/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/src/ConnectedKubernetes/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 2eeb9d3ae922..9d38104ccf4a 100644 --- a/src/ConnectedKubernetes/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/src/ConnectedKubernetes/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -363,7 +363,7 @@ internal class CommentInfo public string OnlineVersion { get; } public string[] RelatedLinks { get; } - private const string HelpLinkPrefix = @"https://docs.microsoft.com/en-us/powershell/module/"; + private const string HelpLinkPrefix = @"https://docs.microsoft.com/powershell/module/"; public CommentInfo(VariantGroup variantGroup) { diff --git a/src/ConnectedKubernetes/generated/runtime/ISendAsync.cs b/src/ConnectedKubernetes/generated/runtime/ISendAsync.cs index be608eb9a594..41f789e64f23 100644 --- a/src/ConnectedKubernetes/generated/runtime/ISendAsync.cs +++ b/src/ConnectedKubernetes/generated/runtime/ISendAsync.cs @@ -252,12 +252,19 @@ internal static HttpRequestMessage Clone(this HttpRequestMessage original, Syste { clone.Properties.Add(prop); } - + foreach (KeyValuePair> header in original.Headers) - { + { + /* + **temporarily skip cloning telemetry related headers** clone.Headers.TryAddWithoutValidation(header.Key, header.Value); + */ + if (!"x-ms-unique-id".Equals(header.Key) && !"x-ms-client-request-id".Equals(header.Key) && !"CommandName".Equals(header.Key) && !"FullCommandName".Equals(header.Key) && !"ParameterSetName".Equals(header.Key) && !"User-Agent".Equals(header.Key)) + { + clone.Headers.TryAddWithoutValidation(header.Key, header.Value); + } } - + return clone; } @@ -286,4 +293,4 @@ internal static async Task CloneWithContent(this HttpRequest return clone; } } -} \ No newline at end of file +} diff --git a/src/ConnectedKubernetes/help/Az.ConnectedKubernetes.md b/src/ConnectedKubernetes/help/Az.ConnectedKubernetes.md index c111651f3158..d62d92d97ed4 100644 --- a/src/ConnectedKubernetes/help/Az.ConnectedKubernetes.md +++ b/src/ConnectedKubernetes/help/Az.ConnectedKubernetes.md @@ -21,5 +21,5 @@ API to register a new K8s cluster and thereby create a tracked resource in ARM Delete a connected cluster, removing the tracked resource in Azure Resource Manager (ARM). ### [Update-AzConnectedKubernetes](Update-AzConnectedKubernetes.md) -API to update certain properties of the connected cluster resource +API to update certain properties of the connected cluster resource. diff --git a/src/ConnectedKubernetes/help/Get-AzConnectedKubernetes.md b/src/ConnectedKubernetes/help/Get-AzConnectedKubernetes.md index 66e69942d14b..072df61bd4f2 100644 --- a/src/ConnectedKubernetes/help/Get-AzConnectedKubernetes.md +++ b/src/ConnectedKubernetes/help/Get-AzConnectedKubernetes.md @@ -181,7 +181,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster +### Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster ## NOTES diff --git a/src/ConnectedKubernetes/help/New-AzConnectedKubernetes.md b/src/ConnectedKubernetes/help/New-AzConnectedKubernetes.md index 4137fbfdf1ed..6819576eaa99 100644 --- a/src/ConnectedKubernetes/help/New-AzConnectedKubernetes.md +++ b/src/ConnectedKubernetes/help/New-AzConnectedKubernetes.md @@ -189,7 +189,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster +### Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster ## NOTES diff --git a/src/ConnectedKubernetes/help/Update-AzConnectedKubernetes.md b/src/ConnectedKubernetes/help/Update-AzConnectedKubernetes.md index 4dc6f44712af..fc32dc246c96 100644 --- a/src/ConnectedKubernetes/help/Update-AzConnectedKubernetes.md +++ b/src/ConnectedKubernetes/help/Update-AzConnectedKubernetes.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzConnectedKubernetes ## SYNOPSIS -API to update certain properties of the connected cluster resource +API to update certain properties of the connected cluster resource. ## SYNTAX @@ -25,7 +25,7 @@ Update-AzConnectedKubernetes -InputObject [-Tag < ``` ## DESCRIPTION -API to update certain properties of the connected cluster resource +API to update certain properties of the connected cluster resource. ## EXAMPLES @@ -186,7 +186,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster +### Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster ## NOTES diff --git a/src/ConnectedKubernetes/internal/Get-AzOperation.ps1 b/src/ConnectedKubernetes/internal/Get-AzOperation.ps1 index 16221b6394d4..0a91f84401db 100644 --- a/src/ConnectedKubernetes/internal/Get-AzOperation.ps1 +++ b/src/ConnectedKubernetes/internal/Get-AzOperation.ps1 @@ -28,12 +28,12 @@ PS C:\> {{ Add code here }} {{ Add output here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperation +Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperation .Link -https://docs.microsoft.com/en-us/powershell/module/az.connectedkubernetes/get-azoperation +https://docs.microsoft.com/powershell/module/az.connectedkubernetes/get-azoperation #> function Get-AzOperation { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperation])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperation])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter()] diff --git a/src/ConnectedKubernetes/internal/New-AzConnectedKubernetes.ps1 b/src/ConnectedKubernetes/internal/New-AzConnectedKubernetes.ps1 index 9325a5825d04..11f3d7b36647 100644 --- a/src/ConnectedKubernetes/internal/New-AzConnectedKubernetes.ps1 +++ b/src/ConnectedKubernetes/internal/New-AzConnectedKubernetes.ps1 @@ -31,12 +31,12 @@ Location Name Type eastus ps-connaks-t02 Microsoft.Kubernetes/connectedClusters .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster +Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster .Link -https://docs.microsoft.com/en-us/powershell/module/az.connectedkubernetes/new-azconnectedkubernetes +https://docs.microsoft.com/powershell/module/az.connectedkubernetes/new-azconnectedkubernetes #> function New-AzConnectedKubernetes { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -84,31 +84,63 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category('Body')] [System.String] - # The client app id configured on target K8 cluster - ${AadProfileClientAppId}, + # The Kubernetes distribution running on this connected cluster. + ${Distribution}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category('Body')] [System.String] - # The server app id to access AD server - ${AadProfileServerAppId}, + # The infrastructure on which the Kubernetes cluster represented by this connected cluster is running on. + ${Infrastructure}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState])] + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState] + # Provisioning state of the connected cluster resource. + ${ProvisioningState}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category('Body')] + [System.DateTime] + # The timestamp of resource creation (UTC). + ${SystemDataCreatedAt}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category('Body')] [System.String] - # The aad tenant id which is configured on target K8s cluster - ${AadProfileTenantId}, + # The identity that created the resource. + ${SystemDataCreatedBy}, [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState])] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByType])] [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState] - # The current deployment state of connectedClusters. - ${ProvisioningState}, + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByType] + # The type of identity that created the resource. + ${SystemDataCreatedByType}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category('Body')] + [System.DateTime] + # The timestamp of resource modification (UTC). + ${SystemDataLastModifiedAt}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category('Body')] + [System.String] + # The identity that last modified the resource. + ${SystemDataLastModifiedBy}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByType])] + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByType] + # The type of identity that last modified the resource. + ${SystemDataLastModifiedByType}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, diff --git a/src/ConnectedKubernetes/internal/ProxyCmdletDefinitions.ps1 b/src/ConnectedKubernetes/internal/ProxyCmdletDefinitions.ps1 index 7e21554c0b4d..97f183e29acc 100644 --- a/src/ConnectedKubernetes/internal/ProxyCmdletDefinitions.ps1 +++ b/src/ConnectedKubernetes/internal/ProxyCmdletDefinitions.ps1 @@ -28,12 +28,12 @@ PS C:\> {{ Add code here }} {{ Add output here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperation +Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperation .Link -https://docs.microsoft.com/en-us/powershell/module/az.connectedkubernetes/get-azoperation +https://docs.microsoft.com/powershell/module/az.connectedkubernetes/get-azoperation #> function Get-AzOperation { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IOperation])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IOperation])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter()] @@ -152,12 +152,12 @@ Location Name Type eastus ps-connaks-t02 Microsoft.Kubernetes/connectedClusters .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster +Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster .Link -https://docs.microsoft.com/en-us/powershell/module/az.connectedkubernetes/new-azconnectedkubernetes +https://docs.microsoft.com/powershell/module/az.connectedkubernetes/new-azconnectedkubernetes #> function New-AzConnectedKubernetes { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -205,31 +205,63 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category('Body')] [System.String] - # The client app id configured on target K8 cluster - ${AadProfileClientAppId}, + # The Kubernetes distribution running on this connected cluster. + ${Distribution}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category('Body')] [System.String] - # The server app id to access AD server - ${AadProfileServerAppId}, + # The infrastructure on which the Kubernetes cluster represented by this connected cluster is running on. + ${Infrastructure}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState])] + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState] + # Provisioning state of the connected cluster resource. + ${ProvisioningState}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category('Body')] + [System.DateTime] + # The timestamp of resource creation (UTC). + ${SystemDataCreatedAt}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category('Body')] [System.String] - # The aad tenant id which is configured on target K8s cluster - ${AadProfileTenantId}, + # The identity that created the resource. + ${SystemDataCreatedBy}, [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState])] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByType])] [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.ProvisioningState] - # The current deployment state of connectedClusters. - ${ProvisioningState}, + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.CreatedByType] + # The type of identity that created the resource. + ${SystemDataCreatedByType}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api10.ITrackedResourceTags]))] + [System.DateTime] + # The timestamp of resource modification (UTC). + ${SystemDataLastModifiedAt}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category('Body')] + [System.String] + # The identity that last modified the resource. + ${SystemDataLastModifiedBy}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByType])] + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.LastModifiedByType] + # The type of identity that last modified the resource. + ${SystemDataLastModifiedByType}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -375,7 +407,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. .Link -https://docs.microsoft.com/en-us/powershell/module/az.connectedkubernetes/remove-azconnectedkubernetes +https://docs.microsoft.com/powershell/module/az.connectedkubernetes/remove-azconnectedkubernetes #> function Remove-AzConnectedKubernetes { [OutputType([System.Boolean])] @@ -551,7 +583,7 @@ eastus ps-connaks-t03 Microsoft.Kubernetes/connectedClusters .Inputs Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.IConnectedKubernetesIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster +Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster .Notes COMPLEX PARAMETER PROPERTIES @@ -563,10 +595,10 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. .Link -https://docs.microsoft.com/en-us/powershell/module/az.connectedkubernetes/update-azconnectedkubernetes +https://docs.microsoft.com/powershell/module/az.connectedkubernetes/update-azconnectedkubernetes #> function Update-AzConnectedKubernetes { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -599,13 +631,13 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category('Body')] - [System.String] - # Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure. - ${AgentPublicKeyCertificate}, + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchProperties] + # Describes the connected cluster resource properties that can be updated during PATCH operation. + ${Property}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, diff --git a/src/ConnectedKubernetes/internal/Remove-AzConnectedKubernetes.ps1 b/src/ConnectedKubernetes/internal/Remove-AzConnectedKubernetes.ps1 index b3153b1683af..13ff4f39331f 100644 --- a/src/ConnectedKubernetes/internal/Remove-AzConnectedKubernetes.ps1 +++ b/src/ConnectedKubernetes/internal/Remove-AzConnectedKubernetes.ps1 @@ -41,7 +41,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. .Link -https://docs.microsoft.com/en-us/powershell/module/az.connectedkubernetes/remove-azconnectedkubernetes +https://docs.microsoft.com/powershell/module/az.connectedkubernetes/remove-azconnectedkubernetes #> function Remove-AzConnectedKubernetes { [OutputType([System.Boolean])] diff --git a/src/ConnectedKubernetes/internal/Update-AzConnectedKubernetes.ps1 b/src/ConnectedKubernetes/internal/Update-AzConnectedKubernetes.ps1 index e5178293b4ca..b2761072fbaa 100644 --- a/src/ConnectedKubernetes/internal/Update-AzConnectedKubernetes.ps1 +++ b/src/ConnectedKubernetes/internal/Update-AzConnectedKubernetes.ps1 @@ -35,7 +35,7 @@ eastus ps-connaks-t03 Microsoft.Kubernetes/connectedClusters .Inputs Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.IConnectedKubernetesIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster +Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster .Notes COMPLEX PARAMETER PROPERTIES @@ -47,10 +47,10 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. .Link -https://docs.microsoft.com/en-us/powershell/module/az.connectedkubernetes/update-azconnectedkubernetes +https://docs.microsoft.com/powershell/module/az.connectedkubernetes/update-azconnectedkubernetes #> function Update-AzConnectedKubernetes { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedCluster])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedCluster])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -83,13 +83,13 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category('Body')] - [System.String] - # Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure. - ${AgentPublicKeyCertificate}, + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchProperties] + # Describes the connected cluster resource properties that can be updated during PATCH operation. + ${Property}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api202001Preview.IConnectedClusterPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20210301.IConnectedClusterPatchTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, diff --git a/src/ConnectedKubernetes/readme.md b/src/ConnectedKubernetes/readme.md index 04798d348625..6b704f0f663a 100644 --- a/src/ConnectedKubernetes/readme.md +++ b/src/ConnectedKubernetes/readme.md @@ -17,7 +17,7 @@ This directory contains the PowerShell module for the ConnectedKubernetes servic This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension. ## Module Requirements -- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 1.7.4 or greater +- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 1.8.1 or greater ## Authentication AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent. @@ -47,10 +47,11 @@ In this directory, run AutoRest: > see https://aka.ms/autorest ``` yaml +branch: 84ff2538067e14b09c3f6e0984929f740c707cb5 require: - $(this-folder)/../readme.azure.noprofile.md input-file: - - $(repo)/specification/hybridkubernetes/resource-manager/Microsoft.Kubernetes/preview/2020-01-01-preview/connectedClusters.json + - $(repo)/specification/hybridkubernetes/resource-manager/Microsoft.Kubernetes/stable/2021-03-01/connectedClusters.json title: ConnectedKubernetes module-version: 0.1.0 subject-prefix: '' diff --git a/src/ConnectedKubernetes/test/Az.ConnectedKubernetes-TestResults.xml b/src/ConnectedKubernetes/test/Az.ConnectedKubernetes-TestResults.xml deleted file mode 100644 index 9bac639c3407..000000000000 --- a/src/ConnectedKubernetes/test/Az.ConnectedKubernetes-TestResults.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/ConnectedKubernetes/test/Get-AzConnectedKubernetes.Recording.json b/src/ConnectedKubernetes/test/Get-AzConnectedKubernetes.Recording.json index 93dd8b05f634..a53815ceb7d7 100644 --- a/src/ConnectedKubernetes/test/Get-AzConnectedKubernetes.Recording.json +++ b/src/ConnectedKubernetes/test/Get-AzConnectedKubernetes.Recording.json @@ -1,12 +1,13 @@ { - "Get-AzConnectedKubernetes+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Kubernetes/connectedClusters?api-version=2020-01-01-preview+1": { + "Get-AzConnectedKubernetes+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Kubernetes/connectedClusters?api-version=2021-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Kubernetes/connectedClusters?api-version=2020-01-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Kubernetes/connectedClusters?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "9" ], - "x-ms-client-request-id": [ "37585a64-d06e-48a7-a182-35c1cbc9dce4" ], + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "243eaf5b-caeb-457a-b346-be34ff1f7d4b" ], "CommandName": [ "Get-AzConnectedKubernetes" ], "FullCommandName": [ "Get-AzConnectedKubernetes_List1" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -21,31 +22,33 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], - "x-ms-request-id": [ "a94e7734-19ad-4b7c-9cda-e830b00efbb2" ], - "x-ms-correlation-request-id": [ "8277f1f4-6a0a-48ca-ade9-04b74993d061" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-request-id": [ "2f33a092-5ee2-4074-a066-bdd1218f6a39" ], + "x-ms-correlation-request-id": [ "16c03333-9dec-4b3a-afc4-10b7140e9f1d" ], "Server": [ "Kestrel" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200615T022455Z:8277f1f4-6a0a-48ca-ade9-04b74993d061" ], + "x-ms-routing-request-id": [ "JAPANWEST:20210219T080724Z:16c03333-9dec-4b3a-afc4-10b7140e9f1d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 15 Jun 2020 02:24:54 GMT" ] + "Date": [ "Fri, 19 Feb 2021 08:07:24 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "15117" ], + "Content-Length": [ "25109" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-aks/providers/Microsoft.Kubernetes/connectedClusters/wyunchi-aks-cli1\",\"name\":\"wyunchi-aks-cli1\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"dbf416fc-aa21-4396-989e-ef4ddff4d720\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAtMKL7ef5KzaChkls6QLRZsmhkL4tvRwj52zqJMDOCALKzlbNMA83vK4loKlawUaZ46NU34iRQhfL/QyRY/PTezUO8y7yguhdFt8H3JyYZF9e6eRIJkvXwE4EGz5Tlh4HPKZ39xxdnlHZClhcqjzCZ0CWnyDS9UtMu8mgiHoC3p2K9XMEVFmnybUpy2tCn9Xd8NXsISRAh9DguIMF4XBgKlEiGuactT3XptHNfAkvI2E9XHnU3dPQMcltUxD2BVXtJhCJMlMtNIMfb2Xvz3ojWbN7Hl3iepJrED2FplYdYaFgqHiggy4+uNaNDLtsRQjj0mIHASk8d9PpFw1vL3HC6M7cd+ezrh6wmnYKhgHE7ChA8O+8KwMfe0+qILodzhvqhej89EaXV8dfuLWPxxfaAnfyozsITv0e2XJf/zsJLTwEL/73fLsZrDEdf5oiskAajZXSQ5mpCaCnCUmb3DgVTW8eQZC2TyWFcqiiO7keaMGsDkVrpZ95l/Ifwido9r/rPRT2x7JVkyXtcaFX/bOyXyFKFVnhzOCBeWViWqtyixhVIhqgn96bi+TqCkIx7fGvAG4MbTC/5cFl+Jz1u8h40HUYntL5I6plwJNWJtyCPA/n7CD2YKt+cio83uEjX5jWLx1I/UjLlojC7Ojg4UrEX9Qfq+FIphvmUIVQvD0TBqsCAwEAAQ==\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"},\"kubernetesVersion\":\"1.15.11\",\"totalNodeCount\":1,\"agentVersion\":\"0.2.4\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-aks/providers/Microsoft.Kubernetes/connectedClusters/connaks-ps-t01\",\"name\":\"connaks-ps-t01\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"tags\":{\"key\":\"1\"},\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"24d7af88-7735-483e-a079-5cbbe122da96\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"agentPublicKeyCertificate\":\"r+I/UjOFZGl6Cx0YJz3J753Hk0vBj4Z1D44kj4VpZ8rLHQOmy2eQannteo7VD3gXOzxkD8LZ0As2yCgmPxhjfho+e09Dq/Ue1Pm6KnTmcdeuLa+AYhibvBuH35zaEXEdFrWFtavalOjG4Gd4xYlkl0aWUt6/WovNODAe4XC0biJCEMWD/gCo9HFPfGcIV+Qg3UXTTTvw3KqZEDg7xZyi1KgQuBa8E6hekaKcwTz+BF/oH11sWZjsBIeRicZoK/vpJCKt0bj5aIXoOpKVeshmvroTpG75AklT4VrvK1Zjw/k49tj/YTPVbz+mKdEqWDGaxA/XZVCI7cxikBkS0pJxmUv5dD6upHEcjin5LABBdxjvUCYiXQgC3luyu6KvsxCV+J2VW9mSLyvCuY0UaierDvG8syMf+7B0Q0rZ+zX/EX5yQ5KnBr2BRG5UHJIZloepPSkFHbJX5sgMRCqPVD5/3zd6E++oW/9COmpgAr2WWlczohV426pC0btO2c5ooezrqMnDoqOb/RY1/7gtcpgBbVDYINjvbp7jgNzNBJo9DWvu0A2KCVPx7IkX4xMGDNfy/kOM4KGLVwyxUL521gXezUhD7aAaaFdnrNGqxynvycZoObly3I90cvjaGPkSfHFRQhBr3jLo+AHZON08z066gdvhmZwFVcFUmdtMOxEXirc=\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"}}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-aks-rg/providers/Microsoft.Kubernetes/connectedClusters/connaks-1yvutf\",\"name\":\"connaks-1yvutf\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"tags\":{\"key1\":\"1\",\"key3\":\"3\",\"key2\":\"2\"},\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"b9edeef8-48ca-4a02-9112-ee89c3f194d3\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"agentPublicKeyCertificate\":\"1O4LKFj3yK/iCztdmrRB4llNhbIvB2K/j3eisEGpHGHh1mLxYlPwCIOYj53to5dp+WLoQYwk1ZteqM6dFSUxAHSeSDYmR5voQ6GRYvxY4Eh3vYE86/D7zDXVL42Tlx4jBy1A24pyqMZ3pKAfl0E8jCyt0JXPgKY00J5rHjpBQW/4T7bw1iPUkNVi3D3UrnEk3Z0HVwCNT8uu4fRWA7t37YVh20dxtH9RgLvtyohKdBkHYQxQTLfeRrvMDOvHB7TUWRqfLE4rlokEXnCD5A/h72SQ2yErDOZQYhfUpZkoAE9Gt8/1dX4bs0s8pQ0WZkbKkTFKg2SdQ2tQSP9iaS6IcB3Bdb5DVj5sqRSqWRAyVXqrXxo36CwZ3xQ8R9JA8qXmCF4uX5Lz38OapD9w0CQA4BuzCvFAPgWho6V47TFWtmFKLyLm6QwFYTzRb/nIutEe9SWVy2oThPhrVc25Nm8F9Gbvj2puVgcsmIEoU8CW56emg5fPJ1LmBaDDgLWnhYevBx/RpGFcZ5tiRFHYnENuAjw5/F7iwEqdyFjt1gNJ2i/Mu9kw0tM624YkrfKGsBBHc5d8Pa+qvfPzbXbHhGEXDWtTQRy0cwhVoiVzrCHiNOsInFCvtzs2Di5WswFTcfm/6fsARuPN9om7CSer5l1BLxqO/9L4tl6k6ih7V3zSot8=\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"}}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-aks/providers/Microsoft.Kubernetes/connectedClusters/wyunchi-aks-cli2\",\"name\":\"wyunchi-aks-cli2\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"tags\":{},\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"223aa170-b253-4634-acf7-40f714d0cff4\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAlJD/FwyMqPzVmheKsIN6iuJ9m+Io5z6UKT+yYKv/lYhFQLH2fBlulGcgIpvO6GxQg3EklKPby3lHyZDIIEfHdB2TTFOBHdHMSy3EbTcxsc66ZeFOBzfg3FqMqgUVmCdZi6uK0LVD4ZbUI1ayW/+y/VCHjtR0FDwR2AtnWen4zfKjMMnrTPx/8dgR7dh7n/3PkvbsedDMKTK3vlkQponEktGQbm4csmcWe7ggUJSBkHAQZjRk/o9ZSWOM0Oowkd5zw7gbnMpScQPWit7kwWQzXnVNUbk8EYJPt3d/Y7LUkLvfJySSFmk/6eWX4vJ4F6HryLmiQltK0nBaFH9iY3VkIoEtUXwCPkpMHk2hSSptAV6+KMABlZoWGfsdtl+8fY1VW/u7AfS8TLIQm06CSa+fvLCOLXrCd+PxUOouiRlYThkkvXEU4IfwEAbhmpxl6O60sJzloukerOq39C14kPhe0/xnRLZJpUJzC5Z+I81meZcpnjsOEX9ZmrPKU+DqzJbY0//OyRaWJTUpiTpd0ZLUuIwjBprTWCAjUJ9szo5ooM+jg2pPOGI6WKmEbvmxc/+8En8sVfotmxqS9q9y66eI5RWnfzsLpGayZhSqneWuRFejw+KgWzuI5labwqI4nLDMhaAoywY8pcZ3nIshurwQv73jN8t6+PMCi+0ZjslTRtsCAwEAAQ==\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"},\"kubernetesVersion\":\"1.15.11\",\"totalNodeCount\":1,\"agentVersion\":\"0.2.4\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-aks/providers/Microsoft.Kubernetes/connectedClusters/wyunchi-aks-cli3\",\"name\":\"wyunchi-aks-cli3\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"tags\":{},\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"26ab96e3-b302-43ae-9ec9-cbd803184815\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEA1oB+ONV8P887Ik6m3+ffgDpybXvg8V1Re8eXIfdZiB67osH1UeEcXxWIVG2D93XQ5RR8RPJxCYd9dI5Gsw0pXESEWo1PSOeeGpcCpidxD+rxFnydBw/Bzh4jHmR8dk4pC/PiFG8MTcuM23nWCLaLsOqMLlBn/QHGU4r3iES4l/hP0QUmKbuV3WOCdO2OcWv0NdluMHPkbSdt6a8EW+HQ+qSMLRg6jaZfQ66RV7s49rvW9HBDMnHgFGuiu2aixNnJzijpVKgQ6nbdwL+UJuUhDgJ/EZ8dic1UfN4OchWD3i+POdfm/q1QJzDigyuq05ZQIfWOPdS9MfHSqOlh//47MvOzCqsp9Vo0O+Lr3vpORKQ7Lvffipj/ArihUBGJXqmNGvFDnpGUN1BU/oAPkUH2iVS6fC+J9D89XxRB/iOj9Cd4inJriETIlDdLfYuFuMnBZSgSHT6JcQr9IU/pnKp3P8qkk50p/vxZtZOy9CyueUUBOLRVyx7L92Y5QIGZuz36Txk6PpsxOLKdKOX/3amHNPx1HnIeN5d3fKzuB9unKv9YM9NVgR++B3uCMZh0omm0PMAciFfpTuHJ3GzcF1un5qLVVUz+ay/tuZSrB5Ln5Cb6yZVp3nYyCKybHDnmTKcK7kgYJxSx40u7WKeII6IY743+jYOpNXudkI0YDjAl/5ECAwEAAQ==\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"},\"kubernetesVersion\":\"1.15.11\",\"totalNodeCount\":1,\"agentVersion\":\"0.2.4\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/azureps-manual-test/providers/Microsoft.Kubernetes/connectedClusters/ps-connaks-t02\",\"name\":\"ps-connaks-t02\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"eb940248-1db7-4524-a98f-2b5cf24d3800\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEA+Yxn//L42VxmjX0hVPPzXBhJ7s/WvM5LVN0oPeGOK5M0KrYai/jafXcXWTO6/cVRE9h1TD4lsq0kMx0TiqKbPLe0HH9AXq5MEPd5NVdYc6lxCKxy7C9V85sLq65/aq7PpuYVCvfCU6wv03FfVKzDjB3yBfY+32UzwU/bzcwKRE3pFJOYSq/n9J6EG9/Fk4iORhqSn2H+eHdRixE231KEkT2EnIqfo8itiGQ27abZlo8qDNzvtDBXq28iPbFF4Ek258zAeZdkz7GCdoKSrGMx7/gxxYeAgReHS0kGFR38ZO9UY/CzhkcvTo8M8Vhm44IR0X9adtoxfURQcw6aAoWSpfHpJnRvrtXJz//1M3GDsiQwOUOPW0EegmA8b2hZL+STyOE1JYdy+Uvxa+VIwWOwJbVzUbJrUeSTPvVugeuvhMEpmKDI54Xde9/cq96GWBuZom1MVStk4Arar/BBgRE6C0HWXKWJ5lA3VNtB6yQKm8zxqShcqSqAZ3ctkjnxLZkvbz7E+CgLRQfqbu+I1SMaOJsvHWdz+SXCPGKCQ8nesmMLLyBQmge+cvnEGrZaRH015t26OrdWJtjqVSkzmCS8P//T+XjkKMOIPibKf/Dsk0pSu77VUYQELpwDiULL8cpe9Ji3UqyiHALTTgZ4CRHaQxIszTu0nNePZRt9gZWubpMCAwEAAQ==\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"}}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/azureps-manual-test/providers/Microsoft.Kubernetes/connectedClusters/ps-connaks-t03\",\"name\":\"ps-connaks-t03\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"2b977490-324b-48ca-a369-d5b2453b6922\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEA0hM8j9z60eMG5LDCY8qoWvh9AZciqRvwl1hvqiOOK22iwo3OOM5si3I4pWoAh8L3sM0gAfbc5R9Izg4YYFT0R1iF/gIr3at7nKRVaYol90iRxE1LTbmRss9gWLmGc5T3H17YKy+GFg2h6tm/sIgUsAMVdIW7VYEbu+b7BcNK6odrFWYcbSTt6hAtRzENwQd0bC8gLN14mndMw6HFL+wwJpULV350gb8C0d1sjTIcVBty3q89aBklUpSJyHWmyybbQRc/QyNomk4YQsZKyTaS1tLle9AMOI+fhL8xkc4WG04qh8s603WJAbhVVaqrTFuQfUfVqdKd4HlIQFCAQ/GBTE0ub1GScWn92YI/F8alj2ORNjFMzIwpQMrOB316WiYAMT7otJ7QWqigN646zOdREfaw3psyRXpRzEDS0E0JsKp8RJ1LzwuY/5Yop16R4+HVp4GHn12j6qvCzvsw2jA6mSfA4Kq+a2BjaLsvTazpnBF4BMXWFfIJ+3a/jkPhl551I0COWiaVvr98jf5BrsRRlAOQ63N9+0ySncK8MIC0ywTg7xXi2dmH789KzyqBN0Oi4INcAy265duquEl1yZFlV/eSgj4sjKF4uw84p+YgsN0ShUmWlF5hg1oAiulDdcJZZPOEtX32D6z13tVWPwogyd6QZjveSQrQSNy0S+3YREUCAwEAAQ==\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"}}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-w9vlnp/providers/Microsoft.Kubernetes/connectedClusters/connaks-d983yc\",\"name\":\"connaks-d983yc\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"837f6682-219b-406f-a158-9a8738daf39e\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEA7kLLoI6CW1NgGgV7iC3m7vb6vKa7azSFse9UgUcxFUb+p5ceN7VqpnwTenkAW+dkF3E5Gg5MqacnCrLghKGBrUUAahA4HNznNE409owGj3l6vJPV0Y+buftf9LESnWleS0t3sR0XSEZanhH45aKMpJA9DErEjIAgFlqZzg+aHv3j2183neLehAsRYU2sNYXU7VpTV7yESPIiEWD5piEPtzuKZHoWudn7uuFcHzAdj7dd66zwp3UQq9b7HKnsSm9+jZ+/9XX8o4tm+gH8fWJwU0fJT2voMqtXtyRe4BL3zwjiH3cNlMQ7gcSrHM3nG8gbfpJ4KlvHltqAfBubq02F+bAsBJB87akBSMOmTKnBSqPfaJObeB8AR2ZJ1j+/prztCfm4l7wXaHYLip+JQqswTsM1zWzANwTJ9kzumldXinpSc1zF3QxCedPyoQEmkH3LQiQRW6Pa0TcYkNs3VkeLJ/Si6eK0BESpEljLVPUtMiJsQpfaWgVpNPUApSff/h2TCP8YN9o5nO0GjWjuuz2VcpgRYIShfYUGxD7MJkH2v+ABpPhzbGS+hSPfBydWppDOr1GzbJSAIBONz3lU8vOkqbYYlheEHZByUEeVS1+XVKAZ/Oqb2aNg/PlCSl020NqvMFZe2X91nUeic3+bfABROsimu98lh/PybXClkBnoeNECAwEAAQ==\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"}}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-w9vlnp/providers/Microsoft.Kubernetes/connectedClusters/connaks-dsc3dc\",\"name\":\"connaks-dsc3dc\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"tags\":{\"key2\":\"2\",\"key3\":\"3\",\"key1\":\"1\"},\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"4893b3d0-0abf-4b68-9916-7c7c1717feef\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAwaUbM1YL9YNdgLn/VaGJM0tlKGiTYuGnp3/XSnYC81KkRbFZZRV3TEqDNV+2QH8n07BxqMnT13ddsBrzDZp4teDD6dkwaTUT63A1KpHSz77LKbikNyuc9qg+XamNIE3REEXMFbinka/VFR236vaS3ObEXQHnMl9VYqcjZ+t4eGuZtDB/s3foFWK4K4wuF0RhZomy90TM5LVlWEXPxCpn1Zbg/nvJZuF8MevnCiU/i+WcYIEdb1Aj752imIhHtRRQV5UhbeIn4I75LFJXqBxhcjCKrw00qmX+M5ltr2txv3pfc0CA+g+SYAfWdP1eZOiDLf7FkaHO1MOj888GmDPErZPJ+9UMPHZUOP4Rzpdiwk2HRzxG12NLwQ5Nav2TMyRRzrQrVVqc42HTpd1HrnaW/BlxYVQxVZGYlfOpeQ+y0P92eZA4GZYrcuIO7VQ6D8rOUEXeGeyJytJxfiXvHfI68RD1EEI0xXEKeAIexjABRZ4pReffyupIEqCNu25TMPrCrkIUwcSyS2Y21xlB0UWu6pfyk7Gjbxzs+5dSwGoKAWbNaGTZqJyWnZWeJnoKxDiNBzMYl6dLzEAHDcJLRc5/1yUhOKMUBKq0QBcUspzwmDTiPl2ktrKx+/19fgH2tq3AAG+x9kQDDYeAGOE4tyouXCSz0+DX7OuUObROaynSSVMCAwEAAQ==\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"}}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-w9vlnp/providers/Microsoft.Kubernetes/connectedClusters/connaks-dkc29c\",\"name\":\"connaks-dkc29c\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"c8d110f5-161f-4db4-9c56-8a15e0099e3c\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAv2vmYgV784FUgY2cOToYOUUl1yVvX0NpSYPMYZl83y/QmXHpWyG5J7EX+ldrgLkMggGBwToBcCCNSRB8+k746UlpS6s34W2EoQH7Z9krJGMd6QNpX+uftKWy2wtt9BBnmGRkwnRCiWvc7b7R3sayg3UFNma9S5yzsbV+ZeHpiCZLeLM8lKgM8ZaHtHERdYd/Tt6QuFbet5cmNAi6IjyPmrjHieHPrSt0rj3NfrvKmIjn/u/mErOf79MOJA0gxsXdAAFEGXKek06t5cTZsjdB/HfMVZ1IhXxT2XifrUJkZ+XugPcEEDmSMAaf7qxqjl4zjsqxq6mGbp59/S4aVJ+J5gTcaeJ0I1HRgxttJqbzi5TTsvp+RBdyWNoBOZetblqsveN7z/1DvIPoxoBuH77mu4qwTIhVVug8WJYs7Mfb2+M7Gw5k2eoCp3jZNvKZ/gp6XtxXmt+wrNQgx6Sm013hCeDpqqDvqe5m7W+TA0SyVD+cUnhrCYwTECc9gE1Lk2RPRj3UenwVuhpmddScesCGKomoumU+WOo6omjaCKO/LCcH+2xbjqOCUCm4YgXG7rPX/waI39j4xj5PyA7CGq2xKODKajHu1QkV0HWrN1NOsXKiqOWsKCwcHbESQYldMewXfhEtZqGEf4eBPugHQw0NmEiymrTdXRIb1VewC8X76p8CAwEAAQ==\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"}}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-s25w9c\",\"name\":\"connaks-s25w9c\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"928ddda8-d0c8-4305-bb86-bf23b563de80\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAm/3yDiP5tp78mOXB/vKO6w80pKIEbUfdXsq70i/ssv7N22oMbF+lxOJydclwKrB2jekN+S3lfJd8HfQBnqycsOHEPqVLupN3VGiipKpJekthOeTSRAgFF3t6rc5e9Js/LBg0zfJlVMTni3sV4VU8wS9AGpOIM7CX6ctWgsi/5xkxm3dTpynnuho+s9FdJokkoohWkB1fF/0hMgBBKgtZIKRB343Mkk/2meunnqy5O+E2/IIQf00gf14b7vLKxAY/OdQSgpoD0LIUGNz93K4FQaI33i1GjJWdjPzOtHAI2GZUuiVu4mM/v9DtUABwQefiK05u9vqtejWfoUzG6TNHxpjYv/pFguDNmPwDHzPhxb4XvwmX82qVDVYQBZhGmAcEIrgJ1XUTfy/f7WPh0OBTi+T995pQS87YSMSXbGTvzooSypac2YA18zCBCo3mSDhMGblvKHfvKAszSYQCEQ/WR3D0jbhxaNKU/nk+hkcbtWQvYvdzZ5dxkEfi7K+CHFGjN7owf1veTl8fCbCPS1MVgJGi5M477u6K4k04SOI9IACOcwpi1vkyTupEypzJyMb+mZG4+VkhZMKSIbeUkG9KWDz+q3VnuD9OW0138iME9AXGulHiB8wr7GgBXoOJIzdF3l11CcZMRYdgG1vIR8BQn6LdgyEz7ueFHVSNSq3Twc0CAwEAAQ==\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"}}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-ep8b1c\",\"name\":\"connaks-ep8b1c\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"91ac6d50-da2c-4621-890a-b4de9a199c98\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAqihH1cAkW/NV+Olp8/3fMYPUabrhqX2VLfPbv8FiIS+zBBFm+V85qn4QuFu0pIkMYLxbbOfwb2vEqFHu+x82LS/8YoMkgoDNmywG7wuKeSuKQC627cLL47DLPRsdsD8wI7IkkxVDUF3bczStRKp89YaTQvPT/kHSu7jYH/K7ViwKH34/ftY8iGz7yjpGVglYW6qDZ8x4PcE2uZsmgY/v86G5h8kcidOW3GsGtABw7v1ZTPi4wyYVWFrrvt45ZOQV8TMqz7adCNhDDRfo7xcrSqOp0bvib5l5SHh+4+PNPvcda7aRnZEA/mVqKU5KnlqAUOPaWNi3O9SfeXgt63Y73jbGYcPJREPEJeR1om3JEkJLM2BqbRqntW5+LpJv/l/XKsAnFD5XJEd0QEnN4nKs++huTPorPOBpqRbe5yoKI0m+JUlpGX1C2A+gAJS1GCqY+HkjkxtfZmCiOT8MwVWPOv7iM0NHn7RrFAXWLkKjmHtuNsI/hOR/YcIrz4qBFH8KGohhAESAZiN8GySpsDwYk3XXsKa2FdcPy28Kpyrhn13Nk5y8+AV5fy3/kUsD32PqJbfA3vJh/WiPgviHs2k5XehJlVh8K/vN6aA/sxNXKyFvoN1C9XQ4ZGpxwisJ0tk5DEhnnwmuYOwh1baH9cfUKQkQ/ESK8Fuy/CicBf3ZYv0CAwEAAQ==\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"}}}]}" + "Content": "{\"value\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/youoriaks/providers/Microsoft.Kubernetes/connectedClusters/AzureArcTest1\",\"name\":\"AzureArcTest1\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"tags\":{},\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T06:19:28.5046734Z\",\"lastModifiedBy\":\"64b12d6e-6549-484c-8cc6-6281839ba394\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-02-19T07:02:49.7643137Z\"},\"identity\":{\"principalId\":\"ae60fde0-9cd7-4177-978c-d06974a7033e\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Offline\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAu8m2oQ8YuVqyWOpuw5Pi/4QHVjCqC4qyZrrHoNG7CQgdA2lfiuccZpw4d8melsuIycQK9HISrHwpum1b/7e0dAkbF26XJA6CV88SAWUxdKziAipNxEecV45oBLQsbgRR2cbxypDIU/sx1cON6qG4ChHtTYFjKvlYB7eg/WVjLGfLFJbCxaCvo+BN6pyGHlH45WPq8NzJxu7hzbqqPywN5jHYoE4Uqd0FSB5H1RSMpLaVywRon41SJJu4bZ4kUQLBLX8iLIsczboNVdnH0990yq7vwmoJz0Z/pTeEInRZ+n9aF5X7Em/XI/PXDVuDNmOOxQKvmRpSlboV0+6oTLYU7XUIGcLIBo3exFS7Je0LLL3xI95+4FgZnMYYwX/QDqcxiAX7mQO8xqF4Gc/kSKPN8CqtRZa6jEKPi/ey+gGyLuYP7/zc0vwJC8BP+UQznm1zCW7QEEmLwDe+t9gqOH6V0ExQlrK7EJVj8Fyjk3UB59xKZ7rE2DonoS8CGiyOQg2cReOxpVUCW+vvPbAWH+5LJsoFm2nb/1nB2VdP/RCe660oiUmZrBQYSfJ37KhNIMGdPh+Wv8O/0V+ZN6pn9OaI2jYVvJbg0l7fGSVkYx295NEl9+OuoUaJ5owW4FhkDNdV4/n0BK/g69WCPgLfC0+oOBC2DeF+1bppybuQzaegIrkCAwEAAQ==\",\"distribution\":\"aks\",\"infrastructure\":\"azure\",\"kubernetesVersion\":\"1.18.14\",\"totalNodeCount\":3,\"agentVersion\":\"1.0.0\",\"totalCoreCount\":6,\"lastConnectivityTime\":\"2021-02-19T06:44:07.105Z\",\"managedIdentityCertificateExpirationTime\":\"2021-05-20T06:14:00Z\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/youoriaks/providers/Microsoft.Kubernetes/connectedClusters/youriclusterTest\",\"name\":\"youriclusterTest\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T07:03:26.6366304Z\",\"lastModifiedBy\":\"64b12d6e-6549-484c-8cc6-6281839ba394\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-02-19T07:03:34.8047596Z\"},\"identity\":{\"principalId\":\"b4aa6d29-5df7-4d43-8630-e0c0ba4fe8bd\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEA5RAUADB5cofvZiVJAPIss+CdLANfOdSADlum0knzELvJhlLBHyOC5YpFQsP9Y6KBSGbA0PETgSOfivnzh7Pt143Ebc+fN2nKlJJYOKw4PP0QUyfhjcllCiN2dPXYdTgtItxqS5OSVel2GPH2vW5tE9LZMKWBzrtgeuagLyFl/2XVXkkV9k1iQqRUsU4IYamaBsJf5q8BH6QAJni1ZWE2+F9AtGDJgX7Ng6uWb6KA0gTlr071Z6pMsq3pcknKd5+U6OQSA0zV254mdPO3vyqXXEbHoCVBhLVBtS3sfWWsNtP1L/nCFkp61AOm7fLcXLQKCJp2qvzX6vn9u7qwyj8P6ssCx1STErq/QQ3eppC1s2Yn3qG0Rb7x3daXO3yx0YX9HzPXF4PgKurctDgYurArqgvHaoUTTLh/llTkQu9RXW35vruuqYSNNWEEgx3CeazqZ8MAryeGVKC4zA3Onxz8nW8+x0urog0o66HbqzVUlvFKEmCIJMEHbnWXJOBsJ445iyU66lXxh3ahoKjf9psx4EXCKFnqHisaPHQmuwwmUwtKZ3h/+xgZ4yz/n0P47hVXer9OfA4BVzbM6h9qGg+OAHFTjC5aJ38iMFUYFRRyRsvn65+XoprsCVKfhqPr3Rpy/uysQ5BlczlySDRTGxvSq0C8nGmSg5mwtP2/mNhJTc0CAwEAAQ==\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/youriaks/providers/Microsoft.Kubernetes/connectedClusters/youriclusterTest01\",\"name\":\"youriclusterTest01\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T07:13:13.9391686Z\",\"lastModifiedBy\":\"64b12d6e-6549-484c-8cc6-6281839ba394\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-02-19T07:13:21.4581513Z\"},\"identity\":{\"principalId\":\"413486e2-832e-459e-aede-49c1da40f40a\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEA6rAHaKrKmR4tF9ahrFzP7qCcNjfLtaMN6si68mteieeEC8FNxjsRxPH9FMMFi3hVGdxs/BxjTLDmkQ6QNmRFKyYyIxsR/5mzZbqnbMj4hzO4QFyOui4tG4YaC6U453lVYq237wrfVG5uYrjcdOQo7a89FCvRVW5sJfA1MuRcEX+abBran+Ba+GP0CbaQ09k8SnThOPqCqkh9P4irLw2dZ/F7GJ7c5K54rbAEhl/QS4KbTtKTIXty17fzVzSaFYEpeF0shocyiJAFH9GjViZxcWLe/Eoo92PVxKlgufGWq04chao7/LXUHx35TRF2kOjDoOecSiw1mGygtbSvb8Jkb4/klcd1X4PZHB6pdfKjxWmy57RmJmUkkwQQaXqEXcP0qoQS7Np5bBJnKRSpCtSHV+GBChJxygHGwoDgh7fcmp4OMq+3SgHcrtCih3OqNwMLJiYE20ZOX6+VEaGIrnTV1AFBKINKmA0VfSDzOw0dTuI98ONzBEBrAa/I25viD5Dtzk87+LdPa5MNVl4rgHij+124Bnx4+dVz0Db7gv6uk4a/EBZ3KFrJDQYQSvwCJAKuKKWYQ3qC/2AUNsn1Y404i6C+m408BZz7nxOe1wuAYWGTZtWR8ywCapxcgcmFxLqKC5qVss9WHVNfy2scUMQyr0Thwy8SPARm6nGnFuXiGnECAwEAAQ==\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-8fo2yk/providers/Microsoft.Kubernetes/connectedClusters/connaks-rsapud\",\"name\":\"connaks-rsapud\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T07:36:52.6879645Z\",\"lastModifiedBy\":\"64b12d6e-6549-484c-8cc6-6281839ba394\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-02-19T07:37:01.9221438Z\"},\"identity\":{\"principalId\":\"b0a288e5-8a1a-4241-8e0b-3a534450e453\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEA1olLETmw2sLIkAJDXxCdk43XhwBISskl3o82G8ECQgsEDYTMfm7pQepA8nStd5lCRXdfb0Kd7cK3bcT71yslKPrEUtbaRTlFyUB19+TfLI2wIYwR9XjGG9ZkTB0ViZWaOh5QCeyycOs1mrm0zELc8Ma0qCmJYt5eQWyiorsfWsindW2P9d6TWRoKZQxrKkWHnNImXrgJ1UvU/sI7hk7Mc1efTq+t2xKPuLEZBF/aCT0Shj5JFiWrrS8fdrw7Mtj2HGQ07YLAY5wnVHlXlOO4jy7FvdlcpDsHlJbuCcr1hyLUiaS+1DxaEG3ItrmgxbgTQlTJ3YjXBKo4V8SpLJN2fapTSEK0WIP434QDSrxu5kW9HTpQbDuYxmpn839p/IDICtAHkBsVbzMmuGwkUqIskk52MVoIC/HXnKGveIshReydq8nXc3hzWjLqcTbJ7woaR0rVwa0Q++2jeIFKH15mI39ncDURxWagRqA0H/NyBFehyErLORgvPP56/Q/EO/kCefQ/Lx8S7Cy7i46lQE7aOSpoQDLp7wx87owpNtpUvePhn1h9izVntf/EJWgUq3rpXg09n3MSX0qfaNHWC8shR09B3cL+PzL2K5y81034mY7AegyBVDKAUT7lgA2cAQwQy4nDGnwZfBKWMy/D3wAZc4N1xdTYnEDi7crf0Y+o4KECAwEAAQ==\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-8fo2yk/providers/Microsoft.Kubernetes/connectedClusters/connaks-q798ct\",\"name\":\"connaks-q798ct\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T07:37:35.5576192Z\",\"lastModifiedBy\":\"64b12d6e-6549-484c-8cc6-6281839ba394\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-02-19T07:37:42.8982375Z\"},\"identity\":{\"principalId\":\"3d72fc5e-09dd-4855-8882-f99dc24da1d6\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAy0trNiIB2ohLOIfPSIgvLL4u95OjAC6/9VGxJLpw4qKw2W9VGdEXDypXH5cA4R7ilXBk/WmmGOkVkPkqJkAuDB19u41eXiiExeHV2Xan6xHwsCnDQFl1P+x+y+6MP5pwJXn+lTOYnFwf5suR1/DJWULtOD2aX+jirupYRry35gS7nQ0rrPIywMLzDHgiTQgECTHgWxHkeStzneL8QwytZRbphX+7u7el9NXldEP4WFYkyRBE+fH29sSv6XDNQAuzRXMYQ7Vpv0ukOnssK3HUTI62nwqeSn7UVvDGG0m2ZsKT0yqmAic83xdqKhOxyRC8kUWMpzX/V1rKLOp1fW6Or4mMW8bkdwMtp016HXQDjN6qTD6jGiTXwRVUILxAucC2jKNbT+z7Ddw2h0jMgMBR29c4+xLMaF211hAIJf7ettYsrI5zlPG2cWvGlSJ1HCRkHaPgYt3102+RiV+3SJM52SejwojRts/XZJZg4nKFf8WubAVRmoRDyhktwCyUMDj3yz4gTUdAxxuXYK5Cmdg2w+OQFzYjhElcaJvjptV2icaSerhR0u2fO88gCJARa7OqKG6Lx4RD+aBKUUMtFnAKNJq8fHddEewVCDADlu+ANJ+jSY3d6WRrOWexq2PHuvOob3po3B75qow3z4yBNhFkaqdKHLXHk9y+PoCHLLJHXdkCAwEAAQ==\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-cw6k2e/providers/Microsoft.Kubernetes/connectedClusters/connaks-xnigkv\",\"name\":\"connaks-xnigkv\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T07:39:46.4968653Z\",\"lastModifiedBy\":\"64b12d6e-6549-484c-8cc6-6281839ba394\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-02-19T07:39:54.1198692Z\"},\"identity\":{\"principalId\":\"563e8661-1150-457e-8ff2-57aadab6d861\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAq91MJgO12PEpEgCp4D/Q9nskpDFCHkdKToyzSaQW9xrermB1aOu7Lxt2y1/EbJkTalss7pyVph2nydIcADfasqfvIqM4ESK3xekp5J4i5WaRL6lCm6lw5mVV4lFO1pwN4XmLrtjL4TwGnwSIBwU9Pef6WM86v6zFl2TxsqHuo0RH/YNCAuJz8TXlDlf7/Z50xjtpOejfnwpOJuw1OU36quy6ymILe9TVzeRQJtFQ0YLUJrYwLswkbMSxhx3kNjQpuBmGQXh8+HYdmf8OE10647F4iU58k+0Of/hx890Uy40lSc2iJgndzC9J3VBjkxPoU6eRzaA1uScKGvLlt1wBq1czASefELNcCmdfJxtfJXleLCb3dkjZyti9Tlr+x7dnsaR+Duizv26ig4AokTGG69G5fG1NOmq8DUwxQCrp8Z2d5N1QWSnkATQfMUcPvrTIgjxbhAItC52T+8DOa2ZFFRtJhF7LKcMlKkh5ACxafIX0Zfm40kbR+gF752CBxBzzfMerYQ9lrpmsPn2aAjWjEJUJI3VQew17Cz0MVKxpEFy+prhfzTV1s0FISO4CBFk/5OjYmVtrMUTNQXVV+a89vtGbhUs47t1j65GL/pgeQSgYJCPF2glvSvjOhFVwt69Gj4etxAcgiRbq5mZUMU/q/7txmEc5S1SOx5oDou1k6GkCAwEAAQ==\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-cw6k2e/providers/Microsoft.Kubernetes/connectedClusters/connaks-8tqcw2\",\"name\":\"connaks-8tqcw2\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T07:40:28.4980568Z\",\"lastModifiedBy\":\"64b12d6e-6549-484c-8cc6-6281839ba394\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-02-19T07:40:35.8229894Z\"},\"identity\":{\"principalId\":\"09956f05-1aea-46ff-89de-fac9a6bc75e5\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEA5+7mj3fQN75c2bDGOm2DQjGRP/4BUsIdEtPZGxGcJe+G2YvIyZYghCeycFs3V6aYnn17G3i3E9ZP0d7jnv61GEt1+eaEJHyt4cCdRuQIQnuPAHemkooY7YZ19oG6KN5rI/hpPBU6DSOYcluFqAjg7rfOHOm6tS45gkQGxgb+x4dr0pZkuGOXfqIL7mDYgtQbPgchq4xbSKdjw+mIQR6hKq++/Di4jOAE/vejaXRck4FG3NicM4uUXJ7479riqr6PoLQo0NJ+BbXwPLsOFFc5/evYuo/HkTEbFXrl1v6pMQJh4/Nuwt5Apfr/QYXlVoK5QMVlVCzhc516uZADSS2+niC/ZFQb1hvLi4EI/OAxPCbW3jrm0LVCoJxYBIqbCzWfItEcFO5eMrMuU4y2YsSHbIH9B3Xh47YPRvNuMJe58bQ40OB7itcfh6X+9yEnWtBM9NxrTyvG6qBglTzKbglnkFV4BE+c/EvvHV5a8Ajcd5yJ94gU+yWQXXvnp7sRLQVXH91s0Og9V35v1DWRFQYbpk7n7ScA6+3ed9jHA8ADPSmXfpzrsY5BBgtVB6zpSa7sVojd/5uQKnG2bj7YgYpB05ZwT5V2L4XfuKp02kZZhmsooGxmvPm7Aw8LDf8nzuVlWOvdXAJDzqTbVBkCNx+dcaJS9lmIwIXG1fnBCfaW7V0CAwEAAQ==\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-vw4gyp/providers/Microsoft.Kubernetes/connectedClusters/connaks-f92so8\",\"name\":\"connaks-f92so8\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T07:42:54.4375493Z\",\"lastModifiedBy\":\"64b12d6e-6549-484c-8cc6-6281839ba394\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-02-19T07:43:02.5805393Z\"},\"identity\":{\"principalId\":\"611a4f21-8081-43fc-98ef-100c41cf8f17\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAy4c7kurs79genc5tcOhhDgKvqx/CFPhivzmnYxjgs8wgFPRxi76d093XgjOvZXKqm1sfLiWZwyNXQiv2kq6Kh912OkNxfIlkoFqN3MaEqFevyIZPT3/xWHeJsebclQGvthcBE7vWUeTb86EL75d++gry1f1Ga0qtcqKOJWQkn16TdAJMckcN9d8IAoDvsxtyiEGX6G1zxXhgCps8pp3Ej1dOorN6xTNnuOuJy67DcMwj3JyQnuCrUe/HgD6vNGCjs+2sXjDPF4IB+EO7rh2Z67FkFXAkb2gwu3w1Evz5hUyJjF1iAgjEdbVcck0oKZS8vvEzACZLVSwt5SbOg4Vo/gda4ihqTe65woUU1aiwwZd2odH7K82LugSauqPZTqko1eyC7xGGBJIZEYbQf4n/UklgFsYnnkbA+UMmvDQKhhIdUGiRgk7z7MAaNRmc7xRVmeIpRrEZio5o10y+Rq9iStGrfUbyBGV5jLBzhlVWtawcwgP8qbf/jKpv6nls1/vgeLweEUh08x0WBfG8W5oQ9WxOlH8/ShxBoZHktJvy33IDtu4EFt25wkHcmEBuCR3NuXqFpghjU+hBDjQ92m1UX7qkjpJElhk8EFsTjCHdXOxxslxnQS3oRGmeG1X2XssqbzFxEZ+lfAUnap1ZqDxeefQSuXm+3LwtfPkEBicZNf0CAwEAAQ==\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-vw4gyp/providers/Microsoft.Kubernetes/connectedClusters/connaks-zk3q57\",\"name\":\"connaks-zk3q57\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T07:43:37.4135765Z\",\"lastModifiedBy\":\"64b12d6e-6549-484c-8cc6-6281839ba394\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-02-19T07:43:44.720185Z\"},\"identity\":{\"principalId\":\"4cbc2b87-df91-4bee-917c-7b5c7a1dee73\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAvcn1J9zxevaACOEy5U+sApUsiDWNAvdPi2XpddPJz73LbNB6MN9NPMGC5zOfgJJ/Nj54AwJfx40p7EOvDpQOKcunE42A0jgdEaIsvPq/ob05qiBkGcejvU9n3kaCiwYL1rcI+2HsfRToBSnvWUTiDtQ3dL7kYYEr3c0Vg5TMBIrNgtGYn3YRLaOgkou9igl+ZqTMPWJXqeQX3mzkoiMFXz0QvNVaeJhIcnt2xOzSYMb8IhYeYyuHTBWTQ4KLXCgoqjRrZ2g9G7TRUh0tXzDNGetZCuMgh7Ux7iWkW0Y03e8LI1pLBRhXFKLloixw3zNsT+3X/83nWuyvYaBBkNHNRPC/seRETMZWYa1EGeTgzteoweB1uIrg4eOtKJV4N0KBmiuhRkZloeIhap4psCstmEeO1SBXASxNEmOvV9YPN6gubfMVKpzYNeh4KCTNFMR2R+9MP61mLqMKaNYZ3IYuej/VUGafAM0/pGCb6iowohAeeyik4SRHrNCVR1ckO1wt1RnGlDwhL60arW3U1ZT+XabjaEdJJCvqpyWZmP3Zo7DuyzsOTgc/brpqtLowbJS7Zhk3stEvcCYFU+nfnA1Mmn4ya7XCjIdlkSycwgRLY2pm6mkB+8TLl3q88QP+VXA/TvYIxk/3tO5Gx16iQ0ABtkvV1wCzcE/LQSS6fHC6mJ0CAwEAAQ==\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-uxlw79/providers/Microsoft.Kubernetes/connectedClusters/connaks-h58cn9\",\"name\":\"connaks-h58cn9\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T07:44:53.5357658Z\",\"lastModifiedBy\":\"64b12d6e-6549-484c-8cc6-6281839ba394\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-02-19T07:45:00.3845206Z\"},\"identity\":{\"principalId\":\"74b1c9d4-f95d-4483-a66c-e12ff69def43\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAv3f6P/EFTtv+x06lBJfwAkuLCdfMH/1kV3MkPApdFYxfErHCmqKFHlRsct1Z9YSLTKaDWCl062R2+MoYPo4Obu1EUjOW47ynxo1FCI1UKAXmevO02olz7osyQbTgb8fdkrCKgzpclI5D0LzdlQsC/Ube2gXd5KHnHeU378pixAWH4bHDPnhO3MqdCs10X9RqbjYbiE3Smww+ju14jgkrqJ0C/L6/8mda2YnN71YlfnUOcqIPnkucfVItWLT37NWZgWQukQfwNmiySqAMNhAZQNbxDo9t38lAxvvfnNaJlOgvSToTabHvH25f0D6IC7tFP7O8McHcCBLmCnV5MyBT7VbiOBWTS+XpHVoTPHczUegc2H2fBYRAMJi5sR8l0DGR2ercX4keKIELT8lhkFT+8KYXsCiAsYseIQwZqTeXXz1xwZK24cq8HQi/zDQgmOg56DaK0xHNlTHBOWwoiESLPRK3GoX6OtEtmIkG8MyuCNFG5RupYqXHWqFVHX0RIuPWHkuoHLNFLb120tmvYRFxDA4MW8Y71zAPq6TcpXK0EB+cpFTssXbKYXDVXUIKy/XKei9l7vWaF0nQzFl1wtsCDHWBt08wsCUN0+NgHPc+b7N+n23PTaZTpKPshuskadQzJ61UF8dEDPxxs+cQJ13hWCLUUgbYKFWkXlLsgA9yH8ECAwEAAQ==\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-uxlw79/providers/Microsoft.Kubernetes/connectedClusters/connaks-dc57bh\",\"name\":\"connaks-dc57bh\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T07:45:35.4427566Z\",\"lastModifiedBy\":\"64b12d6e-6549-484c-8cc6-6281839ba394\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-02-19T07:45:42.2189504Z\"},\"identity\":{\"principalId\":\"bad1c6e5-f658-401c-a40c-0196a3ede0b1\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAlhSvSua9BTYtC3hbAxT+VOHwKfppUlBrfBibhh/yalQVHSN4oM10Wa4wR2rUTx65//UIXeUB/VFKvoEvSHqulxLrwhQsv2139pyyryGuNIQFcAbNdd2iX5clbSZHt+1y2NmklqIx47zIySo5uaNDy1m7Z43zQbz85NXAqSNP613BNrBGOKG1nbMr+dxGr3/Pm3KymZI1Lf98M7ypbN1Z0tCXYcxmjHv6jqgqSZBhmB2g4+1Ppi2N9Y1sKQ406PwuF8FImMAaDU2b4mmot3Ph0qakJyYjTd1Tn4ARC1N2vsaADQqTqo7oGcczZV2d2xFs45aGFrEYpmk8xAoYsBCs18gr6W06kbcmOtfbmodXiDKz3ByN8sORTLMxq37ayx7NZ5KuEoVbehiahJlnZBOkidvMKbcqd5/LBxwbBf1stUGsnzyYXChz8E9vwBaCGvY9CQCFyb7v/JDBnMpnhC4MkJwmJJJofcjHv8mQIA9qEaV5tBUq0JeRKol6Nnstd2vZVkraxyR+7Sg+TQNZybeO8TNye/KMmwtLmHe3AEoLYz+jJzEU5W9F1KLjeGRVgflUyPGE+zguxAOrGyyWTrLg+VdCKZxbWumxCdETTEexaGe1XyAc4OUqNBHmJsFLBfjw5aFaIthT9j4qnlibJGkejV69r3GYnfCxc47WiVUbZMUCAwEAAQ==\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-c2gvbr/providers/Microsoft.Kubernetes/connectedClusters/connaks-04rgmb\",\"name\":\"connaks-04rgmb\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T07:47:32.4654608Z\",\"lastModifiedBy\":\"64b12d6e-6549-484c-8cc6-6281839ba394\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-02-19T07:47:42.1752068Z\"},\"identity\":{\"principalId\":\"b5d4ff4c-f775-44dc-8675-0b90b6a3cc3d\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEA38Z5KU0FHEyAo2ltSXVX0huKkM7KLa+8RFp0LG86Y9Y4MlnF/q7b1Rah43KvjxMQqWJiAHY8k4PpmefZLFiw+KES7nXuaSuWi4VEoOx5mLrZz+exr18QYwmLaUIfcmPOnBw5BA9DOLblo/sGVP4P+6sXqHpLL0im7dNkg66hS0GJkAos8pJMtvANfR+R4JdvGs29+gCwh9SU2156Q3m5a5Plmyq5BBqU1FpGunmofo5zYDhykYP7QPZsJXvu08JBv9rr0PAQVuUFmg2Ze0wfsqfsRvdjswZLOtVCCgAQYKLr06ttyeUW5I+TlHWLrUPbVfEZT5l+g03W8/iTKJvc8PVhVK//xbvkk9n1typ4fenAqiWBUvV11ML/JL7ktfw1zhD8D9WAgVTQPpJZtpWSK4pFjAMSF2s4SGkZm+VgsCm+ZKW5e9f3Wb87amL9shWM22k2xBZxT/2HwCS/xZzlZYJxPyEQIPhAwnfU6xHnyxmeu8eeT2PnVwAs1dbaFc75B/z/MitgyJL/EjCKFXmWmv9Bruc0Z9y3ZAwOdI1b8EGrc9zQy3cRren+P80XUGXSbGOkpwDdIlX4z/9aaSTMG3B8kAOgBdRVwthJmV1GwjNY+cEo+G4R1QN2Rf1DMGFBwc8blkhr9O8kh3Gi4PqFIcGmnX2ANZsQM18tBwOGWgkCAwEAAQ==\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-c2gvbr/providers/Microsoft.Kubernetes/connectedClusters/connaks-p3mbhq\",\"name\":\"connaks-p3mbhq\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T07:48:14.3302923Z\",\"lastModifiedBy\":\"64b12d6e-6549-484c-8cc6-6281839ba394\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-02-19T07:48:21.3804263Z\"},\"identity\":{\"principalId\":\"358f8ec9-c366-4ce2-ba17-6da0ea7344cd\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAyyvFnT/Ex8Ewt4pUQ2tBk1h88nObkqfzcFbW7RxrDbFO6EzL92CZOxIzbbUZgM3ZTjAzZg+SugBMIROX9Zo7vLlI+1mLvxwh1hsevNIQejqw7ibAPWBcJMH4Afqt+MlmAxelXduEny0Nhu9o2O2B3a7Vl4aUturVND+/ybIBiboAMHkh785QuV9ieBMiIlJyaaALk8cTlXcsh1uO8ZN8pfmp2VBNct04a23sllJ/7KDklwYuFr/8VUVpsbsEWOqOb8xVLj/QnshedpDKUitemS9BeGJYjWdOn8SkZemMYGJXCjAsMfMileOuIIGidkE049zNfHJKlpNBNw6oTx9/ypPFj417WGYvctpl/bpWBjvCm/S4fZ3b+9NlLQ4noksRCSQuiIqrS3eps9jLRYWj+Zc51LvtiDSykty9nLEjdW6fJHEHQADOUhhsvj9qIj+e8zeboucBTNQCoiNHGJ6Ra6BiEFBz5nvvIuFNcbPUIkrXSvbfV6gY1vREBSPgeDpRkEN+WhIZX1BOM2VIkKCZoz5NbC9IpVPoQoIS0xKoCidt5KN9yinSGp/rAu4n9ciMNUHFCV+USp4FBR55PY9ht4z6Y92kaUoc3tZYcv943fMkuXRHSVW1FX6GId6Sp9iWS1gnca/GhnxxFCyNAQPcYYKWfMjF/83d3PDqLx6qB8kCAwEAAQ==\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-vq7er3\",\"name\":\"connaks-vq7er3\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T08:00:14.4893244Z\",\"lastModifiedBy\":\"64b12d6e-6549-484c-8cc6-6281839ba394\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-02-19T08:00:22.2574251Z\"},\"identity\":{\"principalId\":\"0c6d6066-551b-4c48-bcba-b0a7e6052cf3\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAwekldOdIGXCp40pKZ3HXC9h0Cs0R2HqwwbaiN2MAZyrvIangAAhsxDr9wa1u0hVK7fn/MB0G33WFvI8qUFVPytq8ttY277pIBAn3iKuIMvWJghlHSAKcxn4JOelCaeQnLlhsRey1r6I0UEw2wOOGJ/lPVzZhsWxI2EXVJsQszE42KG1F0BhQSYSo/ZgsVXaCxoSH0QXigoYOi7GonbPmKrkeR8XB/XCVyWWk0hc6g+IOsqVcm/+leDMAoDI0d9uMzu4YzlcfZ7HNJWqQ/ap+imAR33xHMf5XeAfLa6YU2mkTVOJEatIOKyxFNv6SEyqdDns+du2fXrZyQXyYqZw6c+PpHMgg9fPggGAFozrKae4vT/Wh/dqKo4UjfxpGxxn2BQah6xceSYMmNEUGxxGkAShtMTSgxINUlRa1z8gt2GjEEDf+P8xqnq8KkQTocyXecArZuoIq0Z6cwsyNVeIvrG2IINWCAtcbZybpuplrpksxp8BFxG6gpEl0o6N4oVl52irEUmmmKceM949mGzm4gRZIdYuO1+eLXTbj5AF09C4vcGZ0Wj7ERUvLQfWEz6XmfVk3lFa/Yv0d+zZRRDFw6T84ysIbwjE/sssz4zUc8v+fwquK+jkmi/QJLm8AN3DFYU0P+hVa1jUbzJxEt6mIfXCVjkDzbKj9Etggw54d7FkCAwEAAQ==\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-fbic7z\",\"name\":\"connaks-fbic7z\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T08:00:56.7061495Z\",\"lastModifiedBy\":\"64b12d6e-6549-484c-8cc6-6281839ba394\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-02-19T08:01:03.9117813Z\"},\"identity\":{\"principalId\":\"a03efef7-8d7b-40ca-89a5-9403acad5cf2\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAtmi+lKYRuCAXzDvYV1LB9GMXjur8zllRUolAP+mUAvh+nV0C53QkTa53VI3MvuE/X8PVZ0Y4dntBZsSIBKBU0xw/Dtg7gijaMoOWuOif/JcYA03jMAQNt2qC+DqeEOsHEuJZ5uF4yWDH6TjHNWs3UItjtosa1v8WSAxPr0JUao4wwCyvYoegRvBADpGSs2xXjK5CxaxxvdyVxPZD4yusbbzFKwve44XmQZqP83uJdIKsAgZDSTn14cxlILqKY9QOix0LYukckyFw1yNGQlQElqcELFKtuB3MQm7cU6msTnb2MUbR0xGcgWfHrfyfw2wOAG3z2UuV8ymJK0ZdSlg1j2OYATz9GOoqwtq1uF8Cf8BpTri/wrXCOy0gjq8/Ki5nA86SjoiBid96lzxJWDoXvbqLtNkHd3sPX4uOtTd6U+Qyghu47cQrCfvsc4swDTXr1A784O7NE6FLKO1mCr9XnyHeBVtubXt6m4qgasPKMmvQmdZ9rPylu3ehvwZOei12deJqBaFJHNtjFW0x3rNJhzC9W4S/bPNJq3peB5i/c4r4gDIUqHhsk4dGJ9rIrEsgB1VMx2j/qhY1ZKuTWrvw03ryjxbY8YY3UPR86TQgHdfp18BOv9ibEakIsEdG60yIkPdBdqNsteQvV58YhgdU2qRHw4weLEAc/3AdNBoN0GUCAwEAAQ==\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-axi04f\",\"name\":\"connaks-axi04f\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T08:05:10.2254871Z\",\"lastModifiedBy\":\"64b12d6e-6549-484c-8cc6-6281839ba394\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-02-19T08:05:18.5479471Z\"},\"identity\":{\"principalId\":\"daff3ea0-381c-4b8f-9318-43a78590a91f\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEA032bTmAoPoPOztxzUg2giqZmnOELmmEasIU7O4H3k6PeSImDonlTdJeBQb6+qay8KYOTmWca9FPilmvQVWperHNlKVc30reU38isrvdZu55hlC4b/XQMDh+0mUzaa05SpgvZ2ExyO52bjfxDvFNO/HMzR0vsJv+jjWjt++y0qguHFoBuk3F5tlvcrA+lJrwmWA1EeekaPLJqcJNjdllrfc6GOQfkNAHFFbpH2HepYjD5q9ocglcnD8Qag8llLGNkoN9F1+orw7FI1qOiZNdfNrxdZ4OZqXWXmYyjYA/uu4OpqPbUsTBbpHlS4LrOekcWx2Tut+AuBuzFXFFoH3sxm0meyYbMNzSZnlzPiMNuLNC5AmSoW6vrDvEyEga3FYDSINkIE9PHoM8BRb2Wb4kZly8KuKonEvQG/960TQaIIFHynQFqxsnonbqXPfoDJvocjCGheaKaBIjsnT8CzC/+DZ2cC8R4vOwAIPO2LNoKWEjmNL90Dcxa5Rr7aR48P7NB0KXEIEqcgB57dELnS/KtMaBgMFlvl3NST2fJFiS8l3hjtYJKS+XK0IPSO9xHNrlQozs8rXXXiS0LpPBfGSt4bajHFKnLwg5OewLsgAR20mKgLqrBH3miQMl/plcGVLvJpS93muc/V8oNKF1Ape0W3rT+EDvFHJowcTx3nvoAKIkCAwEAAQ==\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-346ipq\",\"name\":\"connaks-346ipq\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T08:06:02.3515151Z\",\"lastModifiedBy\":\"64b12d6e-6549-484c-8cc6-6281839ba394\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-02-19T08:06:10.6224458Z\"},\"identity\":{\"principalId\":\"d7ab54d7-5ba6-4da6-b10f-633bbd45b75c\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAzFk04gfIE3HE4GN767kxJToUIDaPVczguCLmoF62DifXG23SZl0bu7D+mGYyYB93sIGhfGltWHYy4XRh7IzTvbMDouw45QTK1wDqEZCNwwyt1glEQCr/LeIgBkRxI4eq4efkRyU/rafhFz9clyLABTy8M7yXDrO2qs5FE2IZWoXO0+0LkjX8xoTdHZ5mxEyhqbBMquMHXwUbQs40ntBH8RkiA0TXs2PWe+p6x4jnhhLY/vSgi+31PV5MzDZQ1n8ikQ8oOWicfMx98jyql6XXsV4IJ90xQT6VZnP6na9/lclzTuWXhwbQWfccy0Qtyn6lst/9oCWYNjWzsUsSYsWwvAIdeZLPx1oMLrGOdsFTQRCjF+E2N8wIt+sdoyhHMSuxDCfivqcnKDSCWIr64aEov252NHhGclGjiWSjBedPW+vLsr4nwe2irhd6yWyesP5G9dEwn1YJgEZCo2PZWSa/iJLR1HPhyGbJrrI1d9KCGvMrWIikM7Ccl/Ed6si+8KFoDX+XeO77rqpxjFNkOHuom8CXGc5XNHSOJafMFB8tvGKlqW3CAvg5WvBuji68ZpKdO4Bo2ugR8pScmtl8p+bFnFyvoP2/Lg2EA1xBorzrI9fAZ7tzoo87IpBIYIWEqwPoqtMFfg9FQpVDdy+NIlz0xttlrFbPAfDenQXvfwL0vOkCAwEAAQ==\"}}]}", + "isContentBase64": false } }, - "Get-AzConnectedKubernetes+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters?api-version=2020-01-01-preview+1": { + "Get-AzConnectedKubernetes+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters?api-version=2021-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters?api-version=2020-01-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "10" ], - "x-ms-client-request-id": [ "cb430682-b14f-4cb1-9378-b7c6000b06fd" ], + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "fe4325bf-9788-460f-a6a1-853f4c9d56c6" ], "CommandName": [ "Get-AzConnectedKubernetes" ], "FullCommandName": [ "Get-AzConnectedKubernetes_List" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -60,31 +63,33 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], - "x-ms-request-id": [ "d9891f67-9873-4d9d-8f30-18b44ddc8854" ], - "x-ms-correlation-request-id": [ "5c24df9b-9d57-4401-b9a5-912f08fa2ff9" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-request-id": [ "3d3347b6-c145-4d91-92fc-10bff2125058" ], + "x-ms-correlation-request-id": [ "1f713c7d-9c20-4073-a4ab-5dae0add9e07" ], "Server": [ "Kestrel" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200615T022455Z:5c24df9b-9d57-4401-b9a5-912f08fa2ff9" ], + "x-ms-routing-request-id": [ "JAPANWEST:20210219T080725Z:1f713c7d-9c20-4073-a4ab-5dae0add9e07" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 15 Jun 2020 02:24:54 GMT" ] + "Date": [ "Fri, 19 Feb 2021 08:07:25 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2481" ], + "Content-Length": [ "5859" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-s25w9c\",\"name\":\"connaks-s25w9c\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"928ddda8-d0c8-4305-bb86-bf23b563de80\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAm/3yDiP5tp78mOXB/vKO6w80pKIEbUfdXsq70i/ssv7N22oMbF+lxOJydclwKrB2jekN+S3lfJd8HfQBnqycsOHEPqVLupN3VGiipKpJekthOeTSRAgFF3t6rc5e9Js/LBg0zfJlVMTni3sV4VU8wS9AGpOIM7CX6ctWgsi/5xkxm3dTpynnuho+s9FdJokkoohWkB1fF/0hMgBBKgtZIKRB343Mkk/2meunnqy5O+E2/IIQf00gf14b7vLKxAY/OdQSgpoD0LIUGNz93K4FQaI33i1GjJWdjPzOtHAI2GZUuiVu4mM/v9DtUABwQefiK05u9vqtejWfoUzG6TNHxpjYv/pFguDNmPwDHzPhxb4XvwmX82qVDVYQBZhGmAcEIrgJ1XUTfy/f7WPh0OBTi+T995pQS87YSMSXbGTvzooSypac2YA18zCBCo3mSDhMGblvKHfvKAszSYQCEQ/WR3D0jbhxaNKU/nk+hkcbtWQvYvdzZ5dxkEfi7K+CHFGjN7owf1veTl8fCbCPS1MVgJGi5M477u6K4k04SOI9IACOcwpi1vkyTupEypzJyMb+mZG4+VkhZMKSIbeUkG9KWDz+q3VnuD9OW0138iME9AXGulHiB8wr7GgBXoOJIzdF3l11CcZMRYdgG1vIR8BQn6LdgyEz7ueFHVSNSq3Twc0CAwEAAQ==\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"}}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-ep8b1c\",\"name\":\"connaks-ep8b1c\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"91ac6d50-da2c-4621-890a-b4de9a199c98\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAqihH1cAkW/NV+Olp8/3fMYPUabrhqX2VLfPbv8FiIS+zBBFm+V85qn4QuFu0pIkMYLxbbOfwb2vEqFHu+x82LS/8YoMkgoDNmywG7wuKeSuKQC627cLL47DLPRsdsD8wI7IkkxVDUF3bczStRKp89YaTQvPT/kHSu7jYH/K7ViwKH34/ftY8iGz7yjpGVglYW6qDZ8x4PcE2uZsmgY/v86G5h8kcidOW3GsGtABw7v1ZTPi4wyYVWFrrvt45ZOQV8TMqz7adCNhDDRfo7xcrSqOp0bvib5l5SHh+4+PNPvcda7aRnZEA/mVqKU5KnlqAUOPaWNi3O9SfeXgt63Y73jbGYcPJREPEJeR1om3JEkJLM2BqbRqntW5+LpJv/l/XKsAnFD5XJEd0QEnN4nKs++huTPorPOBpqRbe5yoKI0m+JUlpGX1C2A+gAJS1GCqY+HkjkxtfZmCiOT8MwVWPOv7iM0NHn7RrFAXWLkKjmHtuNsI/hOR/YcIrz4qBFH8KGohhAESAZiN8GySpsDwYk3XXsKa2FdcPy28Kpyrhn13Nk5y8+AV5fy3/kUsD32PqJbfA3vJh/WiPgviHs2k5XehJlVh8K/vN6aA/sxNXKyFvoN1C9XQ4ZGpxwisJ0tk5DEhnnwmuYOwh1baH9cfUKQkQ/ESK8Fuy/CicBf3ZYv0CAwEAAQ==\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"}}}]}" + "Content": "{\"value\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-vq7er3\",\"name\":\"connaks-vq7er3\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T08:00:14.4893244Z\",\"lastModifiedBy\":\"64b12d6e-6549-484c-8cc6-6281839ba394\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-02-19T08:00:22.2574251Z\"},\"identity\":{\"principalId\":\"0c6d6066-551b-4c48-bcba-b0a7e6052cf3\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAwekldOdIGXCp40pKZ3HXC9h0Cs0R2HqwwbaiN2MAZyrvIangAAhsxDr9wa1u0hVK7fn/MB0G33WFvI8qUFVPytq8ttY277pIBAn3iKuIMvWJghlHSAKcxn4JOelCaeQnLlhsRey1r6I0UEw2wOOGJ/lPVzZhsWxI2EXVJsQszE42KG1F0BhQSYSo/ZgsVXaCxoSH0QXigoYOi7GonbPmKrkeR8XB/XCVyWWk0hc6g+IOsqVcm/+leDMAoDI0d9uMzu4YzlcfZ7HNJWqQ/ap+imAR33xHMf5XeAfLa6YU2mkTVOJEatIOKyxFNv6SEyqdDns+du2fXrZyQXyYqZw6c+PpHMgg9fPggGAFozrKae4vT/Wh/dqKo4UjfxpGxxn2BQah6xceSYMmNEUGxxGkAShtMTSgxINUlRa1z8gt2GjEEDf+P8xqnq8KkQTocyXecArZuoIq0Z6cwsyNVeIvrG2IINWCAtcbZybpuplrpksxp8BFxG6gpEl0o6N4oVl52irEUmmmKceM949mGzm4gRZIdYuO1+eLXTbj5AF09C4vcGZ0Wj7ERUvLQfWEz6XmfVk3lFa/Yv0d+zZRRDFw6T84ysIbwjE/sssz4zUc8v+fwquK+jkmi/QJLm8AN3DFYU0P+hVa1jUbzJxEt6mIfXCVjkDzbKj9Etggw54d7FkCAwEAAQ==\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-fbic7z\",\"name\":\"connaks-fbic7z\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T08:00:56.7061495Z\",\"lastModifiedBy\":\"64b12d6e-6549-484c-8cc6-6281839ba394\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-02-19T08:01:03.9117813Z\"},\"identity\":{\"principalId\":\"a03efef7-8d7b-40ca-89a5-9403acad5cf2\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAtmi+lKYRuCAXzDvYV1LB9GMXjur8zllRUolAP+mUAvh+nV0C53QkTa53VI3MvuE/X8PVZ0Y4dntBZsSIBKBU0xw/Dtg7gijaMoOWuOif/JcYA03jMAQNt2qC+DqeEOsHEuJZ5uF4yWDH6TjHNWs3UItjtosa1v8WSAxPr0JUao4wwCyvYoegRvBADpGSs2xXjK5CxaxxvdyVxPZD4yusbbzFKwve44XmQZqP83uJdIKsAgZDSTn14cxlILqKY9QOix0LYukckyFw1yNGQlQElqcELFKtuB3MQm7cU6msTnb2MUbR0xGcgWfHrfyfw2wOAG3z2UuV8ymJK0ZdSlg1j2OYATz9GOoqwtq1uF8Cf8BpTri/wrXCOy0gjq8/Ki5nA86SjoiBid96lzxJWDoXvbqLtNkHd3sPX4uOtTd6U+Qyghu47cQrCfvsc4swDTXr1A784O7NE6FLKO1mCr9XnyHeBVtubXt6m4qgasPKMmvQmdZ9rPylu3ehvwZOei12deJqBaFJHNtjFW0x3rNJhzC9W4S/bPNJq3peB5i/c4r4gDIUqHhsk4dGJ9rIrEsgB1VMx2j/qhY1ZKuTWrvw03ryjxbY8YY3UPR86TQgHdfp18BOv9ibEakIsEdG60yIkPdBdqNsteQvV58YhgdU2qRHw4weLEAc/3AdNBoN0GUCAwEAAQ==\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-axi04f\",\"name\":\"connaks-axi04f\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T08:05:10.2254871Z\",\"lastModifiedBy\":\"64b12d6e-6549-484c-8cc6-6281839ba394\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-02-19T08:05:18.5479471Z\"},\"identity\":{\"principalId\":\"daff3ea0-381c-4b8f-9318-43a78590a91f\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEA032bTmAoPoPOztxzUg2giqZmnOELmmEasIU7O4H3k6PeSImDonlTdJeBQb6+qay8KYOTmWca9FPilmvQVWperHNlKVc30reU38isrvdZu55hlC4b/XQMDh+0mUzaa05SpgvZ2ExyO52bjfxDvFNO/HMzR0vsJv+jjWjt++y0qguHFoBuk3F5tlvcrA+lJrwmWA1EeekaPLJqcJNjdllrfc6GOQfkNAHFFbpH2HepYjD5q9ocglcnD8Qag8llLGNkoN9F1+orw7FI1qOiZNdfNrxdZ4OZqXWXmYyjYA/uu4OpqPbUsTBbpHlS4LrOekcWx2Tut+AuBuzFXFFoH3sxm0meyYbMNzSZnlzPiMNuLNC5AmSoW6vrDvEyEga3FYDSINkIE9PHoM8BRb2Wb4kZly8KuKonEvQG/960TQaIIFHynQFqxsnonbqXPfoDJvocjCGheaKaBIjsnT8CzC/+DZ2cC8R4vOwAIPO2LNoKWEjmNL90Dcxa5Rr7aR48P7NB0KXEIEqcgB57dELnS/KtMaBgMFlvl3NST2fJFiS8l3hjtYJKS+XK0IPSO9xHNrlQozs8rXXXiS0LpPBfGSt4bajHFKnLwg5OewLsgAR20mKgLqrBH3miQMl/plcGVLvJpS93muc/V8oNKF1Ape0W3rT+EDvFHJowcTx3nvoAKIkCAwEAAQ==\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-346ipq\",\"name\":\"connaks-346ipq\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T08:06:02.3515151Z\",\"lastModifiedBy\":\"64b12d6e-6549-484c-8cc6-6281839ba394\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-02-19T08:06:10.6224458Z\"},\"identity\":{\"principalId\":\"d7ab54d7-5ba6-4da6-b10f-633bbd45b75c\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAzFk04gfIE3HE4GN767kxJToUIDaPVczguCLmoF62DifXG23SZl0bu7D+mGYyYB93sIGhfGltWHYy4XRh7IzTvbMDouw45QTK1wDqEZCNwwyt1glEQCr/LeIgBkRxI4eq4efkRyU/rafhFz9clyLABTy8M7yXDrO2qs5FE2IZWoXO0+0LkjX8xoTdHZ5mxEyhqbBMquMHXwUbQs40ntBH8RkiA0TXs2PWe+p6x4jnhhLY/vSgi+31PV5MzDZQ1n8ikQ8oOWicfMx98jyql6XXsV4IJ90xQT6VZnP6na9/lclzTuWXhwbQWfccy0Qtyn6lst/9oCWYNjWzsUsSYsWwvAIdeZLPx1oMLrGOdsFTQRCjF+E2N8wIt+sdoyhHMSuxDCfivqcnKDSCWIr64aEov252NHhGclGjiWSjBedPW+vLsr4nwe2irhd6yWyesP5G9dEwn1YJgEZCo2PZWSa/iJLR1HPhyGbJrrI1d9KCGvMrWIikM7Ccl/Ed6si+8KFoDX+XeO77rqpxjFNkOHuom8CXGc5XNHSOJafMFB8tvGKlqW3CAvg5WvBuji68ZpKdO4Bo2ugR8pScmtl8p+bFnFyvoP2/Lg2EA1xBorzrI9fAZ7tzoo87IpBIYIWEqwPoqtMFfg9FQpVDdy+NIlz0xttlrFbPAfDenQXvfwL0vOkCAwEAAQ==\"}}]}", + "isContentBase64": false } }, - "Get-AzConnectedKubernetes+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-s25w9c?api-version=2020-01-01-preview+1": { + "Get-AzConnectedKubernetes+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-vq7er3?api-version=2021-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-s25w9c?api-version=2020-01-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-vq7er3?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "11" ], - "x-ms-client-request-id": [ "8e65f4b9-18bb-44a5-bb09-45b1ce9ff0cf" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "f2f730df-8f46-443e-a853-a46a02963275" ], "CommandName": [ "Get-AzConnectedKubernetes" ], "FullCommandName": [ "Get-AzConnectedKubernetes_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -99,31 +104,34 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], - "x-ms-request-id": [ "1f5633e2-51e3-497f-8e39-990a9ef7ae1a" ], - "x-ms-correlation-request-id": [ "1c1925af-022e-43f1-9ef8-1ce204fa4312" ], + "ETag": [ "\"3700a48d-0000-0100-0000-602f701b0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-request-id": [ "dfa5f2ed-6b3b-4223-85f2-6043390d9efc" ], + "x-ms-correlation-request-id": [ "7231e3f2-ff98-4147-9532-076ef0edbd38" ], "Server": [ "Kestrel" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200615T022456Z:1c1925af-022e-43f1-9ef8-1ce204fa4312" ], + "x-ms-routing-request-id": [ "JAPANWEST:20210219T080725Z:7231e3f2-ff98-4147-9532-076ef0edbd38" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 15 Jun 2020 02:24:55 GMT" ] + "Date": [ "Fri, 19 Feb 2021 08:07:25 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1234" ], + "Content-Length": [ "1461" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-s25w9c\",\"name\":\"connaks-s25w9c\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"928ddda8-d0c8-4305-bb86-bf23b563de80\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAm/3yDiP5tp78mOXB/vKO6w80pKIEbUfdXsq70i/ssv7N22oMbF+lxOJydclwKrB2jekN+S3lfJd8HfQBnqycsOHEPqVLupN3VGiipKpJekthOeTSRAgFF3t6rc5e9Js/LBg0zfJlVMTni3sV4VU8wS9AGpOIM7CX6ctWgsi/5xkxm3dTpynnuho+s9FdJokkoohWkB1fF/0hMgBBKgtZIKRB343Mkk/2meunnqy5O+E2/IIQf00gf14b7vLKxAY/OdQSgpoD0LIUGNz93K4FQaI33i1GjJWdjPzOtHAI2GZUuiVu4mM/v9DtUABwQefiK05u9vqtejWfoUzG6TNHxpjYv/pFguDNmPwDHzPhxb4XvwmX82qVDVYQBZhGmAcEIrgJ1XUTfy/f7WPh0OBTi+T995pQS87YSMSXbGTvzooSypac2YA18zCBCo3mSDhMGblvKHfvKAszSYQCEQ/WR3D0jbhxaNKU/nk+hkcbtWQvYvdzZ5dxkEfi7K+CHFGjN7owf1veTl8fCbCPS1MVgJGi5M477u6K4k04SOI9IACOcwpi1vkyTupEypzJyMb+mZG4+VkhZMKSIbeUkG9KWDz+q3VnuD9OW0138iME9AXGulHiB8wr7GgBXoOJIzdF3l11CcZMRYdgG1vIR8BQn6LdgyEz7ueFHVSNSq3Twc0CAwEAAQ==\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"}}}" + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-vq7er3\",\"name\":\"connaks-vq7er3\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T08:00:14.4893244Z\",\"lastModifiedBy\":\"64b12d6e-6549-484c-8cc6-6281839ba394\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-02-19T08:00:22.2574251Z\"},\"identity\":{\"principalId\":\"0c6d6066-551b-4c48-bcba-b0a7e6052cf3\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAwekldOdIGXCp40pKZ3HXC9h0Cs0R2HqwwbaiN2MAZyrvIangAAhsxDr9wa1u0hVK7fn/MB0G33WFvI8qUFVPytq8ttY277pIBAn3iKuIMvWJghlHSAKcxn4JOelCaeQnLlhsRey1r6I0UEw2wOOGJ/lPVzZhsWxI2EXVJsQszE42KG1F0BhQSYSo/ZgsVXaCxoSH0QXigoYOi7GonbPmKrkeR8XB/XCVyWWk0hc6g+IOsqVcm/+leDMAoDI0d9uMzu4YzlcfZ7HNJWqQ/ap+imAR33xHMf5XeAfLa6YU2mkTVOJEatIOKyxFNv6SEyqdDns+du2fXrZyQXyYqZw6c+PpHMgg9fPggGAFozrKae4vT/Wh/dqKo4UjfxpGxxn2BQah6xceSYMmNEUGxxGkAShtMTSgxINUlRa1z8gt2GjEEDf+P8xqnq8KkQTocyXecArZuoIq0Z6cwsyNVeIvrG2IINWCAtcbZybpuplrpksxp8BFxG6gpEl0o6N4oVl52irEUmmmKceM949mGzm4gRZIdYuO1+eLXTbj5AF09C4vcGZ0Wj7ERUvLQfWEz6XmfVk3lFa/Yv0d+zZRRDFw6T84ysIbwjE/sssz4zUc8v+fwquK+jkmi/QJLm8AN3DFYU0P+hVa1jUbzJxEt6mIfXCVjkDzbKj9Etggw54d7FkCAwEAAQ==\"}}", + "isContentBase64": false } }, - "Get-AzConnectedKubernetes+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-ep8b1c?api-version=2020-01-01-preview+1": { + "Get-AzConnectedKubernetes+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-fbic7z?api-version=2021-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-ep8b1c?api-version=2020-01-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-fbic7z?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "12" ], - "x-ms-client-request-id": [ "17b98b55-836d-4094-84c8-e3c3cb8eef6e" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "2709a774-c465-42fa-8809-c5142a68ad7b" ], "CommandName": [ "Get-AzConnectedKubernetes" ], "FullCommandName": [ "Get-AzConnectedKubernetes_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -138,31 +146,34 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], - "x-ms-request-id": [ "e0406dec-f4ee-4e93-9ed3-a7f30e04d3e8" ], - "x-ms-correlation-request-id": [ "9e8ff2fe-1ec5-485f-86fc-9618fade510d" ], + "ETag": [ "\"3700cb8d-0000-0100-0000-602f70460000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-request-id": [ "fe857744-2483-45cd-be89-b055326a0959" ], + "x-ms-correlation-request-id": [ "719d7c03-dbc3-45e4-b1a0-5d25adeebebe" ], "Server": [ "Kestrel" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200615T022456Z:9e8ff2fe-1ec5-485f-86fc-9618fade510d" ], + "x-ms-routing-request-id": [ "JAPANWEST:20210219T080726Z:719d7c03-dbc3-45e4-b1a0-5d25adeebebe" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 15 Jun 2020 02:24:56 GMT" ] + "Date": [ "Fri, 19 Feb 2021 08:07:25 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1234" ], + "Content-Length": [ "1461" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-ep8b1c\",\"name\":\"connaks-ep8b1c\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"91ac6d50-da2c-4621-890a-b4de9a199c98\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAqihH1cAkW/NV+Olp8/3fMYPUabrhqX2VLfPbv8FiIS+zBBFm+V85qn4QuFu0pIkMYLxbbOfwb2vEqFHu+x82LS/8YoMkgoDNmywG7wuKeSuKQC627cLL47DLPRsdsD8wI7IkkxVDUF3bczStRKp89YaTQvPT/kHSu7jYH/K7ViwKH34/ftY8iGz7yjpGVglYW6qDZ8x4PcE2uZsmgY/v86G5h8kcidOW3GsGtABw7v1ZTPi4wyYVWFrrvt45ZOQV8TMqz7adCNhDDRfo7xcrSqOp0bvib5l5SHh+4+PNPvcda7aRnZEA/mVqKU5KnlqAUOPaWNi3O9SfeXgt63Y73jbGYcPJREPEJeR1om3JEkJLM2BqbRqntW5+LpJv/l/XKsAnFD5XJEd0QEnN4nKs++huTPorPOBpqRbe5yoKI0m+JUlpGX1C2A+gAJS1GCqY+HkjkxtfZmCiOT8MwVWPOv7iM0NHn7RrFAXWLkKjmHtuNsI/hOR/YcIrz4qBFH8KGohhAESAZiN8GySpsDwYk3XXsKa2FdcPy28Kpyrhn13Nk5y8+AV5fy3/kUsD32PqJbfA3vJh/WiPgviHs2k5XehJlVh8K/vN6aA/sxNXKyFvoN1C9XQ4ZGpxwisJ0tk5DEhnnwmuYOwh1baH9cfUKQkQ/ESK8Fuy/CicBf3ZYv0CAwEAAQ==\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"}}}" + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-fbic7z\",\"name\":\"connaks-fbic7z\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T08:00:56.7061495Z\",\"lastModifiedBy\":\"64b12d6e-6549-484c-8cc6-6281839ba394\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-02-19T08:01:03.9117813Z\"},\"identity\":{\"principalId\":\"a03efef7-8d7b-40ca-89a5-9403acad5cf2\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAtmi+lKYRuCAXzDvYV1LB9GMXjur8zllRUolAP+mUAvh+nV0C53QkTa53VI3MvuE/X8PVZ0Y4dntBZsSIBKBU0xw/Dtg7gijaMoOWuOif/JcYA03jMAQNt2qC+DqeEOsHEuJZ5uF4yWDH6TjHNWs3UItjtosa1v8WSAxPr0JUao4wwCyvYoegRvBADpGSs2xXjK5CxaxxvdyVxPZD4yusbbzFKwve44XmQZqP83uJdIKsAgZDSTn14cxlILqKY9QOix0LYukckyFw1yNGQlQElqcELFKtuB3MQm7cU6msTnb2MUbR0xGcgWfHrfyfw2wOAG3z2UuV8ymJK0ZdSlg1j2OYATz9GOoqwtq1uF8Cf8BpTri/wrXCOy0gjq8/Ki5nA86SjoiBid96lzxJWDoXvbqLtNkHd3sPX4uOtTd6U+Qyghu47cQrCfvsc4swDTXr1A784O7NE6FLKO1mCr9XnyHeBVtubXt6m4qgasPKMmvQmdZ9rPylu3ehvwZOei12deJqBaFJHNtjFW0x3rNJhzC9W4S/bPNJq3peB5i/c4r4gDIUqHhsk4dGJ9rIrEsgB1VMx2j/qhY1ZKuTWrvw03ryjxbY8YY3UPR86TQgHdfp18BOv9ibEakIsEdG60yIkPdBdqNsteQvV58YhgdU2qRHw4weLEAc/3AdNBoN0GUCAwEAAQ==\"}}", + "isContentBase64": false } }, - "Get-AzConnectedKubernetes+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-ep8b1c?api-version=2020-01-01-preview+2": { + "Get-AzConnectedKubernetes+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-fbic7z?api-version=2021-03-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-ep8b1c?api-version=2020-01-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-fbic7z?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "13" ], - "x-ms-client-request-id": [ "f095472e-4a3c-4f65-81de-86cb51ca8385" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "87b2bf41-c722-49dd-9e74-cda519995e51" ], "CommandName": [ "Get-AzConnectedKubernetes" ], "FullCommandName": [ "Get-AzConnectedKubernetes_GetViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -177,21 +188,23 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], - "x-ms-request-id": [ "94ec463f-7228-44d0-9ac0-1ba3c23bda55" ], - "x-ms-correlation-request-id": [ "e8c8ae31-2a74-4b22-8975-59667e537aa7" ], + "ETag": [ "\"3700cb8d-0000-0100-0000-602f70460000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-request-id": [ "ce7355e1-3f9f-4730-b340-24111a90f7d0" ], + "x-ms-correlation-request-id": [ "9134248e-c94f-48f7-9321-5595bb27ec2f" ], "Server": [ "Kestrel" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200615T022457Z:e8c8ae31-2a74-4b22-8975-59667e537aa7" ], + "x-ms-routing-request-id": [ "JAPANWEST:20210219T080726Z:9134248e-c94f-48f7-9321-5595bb27ec2f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 15 Jun 2020 02:24:56 GMT" ] + "Date": [ "Fri, 19 Feb 2021 08:07:26 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1234" ], + "Content-Length": [ "1461" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-ep8b1c\",\"name\":\"connaks-ep8b1c\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"91ac6d50-da2c-4621-890a-b4de9a199c98\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAqihH1cAkW/NV+Olp8/3fMYPUabrhqX2VLfPbv8FiIS+zBBFm+V85qn4QuFu0pIkMYLxbbOfwb2vEqFHu+x82LS/8YoMkgoDNmywG7wuKeSuKQC627cLL47DLPRsdsD8wI7IkkxVDUF3bczStRKp89YaTQvPT/kHSu7jYH/K7ViwKH34/ftY8iGz7yjpGVglYW6qDZ8x4PcE2uZsmgY/v86G5h8kcidOW3GsGtABw7v1ZTPi4wyYVWFrrvt45ZOQV8TMqz7adCNhDDRfo7xcrSqOp0bvib5l5SHh+4+PNPvcda7aRnZEA/mVqKU5KnlqAUOPaWNi3O9SfeXgt63Y73jbGYcPJREPEJeR1om3JEkJLM2BqbRqntW5+LpJv/l/XKsAnFD5XJEd0QEnN4nKs++huTPorPOBpqRbe5yoKI0m+JUlpGX1C2A+gAJS1GCqY+HkjkxtfZmCiOT8MwVWPOv7iM0NHn7RrFAXWLkKjmHtuNsI/hOR/YcIrz4qBFH8KGohhAESAZiN8GySpsDwYk3XXsKa2FdcPy28Kpyrhn13Nk5y8+AV5fy3/kUsD32PqJbfA3vJh/WiPgviHs2k5XehJlVh8K/vN6aA/sxNXKyFvoN1C9XQ4ZGpxwisJ0tk5DEhnnwmuYOwh1baH9cfUKQkQ/ESK8Fuy/CicBf3ZYv0CAwEAAQ==\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"}}}" + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-fbic7z\",\"name\":\"connaks-fbic7z\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T08:00:56.7061495Z\",\"lastModifiedBy\":\"64b12d6e-6549-484c-8cc6-6281839ba394\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-02-19T08:01:03.9117813Z\"},\"identity\":{\"principalId\":\"a03efef7-8d7b-40ca-89a5-9403acad5cf2\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAtmi+lKYRuCAXzDvYV1LB9GMXjur8zllRUolAP+mUAvh+nV0C53QkTa53VI3MvuE/X8PVZ0Y4dntBZsSIBKBU0xw/Dtg7gijaMoOWuOif/JcYA03jMAQNt2qC+DqeEOsHEuJZ5uF4yWDH6TjHNWs3UItjtosa1v8WSAxPr0JUao4wwCyvYoegRvBADpGSs2xXjK5CxaxxvdyVxPZD4yusbbzFKwve44XmQZqP83uJdIKsAgZDSTn14cxlILqKY9QOix0LYukckyFw1yNGQlQElqcELFKtuB3MQm7cU6msTnb2MUbR0xGcgWfHrfyfw2wOAG3z2UuV8ymJK0ZdSlg1j2OYATz9GOoqwtq1uF8Cf8BpTri/wrXCOy0gjq8/Ki5nA86SjoiBid96lzxJWDoXvbqLtNkHd3sPX4uOtTd6U+Qyghu47cQrCfvsc4swDTXr1A784O7NE6FLKO1mCr9XnyHeBVtubXt6m4qgasPKMmvQmdZ9rPylu3ehvwZOei12deJqBaFJHNtjFW0x3rNJhzC9W4S/bPNJq3peB5i/c4r4gDIUqHhsk4dGJ9rIrEsgB1VMx2j/qhY1ZKuTWrvw03ryjxbY8YY3UPR86TQgHdfp18BOv9ibEakIsEdG60yIkPdBdqNsteQvV58YhgdU2qRHw4weLEAc/3AdNBoN0GUCAwEAAQ==\"}}", + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/ConnectedKubernetes/test/New-AzConnectedKubernetes.Recording.json b/src/ConnectedKubernetes/test/New-AzConnectedKubernetes.Recording.json index b631bdffe0c4..c74740c76e68 100644 --- a/src/ConnectedKubernetes/test/New-AzConnectedKubernetes.Recording.json +++ b/src/ConnectedKubernetes/test/New-AzConnectedKubernetes.Recording.json @@ -1,14 +1,15 @@ { - "New-AzConnectedKubernetes+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-deq5jb?api-version=2020-01-01-preview+1": { + "New-AzConnectedKubernetes+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-axi04f?api-version=2021-03-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-deq5jb?api-version=2020-01-01-preview", - "Content": "{\n \"location\": \"eastus\",\n \"identity\": {\n \"type\": \"SystemAssigned\"\n },\n \"properties\": {\n \"aadProfile\": {\n \"clientAppId\": \"\",\n \"serverAppId\": \"\",\n \"tenantId\": \"\"\n },\n \"agentPublicKeyCertificate\": \"MIICCgKCAgEAt6pHqmxsKsyoArEOEip33Ur3jKAvN53nOWB1Kjoxd/PnZCxaaesZIvdqEuX0K5AVdc+rTjrZE8ibLSEkzNtsjL4wncw8o0ze2sJ487eNrVebzJx3By3XEpTuGEbgDazvECrJtZxUZpiBKsQRFNuTArRF5dkFIyhHFKBbOTTyEjkXaFlI2Zyv3057jAnJL6txpJhxIu/lL2XDJCtVsQF8owpdVedAYroM1UxA6zcLOReHRdXfbbnChWBmog90Mgeyu1acWITGYnoAVi5vOts0P0kBF//YKVPXYqShegmWWzCwOQRWAg3KMkLrVUt66jUnYLpnhhHokdogbDcSNuT1KBCj16YGKWCcgXbWKBYR8sD2dYlIoAZsCnVScXTT5b65bRZBhW69p0jPjt4IgoArjB43hJb/kwEMh+GFE9ZSiS92qOyAWQ5WNEYimUH8lu3pvYIDoPZ2/eX6kz4Dv+pBPp251r5VJBRBvn3apLZ08QfgxjAnTgIJGOAt4Sz6g3ikmvdPHUPbPgEYymPBrxBIML8kOqL5LUeuMAA4i8B10NPU5AM7A0WJZX3TuQOyj5YNhhvztdVbAnbhPwSO1V3y6h9uv7ks27Krp7sLuLMIDangVb61hFkzI7Vm8WCgpSxrWVLSdx5z9dhtMoPdp5NZILUSiLsIuGfq9NpEGWgIZBUCAwEAAQ==\"\n }\n}", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-axi04f?api-version=2021-03-01", + "Content": "{\r\n \"location\": \"eastus\",\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"properties\": {\r\n \"agentPublicKeyCertificate\": \"MIICCgKCAgEA032bTmAoPoPOztxzUg2giqZmnOELmmEasIU7O4H3k6PeSImDonlTdJeBQb6+qay8KYOTmWca9FPilmvQVWperHNlKVc30reU38isrvdZu55hlC4b/XQMDh+0mUzaa05SpgvZ2ExyO52bjfxDvFNO/HMzR0vsJv+jjWjt++y0qguHFoBuk3F5tlvcrA+lJrwmWA1EeekaPLJqcJNjdllrfc6GOQfkNAHFFbpH2HepYjD5q9ocglcnD8Qag8llLGNkoN9F1+orw7FI1qOiZNdfNrxdZ4OZqXWXmYyjYA/uu4OpqPbUsTBbpHlS4LrOekcWx2Tut+AuBuzFXFFoH3sxm0meyYbMNzSZnlzPiMNuLNC5AmSoW6vrDvEyEga3FYDSINkIE9PHoM8BRb2Wb4kZly8KuKonEvQG/960TQaIIFHynQFqxsnonbqXPfoDJvocjCGheaKaBIjsnT8CzC/+DZ2cC8R4vOwAIPO2LNoKWEjmNL90Dcxa5Rr7aR48P7NB0KXEIEqcgB57dELnS/KtMaBgMFlvl3NST2fJFiS8l3hjtYJKS+XK0IPSO9xHNrlQozs8rXXXiS0LpPBfGSt4bajHFKnLwg5OewLsgAR20mKgLqrBH3miQMl/plcGVLvJpS93muc/V8oNKF1Ape0W3rT+EDvFHJowcTx3nvoAKIkCAwEAAQ==\"\r\n }\r\n}", + "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "937" ] + "Content-Length": [ "847" ] } }, "Response": { @@ -16,37 +17,40 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], - "Azure-AsyncOperation": [ "https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/06c01a15-6ce1-42de-b81e-edde285a37a2?api-version=2020-01-01-preview" ], - "x-ms-request-id": [ "06c01a15-6ce1-42de-b81e-edde285a37a2" ], - "x-ms-correlation-request-id": [ "a3598dbd-c43e-42b8-a8cd-5c772a1376f1" ], - "Server": [ "Kestrel" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200615T022539Z:a3598dbd-c43e-42b8-a8cd-5c772a1376f1" ], + "ETag": [ "\"3700cc8e-0000-0100-0000-602f71390000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Azure-AsyncOperation": [ "https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/81653651-f5f9-4259-8b90-096f0c923005?api-version=2021-03-01" ], + "x-ms-request-id": [ "81653651-f5f9-4259-8b90-096f0c923005" ], + "x-ms-correlation-request-id": [ "4cd5fde8-7e9d-4fa5-8e95-2260c31a694a" ], + "Server": [ "Kestrel" ], + "x-ms-routing-request-id": [ "JAPANWEST:20210219T080514Z:4cd5fde8-7e9d-4fa5-8e95-2260c31a694a" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 15 Jun 2020 02:25:39 GMT" ] + "Date": [ "Fri, 19 Feb 2021 08:05:14 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1233" ], + "Content-Length": [ "1438" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-deq5jb\",\"name\":\"connaks-deq5jb\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"d5cd956f-02f6-438e-bbd2-0fbf2345f0fb\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Accepted\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAt6pHqmxsKsyoArEOEip33Ur3jKAvN53nOWB1Kjoxd/PnZCxaaesZIvdqEuX0K5AVdc+rTjrZE8ibLSEkzNtsjL4wncw8o0ze2sJ487eNrVebzJx3By3XEpTuGEbgDazvECrJtZxUZpiBKsQRFNuTArRF5dkFIyhHFKBbOTTyEjkXaFlI2Zyv3057jAnJL6txpJhxIu/lL2XDJCtVsQF8owpdVedAYroM1UxA6zcLOReHRdXfbbnChWBmog90Mgeyu1acWITGYnoAVi5vOts0P0kBF//YKVPXYqShegmWWzCwOQRWAg3KMkLrVUt66jUnYLpnhhHokdogbDcSNuT1KBCj16YGKWCcgXbWKBYR8sD2dYlIoAZsCnVScXTT5b65bRZBhW69p0jPjt4IgoArjB43hJb/kwEMh+GFE9ZSiS92qOyAWQ5WNEYimUH8lu3pvYIDoPZ2/eX6kz4Dv+pBPp251r5VJBRBvn3apLZ08QfgxjAnTgIJGOAt4Sz6g3ikmvdPHUPbPgEYymPBrxBIML8kOqL5LUeuMAA4i8B10NPU5AM7A0WJZX3TuQOyj5YNhhvztdVbAnbhPwSO1V3y6h9uv7ks27Krp7sLuLMIDangVb61hFkzI7Vm8WCgpSxrWVLSdx5z9dhtMoPdp5NZILUSiLsIuGfq9NpEGWgIZBUCAwEAAQ==\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"}}}" + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-axi04f\",\"name\":\"connaks-axi04f\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T08:05:10.2254871Z\",\"lastModifiedBy\":\"v-lipyo@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2021-02-19T08:05:10.2254871Z\"},\"identity\":{\"principalId\":\"daff3ea0-381c-4b8f-9318-43a78590a91f\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Accepted\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEA032bTmAoPoPOztxzUg2giqZmnOELmmEasIU7O4H3k6PeSImDonlTdJeBQb6+qay8KYOTmWca9FPilmvQVWperHNlKVc30reU38isrvdZu55hlC4b/XQMDh+0mUzaa05SpgvZ2ExyO52bjfxDvFNO/HMzR0vsJv+jjWjt++y0qguHFoBuk3F5tlvcrA+lJrwmWA1EeekaPLJqcJNjdllrfc6GOQfkNAHFFbpH2HepYjD5q9ocglcnD8Qag8llLGNkoN9F1+orw7FI1qOiZNdfNrxdZ4OZqXWXmYyjYA/uu4OpqPbUsTBbpHlS4LrOekcWx2Tut+AuBuzFXFFoH3sxm0meyYbMNzSZnlzPiMNuLNC5AmSoW6vrDvEyEga3FYDSINkIE9PHoM8BRb2Wb4kZly8KuKonEvQG/960TQaIIFHynQFqxsnonbqXPfoDJvocjCGheaKaBIjsnT8CzC/+DZ2cC8R4vOwAIPO2LNoKWEjmNL90Dcxa5Rr7aR48P7NB0KXEIEqcgB57dELnS/KtMaBgMFlvl3NST2fJFiS8l3hjtYJKS+XK0IPSO9xHNrlQozs8rXXXiS0LpPBfGSt4bajHFKnLwg5OewLsgAR20mKgLqrBH3miQMl/plcGVLvJpS93muc/V8oNKF1Ape0W3rT+EDvFHJowcTx3nvoAKIkCAwEAAQ==\"}}", + "isContentBase64": false } }, - "New-AzConnectedKubernetes+[NoContext]+CreateExpanded+$GET+https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/06c01a15-6ce1-42de-b81e-edde285a37a2?api-version=2020-01-01-preview+2": { + "New-AzConnectedKubernetes+[NoContext]+CreateExpanded+$GET+https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/81653651-f5f9-4259-8b90-096f0c923005?api-version=2021-03-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/06c01a15-6ce1-42de-b81e-edde285a37a2?api-version=2020-01-01-preview", + "RequestUri": "https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/81653651-f5f9-4259-8b90-096f0c923005?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "14", "15" ], - "x-ms-client-request-id": [ "cb86b852-b235-4ec8-84e3-f1aa33591b14", "cb86b852-b235-4ec8-84e3-f1aa33591b14" ], - "CommandName": [ "Az.ConnectedKubernetes.internal\\New-AzConnectedKubernetes", "Az.ConnectedKubernetes.internal\\New-AzConnectedKubernetes" ], - "FullCommandName": [ "New-AzConnectedKubernetes_CreateExpanded", "New-AzConnectedKubernetes_CreateExpanded" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "84321a8b-8af0-4daa-bf39-881837771ef9" ], + "CommandName": [ "Az.ConnectedKubernetes.internal\\New-AzConnectedKubernetes" ], + "FullCommandName": [ "New-AzConnectedKubernetes_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] }, "ContentHeaders": { } @@ -56,36 +60,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11996" ], - "x-ms-request-id": [ "6a912c54-e581-4cc8-8908-d66214d52147" ], - "x-ms-correlation-request-id": [ "b31b36c2-668f-442d-8db5-94db079095d4" ], + "ETag": [ "\"3d006f85-0000-0100-0000-602f71450000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11997" ], + "x-ms-request-id": [ "394ec4a0-4453-42ae-8caa-c4999aa66916" ], + "x-ms-correlation-request-id": [ "b49bcf2c-0149-44f2-b91a-38bb50442320" ], "Server": [ "Kestrel" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200615T022609Z:b31b36c2-668f-442d-8db5-94db079095d4" ], + "x-ms-routing-request-id": [ "JAPANWEST:20210219T080545Z:b49bcf2c-0149-44f2-b91a-38bb50442320" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 15 Jun 2020 02:26:09 GMT" ] + "Date": [ "Fri, 19 Feb 2021 08:05:45 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "239" ], + "Content-Length": [ "445" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/06c01a15-6ce1-42de-b81e-edde285a37a2\",\"name\":\"06c01a15-6ce1-42de-b81e-edde285a37a2\",\"status\":\"Succeeded\",\"startTime\":\"2020-06-15T02:25:36.656749Z\",\"properties\":null}" + "Content": "{\"id\":\"/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/81653651-f5f9-4259-8b90-096f0c923005\",\"name\":\"81653651-f5f9-4259-8b90-096f0c923005\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-axi04f\",\"status\":\"Succeeded\",\"startTime\":\"2021-02-19T08:05:12.3838951Z\",\"endTime\":\"2021-02-19T08:05:25.0985604Z\",\"properties\":null}", + "isContentBase64": false } }, - "New-AzConnectedKubernetes+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-deq5jb?api-version=2020-01-01-preview+3": { + "New-AzConnectedKubernetes+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-axi04f?api-version=2021-03-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-deq5jb?api-version=2020-01-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-axi04f?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "14", "15", "16" ], - "x-ms-client-request-id": [ "cb86b852-b235-4ec8-84e3-f1aa33591b14", "cb86b852-b235-4ec8-84e3-f1aa33591b14", "cb86b852-b235-4ec8-84e3-f1aa33591b14" ], - "CommandName": [ "Az.ConnectedKubernetes.internal\\New-AzConnectedKubernetes", "Az.ConnectedKubernetes.internal\\New-AzConnectedKubernetes", "Az.ConnectedKubernetes.internal\\New-AzConnectedKubernetes" ], - "FullCommandName": [ "New-AzConnectedKubernetes_CreateExpanded", "New-AzConnectedKubernetes_CreateExpanded", "New-AzConnectedKubernetes_CreateExpanded" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "84321a8b-8af0-4daa-bf39-881837771ef9" ], + "CommandName": [ "Az.ConnectedKubernetes.internal\\New-AzConnectedKubernetes" ], + "FullCommandName": [ "New-AzConnectedKubernetes_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] }, "ContentHeaders": { } @@ -95,31 +102,34 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], - "x-ms-request-id": [ "6f806a8c-e790-4908-b654-f7ef2f6ad761" ], - "x-ms-correlation-request-id": [ "80f9a3ef-588e-445a-a357-88429755b70d" ], + "ETag": [ "\"3700e18e-0000-0100-0000-602f71450000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-request-id": [ "aeb41624-c74a-426c-9d9b-a7b962ae5133" ], + "x-ms-correlation-request-id": [ "f4d4284a-0584-47b4-9c72-09fac6db5539" ], "Server": [ "Kestrel" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200615T022610Z:80f9a3ef-588e-445a-a357-88429755b70d" ], + "x-ms-routing-request-id": [ "JAPANWEST:20210219T080546Z:f4d4284a-0584-47b4-9c72-09fac6db5539" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 15 Jun 2020 02:26:09 GMT" ] + "Date": [ "Fri, 19 Feb 2021 08:05:45 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1234" ], + "Content-Length": [ "1461" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-deq5jb\",\"name\":\"connaks-deq5jb\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"d5cd956f-02f6-438e-bbd2-0fbf2345f0fb\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAt6pHqmxsKsyoArEOEip33Ur3jKAvN53nOWB1Kjoxd/PnZCxaaesZIvdqEuX0K5AVdc+rTjrZE8ibLSEkzNtsjL4wncw8o0ze2sJ487eNrVebzJx3By3XEpTuGEbgDazvECrJtZxUZpiBKsQRFNuTArRF5dkFIyhHFKBbOTTyEjkXaFlI2Zyv3057jAnJL6txpJhxIu/lL2XDJCtVsQF8owpdVedAYroM1UxA6zcLOReHRdXfbbnChWBmog90Mgeyu1acWITGYnoAVi5vOts0P0kBF//YKVPXYqShegmWWzCwOQRWAg3KMkLrVUt66jUnYLpnhhHokdogbDcSNuT1KBCj16YGKWCcgXbWKBYR8sD2dYlIoAZsCnVScXTT5b65bRZBhW69p0jPjt4IgoArjB43hJb/kwEMh+GFE9ZSiS92qOyAWQ5WNEYimUH8lu3pvYIDoPZ2/eX6kz4Dv+pBPp251r5VJBRBvn3apLZ08QfgxjAnTgIJGOAt4Sz6g3ikmvdPHUPbPgEYymPBrxBIML8kOqL5LUeuMAA4i8B10NPU5AM7A0WJZX3TuQOyj5YNhhvztdVbAnbhPwSO1V3y6h9uv7ks27Krp7sLuLMIDangVb61hFkzI7Vm8WCgpSxrWVLSdx5z9dhtMoPdp5NZILUSiLsIuGfq9NpEGWgIZBUCAwEAAQ==\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"}}}" + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-axi04f\",\"name\":\"connaks-axi04f\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T08:05:10.2254871Z\",\"lastModifiedBy\":\"64b12d6e-6549-484c-8cc6-6281839ba394\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-02-19T08:05:18.5479471Z\"},\"identity\":{\"principalId\":\"daff3ea0-381c-4b8f-9318-43a78590a91f\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEA032bTmAoPoPOztxzUg2giqZmnOELmmEasIU7O4H3k6PeSImDonlTdJeBQb6+qay8KYOTmWca9FPilmvQVWperHNlKVc30reU38isrvdZu55hlC4b/XQMDh+0mUzaa05SpgvZ2ExyO52bjfxDvFNO/HMzR0vsJv+jjWjt++y0qguHFoBuk3F5tlvcrA+lJrwmWA1EeekaPLJqcJNjdllrfc6GOQfkNAHFFbpH2HepYjD5q9ocglcnD8Qag8llLGNkoN9F1+orw7FI1qOiZNdfNrxdZ4OZqXWXmYyjYA/uu4OpqPbUsTBbpHlS4LrOekcWx2Tut+AuBuzFXFFoH3sxm0meyYbMNzSZnlzPiMNuLNC5AmSoW6vrDvEyEga3FYDSINkIE9PHoM8BRb2Wb4kZly8KuKonEvQG/960TQaIIFHynQFqxsnonbqXPfoDJvocjCGheaKaBIjsnT8CzC/+DZ2cC8R4vOwAIPO2LNoKWEjmNL90Dcxa5Rr7aR48P7NB0KXEIEqcgB57dELnS/KtMaBgMFlvl3NST2fJFiS8l3hjtYJKS+XK0IPSO9xHNrlQozs8rXXXiS0LpPBfGSt4bajHFKnLwg5OewLsgAR20mKgLqrBH3miQMl/plcGVLvJpS93muc/V8oNKF1Ape0W3rT+EDvFHJowcTx3nvoAKIkCAwEAAQ==\"}}", + "isContentBase64": false } }, - "New-AzConnectedKubernetes+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-deq5jb?api-version=2020-01-01-preview+4": { + "New-AzConnectedKubernetes+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-axi04f?api-version=2021-03-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-deq5jb?api-version=2020-01-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-axi04f?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "17" ], - "x-ms-client-request-id": [ "01eb5424-78dd-4a31-a23b-d8b78a28935f" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "9208850c-4e9c-43fd-ad49-2039031234f4" ], "CommandName": [ "Get-AzConnectedKubernetes" ], "FullCommandName": [ "Get-AzConnectedKubernetes_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -134,31 +144,34 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], - "x-ms-request-id": [ "87b0cc93-4c4b-4dd8-b01f-6c7fdcb2a101" ], - "x-ms-correlation-request-id": [ "127e7cce-4705-4436-bfed-16296e45e4e9" ], + "ETag": [ "\"3700e18e-0000-0100-0000-602f71450000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-request-id": [ "419a0c39-ba4c-4a4f-a718-42355b29ae6f" ], + "x-ms-correlation-request-id": [ "be1852f3-2a8c-4df3-b053-a573589cb00e" ], "Server": [ "Kestrel" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200615T022610Z:127e7cce-4705-4436-bfed-16296e45e4e9" ], + "x-ms-routing-request-id": [ "JAPANWEST:20210219T080546Z:be1852f3-2a8c-4df3-b053-a573589cb00e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 15 Jun 2020 02:26:10 GMT" ] + "Date": [ "Fri, 19 Feb 2021 08:05:46 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1234" ], + "Content-Length": [ "1461" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-deq5jb\",\"name\":\"connaks-deq5jb\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"d5cd956f-02f6-438e-bbd2-0fbf2345f0fb\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAt6pHqmxsKsyoArEOEip33Ur3jKAvN53nOWB1Kjoxd/PnZCxaaesZIvdqEuX0K5AVdc+rTjrZE8ibLSEkzNtsjL4wncw8o0ze2sJ487eNrVebzJx3By3XEpTuGEbgDazvECrJtZxUZpiBKsQRFNuTArRF5dkFIyhHFKBbOTTyEjkXaFlI2Zyv3057jAnJL6txpJhxIu/lL2XDJCtVsQF8owpdVedAYroM1UxA6zcLOReHRdXfbbnChWBmog90Mgeyu1acWITGYnoAVi5vOts0P0kBF//YKVPXYqShegmWWzCwOQRWAg3KMkLrVUt66jUnYLpnhhHokdogbDcSNuT1KBCj16YGKWCcgXbWKBYR8sD2dYlIoAZsCnVScXTT5b65bRZBhW69p0jPjt4IgoArjB43hJb/kwEMh+GFE9ZSiS92qOyAWQ5WNEYimUH8lu3pvYIDoPZ2/eX6kz4Dv+pBPp251r5VJBRBvn3apLZ08QfgxjAnTgIJGOAt4Sz6g3ikmvdPHUPbPgEYymPBrxBIML8kOqL5LUeuMAA4i8B10NPU5AM7A0WJZX3TuQOyj5YNhhvztdVbAnbhPwSO1V3y6h9uv7ks27Krp7sLuLMIDangVb61hFkzI7Vm8WCgpSxrWVLSdx5z9dhtMoPdp5NZILUSiLsIuGfq9NpEGWgIZBUCAwEAAQ==\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"}}}" + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-axi04f\",\"name\":\"connaks-axi04f\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T08:05:10.2254871Z\",\"lastModifiedBy\":\"64b12d6e-6549-484c-8cc6-6281839ba394\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-02-19T08:05:18.5479471Z\"},\"identity\":{\"principalId\":\"daff3ea0-381c-4b8f-9318-43a78590a91f\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEA032bTmAoPoPOztxzUg2giqZmnOELmmEasIU7O4H3k6PeSImDonlTdJeBQb6+qay8KYOTmWca9FPilmvQVWperHNlKVc30reU38isrvdZu55hlC4b/XQMDh+0mUzaa05SpgvZ2ExyO52bjfxDvFNO/HMzR0vsJv+jjWjt++y0qguHFoBuk3F5tlvcrA+lJrwmWA1EeekaPLJqcJNjdllrfc6GOQfkNAHFFbpH2HepYjD5q9ocglcnD8Qag8llLGNkoN9F1+orw7FI1qOiZNdfNrxdZ4OZqXWXmYyjYA/uu4OpqPbUsTBbpHlS4LrOekcWx2Tut+AuBuzFXFFoH3sxm0meyYbMNzSZnlzPiMNuLNC5AmSoW6vrDvEyEga3FYDSINkIE9PHoM8BRb2Wb4kZly8KuKonEvQG/960TQaIIFHynQFqxsnonbqXPfoDJvocjCGheaKaBIjsnT8CzC/+DZ2cC8R4vOwAIPO2LNoKWEjmNL90Dcxa5Rr7aR48P7NB0KXEIEqcgB57dELnS/KtMaBgMFlvl3NST2fJFiS8l3hjtYJKS+XK0IPSO9xHNrlQozs8rXXXiS0LpPBfGSt4bajHFKnLwg5OewLsgAR20mKgLqrBH3miQMl/plcGVLvJpS93muc/V8oNKF1Ape0W3rT+EDvFHJowcTx3nvoAKIkCAwEAAQ==\"}}", + "isContentBase64": false } }, - "New-AzConnectedKubernetes+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-7fwpju?api-version=2020-01-01-preview+5": { + "New-AzConnectedKubernetes+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-346ipq?api-version=2021-03-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-7fwpju?api-version=2020-01-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-346ipq?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "18" ], - "x-ms-client-request-id": [ "93e49ee8-7cc8-4a60-8150-7a2b079f5f7d" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "009cf0ef-f037-4dc2-a872-87e32e55ef10" ], "CommandName": [ "Get-AzConnectedKubernetes" ], "FullCommandName": [ "Get-AzConnectedKubernetes_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -174,31 +187,33 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "x-ms-failure-cause": [ "gateway" ], - "x-ms-request-id": [ "f239ed6c-a21f-4f39-8089-c34f666bad62" ], - "x-ms-correlation-request-id": [ "f239ed6c-a21f-4f39-8089-c34f666bad62" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200615T022623Z:f239ed6c-a21f-4f39-8089-c34f666bad62" ], + "x-ms-request-id": [ "afee395e-6dea-426b-8758-f34cd7ebb7f6" ], + "x-ms-correlation-request-id": [ "afee395e-6dea-426b-8758-f34cd7ebb7f6" ], + "x-ms-routing-request-id": [ "JAPANWEST:20210219T080549Z:afee395e-6dea-426b-8758-f34cd7ebb7f6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 15 Jun 2020 02:26:22 GMT" ] + "Date": [ "Fri, 19 Feb 2021 08:05:48 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], "Content-Length": [ "242" ] }, - "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Kubernetes/connectedClusters/connaks-7fwpju\u0027 under resource group \u0027connaks-rg-576v9w\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}" + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Kubernetes/connectedClusters/connaks-346ipq\u0027 under resource group \u0027connaks-rg-dsev73\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "isContentBase64": false } }, - "New-AzConnectedKubernetes+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-7fwpju?api-version=2020-01-01-preview+6": { + "New-AzConnectedKubernetes+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-346ipq?api-version=2021-03-01+6": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-7fwpju?api-version=2020-01-01-preview", - "Content": "{\n \"location\": \"eastus\",\n \"identity\": {\n \"type\": \"SystemAssigned\"\n },\n \"properties\": {\n \"aadProfile\": {\n \"clientAppId\": \"\",\n \"serverAppId\": \"\",\n \"tenantId\": \"\"\n },\n \"agentPublicKeyCertificate\": \"MIICCgKCAgEA4ToCaTfWTyM68YKzhS/huf84zt/j4NfvofuZV4miCSrhl4FZ/SEDjz7Hxw+hoHy0cEU9KXrh4jMBk7T0OvLtfqCWfKq1Y5a3BVJO9LcIgSpoaElkz1wj/PvZOToo7I5mPjxAct0dAPEPS3Efa8/UAPik+zX5seWZgIDWG6NPRvNZDQHOCEPsLhe4NtLn7oXzV/r7hHSaiy6TOOfbtZH7L6dbdPBXmGw871neux4TpskqWfl4/wXEzTe+zOkeu8DxjPMMwiOPKWOY8cHstYNlPTzG8jlMyjbL9P2EWPbJvo+RVPQWof85jmr4zwyw5L5t/BIdsKsdWdDa9SliZNpxgo6f4/4lhgXz6/ECvNCl/Asel6c48+Jgw+DHdG2LDcQI7yUBzh5Lnu6vHCERjXUfv0mSG59jC9fAQXfb4ypGI/rB/yuK+x2m/lhEHDamhqVSP49HWWY4WhiOwTihTJ6GLVySfzPLL2G6/CjJMg+PWO5/Kl4zuVYXZeqE198L8+Nz2VoRp88Qlt+r9fb8OvpMIwQqhFN/xPbIqn+/lKC372eYK1PAtk2/rELFttI/QYQHLaJqtpFp2sZ2Co9phpJ88FIAAJK4NgkzFLjre1/pwSwESlCvhIreP7b3gmOxNJaEKiV0oVItyz5UXh2nDaQW5tz2or/SsCRYEVHeNFsWQrsCAwEAAQ==\"\n }\n}", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-346ipq?api-version=2021-03-01", + "Content": "{\r\n \"location\": \"eastus\",\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"properties\": {\r\n \"agentPublicKeyCertificate\": \"MIICCgKCAgEAzFk04gfIE3HE4GN767kxJToUIDaPVczguCLmoF62DifXG23SZl0bu7D+mGYyYB93sIGhfGltWHYy4XRh7IzTvbMDouw45QTK1wDqEZCNwwyt1glEQCr/LeIgBkRxI4eq4efkRyU/rafhFz9clyLABTy8M7yXDrO2qs5FE2IZWoXO0+0LkjX8xoTdHZ5mxEyhqbBMquMHXwUbQs40ntBH8RkiA0TXs2PWe+p6x4jnhhLY/vSgi+31PV5MzDZQ1n8ikQ8oOWicfMx98jyql6XXsV4IJ90xQT6VZnP6na9/lclzTuWXhwbQWfccy0Qtyn6lst/9oCWYNjWzsUsSYsWwvAIdeZLPx1oMLrGOdsFTQRCjF+E2N8wIt+sdoyhHMSuxDCfivqcnKDSCWIr64aEov252NHhGclGjiWSjBedPW+vLsr4nwe2irhd6yWyesP5G9dEwn1YJgEZCo2PZWSa/iJLR1HPhyGbJrrI1d9KCGvMrWIikM7Ccl/Ed6si+8KFoDX+XeO77rqpxjFNkOHuom8CXGc5XNHSOJafMFB8tvGKlqW3CAvg5WvBuji68ZpKdO4Bo2ugR8pScmtl8p+bFnFyvoP2/Lg2EA1xBorzrI9fAZ7tzoo87IpBIYIWEqwPoqtMFfg9FQpVDdy+NIlz0xttlrFbPAfDenQXvfwL0vOkCAwEAAQ==\"\r\n }\r\n}", + "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "937" ] + "Content-Length": [ "847" ] } }, "Response": { @@ -206,37 +221,40 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], - "Azure-AsyncOperation": [ "https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/43ed9420-5861-4519-bd0c-8d2df1996034?api-version=2020-01-01-preview" ], - "x-ms-request-id": [ "43ed9420-5861-4519-bd0c-8d2df1996034" ], - "x-ms-correlation-request-id": [ "b301cb93-4ed6-4626-9eee-434bf6c639c5" ], - "Server": [ "Kestrel" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200615T022755Z:b301cb93-4ed6-4626-9eee-434bf6c639c5" ], + "ETag": [ "\"37000e8f-0000-0100-0000-602f716c0000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Azure-AsyncOperation": [ "https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/dbcec9e4-a9f4-4f3f-90de-567e72150ef9?api-version=2021-03-01" ], + "x-ms-request-id": [ "dbcec9e4-a9f4-4f3f-90de-567e72150ef9" ], + "x-ms-correlation-request-id": [ "d08e5fae-7b6e-4306-9c6f-45d5939ce178" ], + "Server": [ "Kestrel" ], + "x-ms-routing-request-id": [ "JAPANWEST:20210219T080606Z:d08e5fae-7b6e-4306-9c6f-45d5939ce178" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 15 Jun 2020 02:27:54 GMT" ] + "Date": [ "Fri, 19 Feb 2021 08:06:05 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1233" ], + "Content-Length": [ "1438" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-7fwpju\",\"name\":\"connaks-7fwpju\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"5c97eb77-0602-4c41-9736-70b0cf91ff6a\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Accepted\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEA4ToCaTfWTyM68YKzhS/huf84zt/j4NfvofuZV4miCSrhl4FZ/SEDjz7Hxw+hoHy0cEU9KXrh4jMBk7T0OvLtfqCWfKq1Y5a3BVJO9LcIgSpoaElkz1wj/PvZOToo7I5mPjxAct0dAPEPS3Efa8/UAPik+zX5seWZgIDWG6NPRvNZDQHOCEPsLhe4NtLn7oXzV/r7hHSaiy6TOOfbtZH7L6dbdPBXmGw871neux4TpskqWfl4/wXEzTe+zOkeu8DxjPMMwiOPKWOY8cHstYNlPTzG8jlMyjbL9P2EWPbJvo+RVPQWof85jmr4zwyw5L5t/BIdsKsdWdDa9SliZNpxgo6f4/4lhgXz6/ECvNCl/Asel6c48+Jgw+DHdG2LDcQI7yUBzh5Lnu6vHCERjXUfv0mSG59jC9fAQXfb4ypGI/rB/yuK+x2m/lhEHDamhqVSP49HWWY4WhiOwTihTJ6GLVySfzPLL2G6/CjJMg+PWO5/Kl4zuVYXZeqE198L8+Nz2VoRp88Qlt+r9fb8OvpMIwQqhFN/xPbIqn+/lKC372eYK1PAtk2/rELFttI/QYQHLaJqtpFp2sZ2Co9phpJ88FIAAJK4NgkzFLjre1/pwSwESlCvhIreP7b3gmOxNJaEKiV0oVItyz5UXh2nDaQW5tz2or/SsCRYEVHeNFsWQrsCAwEAAQ==\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"}}}" + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-346ipq\",\"name\":\"connaks-346ipq\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T08:06:02.3515151Z\",\"lastModifiedBy\":\"v-lipyo@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2021-02-19T08:06:02.3515151Z\"},\"identity\":{\"principalId\":\"d7ab54d7-5ba6-4da6-b10f-633bbd45b75c\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Accepted\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAzFk04gfIE3HE4GN767kxJToUIDaPVczguCLmoF62DifXG23SZl0bu7D+mGYyYB93sIGhfGltWHYy4XRh7IzTvbMDouw45QTK1wDqEZCNwwyt1glEQCr/LeIgBkRxI4eq4efkRyU/rafhFz9clyLABTy8M7yXDrO2qs5FE2IZWoXO0+0LkjX8xoTdHZ5mxEyhqbBMquMHXwUbQs40ntBH8RkiA0TXs2PWe+p6x4jnhhLY/vSgi+31PV5MzDZQ1n8ikQ8oOWicfMx98jyql6XXsV4IJ90xQT6VZnP6na9/lclzTuWXhwbQWfccy0Qtyn6lst/9oCWYNjWzsUsSYsWwvAIdeZLPx1oMLrGOdsFTQRCjF+E2N8wIt+sdoyhHMSuxDCfivqcnKDSCWIr64aEov252NHhGclGjiWSjBedPW+vLsr4nwe2irhd6yWyesP5G9dEwn1YJgEZCo2PZWSa/iJLR1HPhyGbJrrI1d9KCGvMrWIikM7Ccl/Ed6si+8KFoDX+XeO77rqpxjFNkOHuom8CXGc5XNHSOJafMFB8tvGKlqW3CAvg5WvBuji68ZpKdO4Bo2ugR8pScmtl8p+bFnFyvoP2/Lg2EA1xBorzrI9fAZ7tzoo87IpBIYIWEqwPoqtMFfg9FQpVDdy+NIlz0xttlrFbPAfDenQXvfwL0vOkCAwEAAQ==\"}}", + "isContentBase64": false } }, - "New-AzConnectedKubernetes+[NoContext]+CreateExpanded+$GET+https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/43ed9420-5861-4519-bd0c-8d2df1996034?api-version=2020-01-01-preview+7": { + "New-AzConnectedKubernetes+[NoContext]+CreateExpanded+$GET+https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/dbcec9e4-a9f4-4f3f-90de-567e72150ef9?api-version=2021-03-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/43ed9420-5861-4519-bd0c-8d2df1996034?api-version=2020-01-01-preview", + "RequestUri": "https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/dbcec9e4-a9f4-4f3f-90de-567e72150ef9?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "19", "20" ], - "x-ms-client-request-id": [ "45de1754-ce97-4b50-91a6-f398e49d2233", "45de1754-ce97-4b50-91a6-f398e49d2233" ], - "CommandName": [ "Az.ConnectedKubernetes.internal\\New-AzConnectedKubernetes", "Az.ConnectedKubernetes.internal\\New-AzConnectedKubernetes" ], - "FullCommandName": [ "New-AzConnectedKubernetes_CreateExpanded", "New-AzConnectedKubernetes_CreateExpanded" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "0b8af6cb-ca08-4882-b8e7-44e2639c3f31" ], + "CommandName": [ "Az.ConnectedKubernetes.internal\\New-AzConnectedKubernetes" ], + "FullCommandName": [ "New-AzConnectedKubernetes_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] }, "ContentHeaders": { } @@ -246,36 +264,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11995" ], - "x-ms-request-id": [ "2ac678e1-e232-46b4-bcd7-4c9f75e441da" ], - "x-ms-correlation-request-id": [ "9ff09210-fd08-4d07-a4d4-900dbd1b0a42" ], + "ETag": [ "\"3d00c085-0000-0100-0000-602f71790000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11996" ], + "x-ms-request-id": [ "32ab9d7e-ee23-4f55-8a00-1d5e987b97f3" ], + "x-ms-correlation-request-id": [ "7c015f91-9ec3-4019-ae5e-2af771eb71a7" ], "Server": [ "Kestrel" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200615T022825Z:9ff09210-fd08-4d07-a4d4-900dbd1b0a42" ], + "x-ms-routing-request-id": [ "JAPANWEST:20210219T080637Z:7c015f91-9ec3-4019-ae5e-2af771eb71a7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 15 Jun 2020 02:28:25 GMT" ] + "Date": [ "Fri, 19 Feb 2021 08:06:36 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "240" ], + "Content-Length": [ "445" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/43ed9420-5861-4519-bd0c-8d2df1996034\",\"name\":\"43ed9420-5861-4519-bd0c-8d2df1996034\",\"status\":\"Succeeded\",\"startTime\":\"2020-06-15T02:27:51.8289162Z\",\"properties\":null}" + "Content": "{\"id\":\"/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/dbcec9e4-a9f4-4f3f-90de-567e72150ef9\",\"name\":\"dbcec9e4-a9f4-4f3f-90de-567e72150ef9\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-346ipq\",\"status\":\"Succeeded\",\"startTime\":\"2021-02-19T08:06:04.4026777Z\",\"endTime\":\"2021-02-19T08:06:17.3888029Z\",\"properties\":null}", + "isContentBase64": false } }, - "New-AzConnectedKubernetes+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-7fwpju?api-version=2020-01-01-preview+8": { + "New-AzConnectedKubernetes+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-346ipq?api-version=2021-03-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-7fwpju?api-version=2020-01-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-346ipq?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "19", "20", "21" ], - "x-ms-client-request-id": [ "45de1754-ce97-4b50-91a6-f398e49d2233", "45de1754-ce97-4b50-91a6-f398e49d2233", "45de1754-ce97-4b50-91a6-f398e49d2233" ], - "CommandName": [ "Az.ConnectedKubernetes.internal\\New-AzConnectedKubernetes", "Az.ConnectedKubernetes.internal\\New-AzConnectedKubernetes", "Az.ConnectedKubernetes.internal\\New-AzConnectedKubernetes" ], - "FullCommandName": [ "New-AzConnectedKubernetes_CreateExpanded", "New-AzConnectedKubernetes_CreateExpanded", "New-AzConnectedKubernetes_CreateExpanded" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "0b8af6cb-ca08-4882-b8e7-44e2639c3f31" ], + "CommandName": [ "Az.ConnectedKubernetes.internal\\New-AzConnectedKubernetes" ], + "FullCommandName": [ "New-AzConnectedKubernetes_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] }, "ContentHeaders": { } @@ -285,31 +306,34 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], - "x-ms-request-id": [ "80420f9a-6e74-4399-b7b5-a8290c27a852" ], - "x-ms-correlation-request-id": [ "00780037-1c6a-4ab2-9ab3-e84ff6ad8e5e" ], + "ETag": [ "\"37003a8f-0000-0100-0000-602f71790000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-request-id": [ "31044b5a-7814-44d8-b554-7de4cfc901ce" ], + "x-ms-correlation-request-id": [ "14d2c2a1-d6a7-46b6-b1a8-996e0a632218" ], "Server": [ "Kestrel" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200615T022826Z:00780037-1c6a-4ab2-9ab3-e84ff6ad8e5e" ], + "x-ms-routing-request-id": [ "JAPANWEST:20210219T080637Z:14d2c2a1-d6a7-46b6-b1a8-996e0a632218" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 15 Jun 2020 02:28:25 GMT" ] + "Date": [ "Fri, 19 Feb 2021 08:06:37 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1234" ], + "Content-Length": [ "1461" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-7fwpju\",\"name\":\"connaks-7fwpju\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"5c97eb77-0602-4c41-9736-70b0cf91ff6a\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEA4ToCaTfWTyM68YKzhS/huf84zt/j4NfvofuZV4miCSrhl4FZ/SEDjz7Hxw+hoHy0cEU9KXrh4jMBk7T0OvLtfqCWfKq1Y5a3BVJO9LcIgSpoaElkz1wj/PvZOToo7I5mPjxAct0dAPEPS3Efa8/UAPik+zX5seWZgIDWG6NPRvNZDQHOCEPsLhe4NtLn7oXzV/r7hHSaiy6TOOfbtZH7L6dbdPBXmGw871neux4TpskqWfl4/wXEzTe+zOkeu8DxjPMMwiOPKWOY8cHstYNlPTzG8jlMyjbL9P2EWPbJvo+RVPQWof85jmr4zwyw5L5t/BIdsKsdWdDa9SliZNpxgo6f4/4lhgXz6/ECvNCl/Asel6c48+Jgw+DHdG2LDcQI7yUBzh5Lnu6vHCERjXUfv0mSG59jC9fAQXfb4ypGI/rB/yuK+x2m/lhEHDamhqVSP49HWWY4WhiOwTihTJ6GLVySfzPLL2G6/CjJMg+PWO5/Kl4zuVYXZeqE198L8+Nz2VoRp88Qlt+r9fb8OvpMIwQqhFN/xPbIqn+/lKC372eYK1PAtk2/rELFttI/QYQHLaJqtpFp2sZ2Co9phpJ88FIAAJK4NgkzFLjre1/pwSwESlCvhIreP7b3gmOxNJaEKiV0oVItyz5UXh2nDaQW5tz2or/SsCRYEVHeNFsWQrsCAwEAAQ==\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"}}}" + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-346ipq\",\"name\":\"connaks-346ipq\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T08:06:02.3515151Z\",\"lastModifiedBy\":\"64b12d6e-6549-484c-8cc6-6281839ba394\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-02-19T08:06:10.6224458Z\"},\"identity\":{\"principalId\":\"d7ab54d7-5ba6-4da6-b10f-633bbd45b75c\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAzFk04gfIE3HE4GN767kxJToUIDaPVczguCLmoF62DifXG23SZl0bu7D+mGYyYB93sIGhfGltWHYy4XRh7IzTvbMDouw45QTK1wDqEZCNwwyt1glEQCr/LeIgBkRxI4eq4efkRyU/rafhFz9clyLABTy8M7yXDrO2qs5FE2IZWoXO0+0LkjX8xoTdHZ5mxEyhqbBMquMHXwUbQs40ntBH8RkiA0TXs2PWe+p6x4jnhhLY/vSgi+31PV5MzDZQ1n8ikQ8oOWicfMx98jyql6XXsV4IJ90xQT6VZnP6na9/lclzTuWXhwbQWfccy0Qtyn6lst/9oCWYNjWzsUsSYsWwvAIdeZLPx1oMLrGOdsFTQRCjF+E2N8wIt+sdoyhHMSuxDCfivqcnKDSCWIr64aEov252NHhGclGjiWSjBedPW+vLsr4nwe2irhd6yWyesP5G9dEwn1YJgEZCo2PZWSa/iJLR1HPhyGbJrrI1d9KCGvMrWIikM7Ccl/Ed6si+8KFoDX+XeO77rqpxjFNkOHuom8CXGc5XNHSOJafMFB8tvGKlqW3CAvg5WvBuji68ZpKdO4Bo2ugR8pScmtl8p+bFnFyvoP2/Lg2EA1xBorzrI9fAZ7tzoo87IpBIYIWEqwPoqtMFfg9FQpVDdy+NIlz0xttlrFbPAfDenQXvfwL0vOkCAwEAAQ==\"}}", + "isContentBase64": false } }, - "New-AzConnectedKubernetes+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-7fwpju?api-version=2020-01-01-preview+9": { + "New-AzConnectedKubernetes+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-346ipq?api-version=2021-03-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-7fwpju?api-version=2020-01-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-346ipq?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "22" ], - "x-ms-client-request-id": [ "1a58b0e5-b273-4957-b505-7b4e84938bf3" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "80a8f369-20b9-4bfb-adc2-68a5de9213d7" ], "CommandName": [ "Get-AzConnectedKubernetes" ], "FullCommandName": [ "Get-AzConnectedKubernetes_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -324,21 +348,23 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], - "x-ms-request-id": [ "081bbda4-e1fd-47ed-9f0b-a89d25a78215" ], - "x-ms-correlation-request-id": [ "e723a943-7871-4016-be05-fc2648bf39b7" ], + "ETag": [ "\"37003a8f-0000-0100-0000-602f71790000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-request-id": [ "ee465270-1a84-41f5-9672-da3582f3e7b0" ], + "x-ms-correlation-request-id": [ "f7fa90d7-9ae0-4342-938d-a3b6cdc97fb7" ], "Server": [ "Kestrel" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200615T022826Z:e723a943-7871-4016-be05-fc2648bf39b7" ], + "x-ms-routing-request-id": [ "JAPANWEST:20210219T080637Z:f7fa90d7-9ae0-4342-938d-a3b6cdc97fb7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 15 Jun 2020 02:28:26 GMT" ] + "Date": [ "Fri, 19 Feb 2021 08:06:37 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1234" ], + "Content-Length": [ "1461" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-7fwpju\",\"name\":\"connaks-7fwpju\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"5c97eb77-0602-4c41-9736-70b0cf91ff6a\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEA4ToCaTfWTyM68YKzhS/huf84zt/j4NfvofuZV4miCSrhl4FZ/SEDjz7Hxw+hoHy0cEU9KXrh4jMBk7T0OvLtfqCWfKq1Y5a3BVJO9LcIgSpoaElkz1wj/PvZOToo7I5mPjxAct0dAPEPS3Efa8/UAPik+zX5seWZgIDWG6NPRvNZDQHOCEPsLhe4NtLn7oXzV/r7hHSaiy6TOOfbtZH7L6dbdPBXmGw871neux4TpskqWfl4/wXEzTe+zOkeu8DxjPMMwiOPKWOY8cHstYNlPTzG8jlMyjbL9P2EWPbJvo+RVPQWof85jmr4zwyw5L5t/BIdsKsdWdDa9SliZNpxgo6f4/4lhgXz6/ECvNCl/Asel6c48+Jgw+DHdG2LDcQI7yUBzh5Lnu6vHCERjXUfv0mSG59jC9fAQXfb4ypGI/rB/yuK+x2m/lhEHDamhqVSP49HWWY4WhiOwTihTJ6GLVySfzPLL2G6/CjJMg+PWO5/Kl4zuVYXZeqE198L8+Nz2VoRp88Qlt+r9fb8OvpMIwQqhFN/xPbIqn+/lKC372eYK1PAtk2/rELFttI/QYQHLaJqtpFp2sZ2Co9phpJ88FIAAJK4NgkzFLjre1/pwSwESlCvhIreP7b3gmOxNJaEKiV0oVItyz5UXh2nDaQW5tz2or/SsCRYEVHeNFsWQrsCAwEAAQ==\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"}}}" + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-346ipq\",\"name\":\"connaks-346ipq\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T08:06:02.3515151Z\",\"lastModifiedBy\":\"64b12d6e-6549-484c-8cc6-6281839ba394\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-02-19T08:06:10.6224458Z\"},\"identity\":{\"principalId\":\"d7ab54d7-5ba6-4da6-b10f-633bbd45b75c\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAzFk04gfIE3HE4GN767kxJToUIDaPVczguCLmoF62DifXG23SZl0bu7D+mGYyYB93sIGhfGltWHYy4XRh7IzTvbMDouw45QTK1wDqEZCNwwyt1glEQCr/LeIgBkRxI4eq4efkRyU/rafhFz9clyLABTy8M7yXDrO2qs5FE2IZWoXO0+0LkjX8xoTdHZ5mxEyhqbBMquMHXwUbQs40ntBH8RkiA0TXs2PWe+p6x4jnhhLY/vSgi+31PV5MzDZQ1n8ikQ8oOWicfMx98jyql6XXsV4IJ90xQT6VZnP6na9/lclzTuWXhwbQWfccy0Qtyn6lst/9oCWYNjWzsUsSYsWwvAIdeZLPx1oMLrGOdsFTQRCjF+E2N8wIt+sdoyhHMSuxDCfivqcnKDSCWIr64aEov252NHhGclGjiWSjBedPW+vLsr4nwe2irhd6yWyesP5G9dEwn1YJgEZCo2PZWSa/iJLR1HPhyGbJrrI1d9KCGvMrWIikM7Ccl/Ed6si+8KFoDX+XeO77rqpxjFNkOHuom8CXGc5XNHSOJafMFB8tvGKlqW3CAvg5WvBuji68ZpKdO4Bo2ugR8pScmtl8p+bFnFyvoP2/Lg2EA1xBorzrI9fAZ7tzoo87IpBIYIWEqwPoqtMFfg9FQpVDdy+NIlz0xttlrFbPAfDenQXvfwL0vOkCAwEAAQ==\"}}", + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/ConnectedKubernetes/test/Remove-AzConnectedKubernetes.Recording.json b/src/ConnectedKubernetes/test/Remove-AzConnectedKubernetes.Recording.json index 0acfdd8da57c..0c0b86efe122 100644 --- a/src/ConnectedKubernetes/test/Remove-AzConnectedKubernetes.Recording.json +++ b/src/ConnectedKubernetes/test/Remove-AzConnectedKubernetes.Recording.json @@ -1,12 +1,13 @@ { - "Remove-AzConnectedKubernetes+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-s25w9c?api-version=2020-01-01-preview+1": { + "Remove-AzConnectedKubernetes+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-vq7er3?api-version=2021-03-01+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-s25w9c?api-version=2020-01-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-vq7er3?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "23" ], - "x-ms-client-request-id": [ "5dff8eaa-29b6-4be1-97b8-8dbf2288226b" ], + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "0afdc45d-e862-4f61-9eb1-ad05f0266f35" ], "CommandName": [ "Az.ConnectedKubernetes.internal\\Remove-AzConnectedKubernetes" ], "FullCommandName": [ "Remove-AzConnectedKubernetes_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -21,37 +22,40 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/9cd00bb7-d95a-448f-bae2-324dc90a016c?api-version=2020-01-01-preview" ], + "ETag": [ "\"37006192-0000-0100-0000-602f71ef0000\"" ], + "Location": [ "https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/f822aa08-bca4-4f32-97e1-cf73b8bc5491?api-version=2021-03-01" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], - "x-ms-request-id": [ "9cd00bb7-d95a-448f-bae2-324dc90a016c" ], - "x-ms-correlation-request-id": [ "87562104-cc64-458e-b00e-0fe9941aac56" ], - "Server": [ "Kestrel" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200615T022904Z:87562104-cc64-458e-b00e-0fe9941aac56" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "f822aa08-bca4-4f32-97e1-cf73b8bc5491" ], + "x-ms-correlation-request-id": [ "2458417f-098c-4c3c-b8f2-8e0ffa868529" ], + "Server": [ "Kestrel" ], + "x-ms-routing-request-id": [ "JAPANWEST:20210219T080815Z:2458417f-098c-4c3c-b8f2-8e0ffa868529" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 15 Jun 2020 02:29:04 GMT" ] + "Date": [ "Fri, 19 Feb 2021 08:08:15 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1233" ], + "Content-Length": [ "4" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-s25w9c\",\"name\":\"connaks-s25w9c\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"928ddda8-d0c8-4305-bb86-bf23b563de80\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Deleting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAm/3yDiP5tp78mOXB/vKO6w80pKIEbUfdXsq70i/ssv7N22oMbF+lxOJydclwKrB2jekN+S3lfJd8HfQBnqycsOHEPqVLupN3VGiipKpJekthOeTSRAgFF3t6rc5e9Js/LBg0zfJlVMTni3sV4VU8wS9AGpOIM7CX6ctWgsi/5xkxm3dTpynnuho+s9FdJokkoohWkB1fF/0hMgBBKgtZIKRB343Mkk/2meunnqy5O+E2/IIQf00gf14b7vLKxAY/OdQSgpoD0LIUGNz93K4FQaI33i1GjJWdjPzOtHAI2GZUuiVu4mM/v9DtUABwQefiK05u9vqtejWfoUzG6TNHxpjYv/pFguDNmPwDHzPhxb4XvwmX82qVDVYQBZhGmAcEIrgJ1XUTfy/f7WPh0OBTi+T995pQS87YSMSXbGTvzooSypac2YA18zCBCo3mSDhMGblvKHfvKAszSYQCEQ/WR3D0jbhxaNKU/nk+hkcbtWQvYvdzZ5dxkEfi7K+CHFGjN7owf1veTl8fCbCPS1MVgJGi5M477u6K4k04SOI9IACOcwpi1vkyTupEypzJyMb+mZG4+VkhZMKSIbeUkG9KWDz+q3VnuD9OW0138iME9AXGulHiB8wr7GgBXoOJIzdF3l11CcZMRYdgG1vIR8BQn6LdgyEz7ueFHVSNSq3Twc0CAwEAAQ==\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"}}}" + "Content": "bnVsbA==", + "isContentBase64": false } }, - "Remove-AzConnectedKubernetes+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/9cd00bb7-d95a-448f-bae2-324dc90a016c?api-version=2020-01-01-preview+2": { + "Remove-AzConnectedKubernetes+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/f822aa08-bca4-4f32-97e1-cf73b8bc5491?api-version=2021-03-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/9cd00bb7-d95a-448f-bae2-324dc90a016c?api-version=2020-01-01-preview", + "RequestUri": "https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/f822aa08-bca4-4f32-97e1-cf73b8bc5491?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "23", "24" ], - "x-ms-client-request-id": [ "5dff8eaa-29b6-4be1-97b8-8dbf2288226b", "5dff8eaa-29b6-4be1-97b8-8dbf2288226b" ], - "CommandName": [ "Az.ConnectedKubernetes.internal\\Remove-AzConnectedKubernetes", "Az.ConnectedKubernetes.internal\\Remove-AzConnectedKubernetes" ], - "FullCommandName": [ "Remove-AzConnectedKubernetes_Delete", "Remove-AzConnectedKubernetes_Delete" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "0afdc45d-e862-4f61-9eb1-ad05f0266f35" ], + "CommandName": [ "Az.ConnectedKubernetes.internal\\Remove-AzConnectedKubernetes" ], + "FullCommandName": [ "Remove-AzConnectedKubernetes_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] }, "ContentHeaders": { } @@ -61,36 +65,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11994" ], - "x-ms-request-id": [ "fae2664d-34cc-4795-959f-2224116afb9b" ], - "x-ms-correlation-request-id": [ "4390033b-d539-4515-bf29-f6ea36d838ad" ], + "ETag": [ "\"3d00ad87-0000-0100-0000-602f71f70000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11964" ], + "x-ms-request-id": [ "c237ad71-8ff0-44a4-9717-c609874654b2" ], + "x-ms-correlation-request-id": [ "7b38a03c-b201-4296-9f0b-e3a766c51c20" ], "Server": [ "Kestrel" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200615T022935Z:4390033b-d539-4515-bf29-f6ea36d838ad" ], + "x-ms-routing-request-id": [ "JAPANWEST:20210219T080846Z:7b38a03c-b201-4296-9f0b-e3a766c51c20" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 15 Jun 2020 02:29:35 GMT" ] + "Date": [ "Fri, 19 Feb 2021 08:08:46 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "240" ], + "Content-Length": [ "445" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/9cd00bb7-d95a-448f-bae2-324dc90a016c\",\"name\":\"9cd00bb7-d95a-448f-bae2-324dc90a016c\",\"status\":\"Succeeded\",\"startTime\":\"2020-06-15T02:29:04.1077217Z\",\"properties\":null}" + "Content": "{\"id\":\"/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/f822aa08-bca4-4f32-97e1-cf73b8bc5491\",\"name\":\"f822aa08-bca4-4f32-97e1-cf73b8bc5491\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-vq7er3\",\"status\":\"Succeeded\",\"startTime\":\"2021-02-19T08:08:15.4135777Z\",\"endTime\":\"2021-02-19T08:08:23.8557211Z\",\"properties\":null}", + "isContentBase64": false } }, - "Remove-AzConnectedKubernetes+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/9cd00bb7-d95a-448f-bae2-324dc90a016c?api-version=2020-01-01-preview+3": { + "Remove-AzConnectedKubernetes+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/f822aa08-bca4-4f32-97e1-cf73b8bc5491?api-version=2021-03-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/9cd00bb7-d95a-448f-bae2-324dc90a016c?api-version=2020-01-01-preview", + "RequestUri": "https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/f822aa08-bca4-4f32-97e1-cf73b8bc5491?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "23", "24", "25" ], - "x-ms-client-request-id": [ "5dff8eaa-29b6-4be1-97b8-8dbf2288226b", "5dff8eaa-29b6-4be1-97b8-8dbf2288226b", "5dff8eaa-29b6-4be1-97b8-8dbf2288226b" ], - "CommandName": [ "Az.ConnectedKubernetes.internal\\Remove-AzConnectedKubernetes", "Az.ConnectedKubernetes.internal\\Remove-AzConnectedKubernetes", "Az.ConnectedKubernetes.internal\\Remove-AzConnectedKubernetes" ], - "FullCommandName": [ "Remove-AzConnectedKubernetes_Delete", "Remove-AzConnectedKubernetes_Delete", "Remove-AzConnectedKubernetes_Delete" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "0afdc45d-e862-4f61-9eb1-ad05f0266f35" ], + "CommandName": [ "Az.ConnectedKubernetes.internal\\Remove-AzConnectedKubernetes" ], + "FullCommandName": [ "Remove-AzConnectedKubernetes_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] }, "ContentHeaders": { } @@ -100,31 +107,34 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11993" ], - "x-ms-request-id": [ "dfb57d6d-f5b3-48a2-9876-e65c19ed3269" ], - "x-ms-correlation-request-id": [ "b3c6c301-8064-461b-9fc7-d1e6250723b6" ], + "ETag": [ "\"3d00ad87-0000-0100-0000-602f71f70000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11963" ], + "x-ms-request-id": [ "9f52aa27-8457-4cd0-8088-cbfd8f892020" ], + "x-ms-correlation-request-id": [ "d761a531-0b44-44dc-9780-ad4c655a10fe" ], "Server": [ "Kestrel" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200615T022935Z:b3c6c301-8064-461b-9fc7-d1e6250723b6" ], + "x-ms-routing-request-id": [ "JAPANWEST:20210219T080847Z:d761a531-0b44-44dc-9780-ad4c655a10fe" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 15 Jun 2020 02:29:35 GMT" ] + "Date": [ "Fri, 19 Feb 2021 08:08:46 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "240" ], + "Content-Length": [ "445" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/9cd00bb7-d95a-448f-bae2-324dc90a016c\",\"name\":\"9cd00bb7-d95a-448f-bae2-324dc90a016c\",\"status\":\"Succeeded\",\"startTime\":\"2020-06-15T02:29:04.1077217Z\",\"properties\":null}" + "Content": "{\"id\":\"/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/f822aa08-bca4-4f32-97e1-cf73b8bc5491\",\"name\":\"f822aa08-bca4-4f32-97e1-cf73b8bc5491\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-vq7er3\",\"status\":\"Succeeded\",\"startTime\":\"2021-02-19T08:08:15.4135777Z\",\"endTime\":\"2021-02-19T08:08:23.8557211Z\",\"properties\":null}", + "isContentBase64": false } }, - "Remove-AzConnectedKubernetes+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters?api-version=2020-01-01-preview+4": { + "Remove-AzConnectedKubernetes+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters?api-version=2021-03-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters?api-version=2020-01-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "26" ], - "x-ms-client-request-id": [ "c276e343-53d8-434a-a9b6-12619915efb8" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "6a063f25-15e1-4ee6-b1a2-a21b81d9b44e" ], "CommandName": [ "Get-AzConnectedKubernetes" ], "FullCommandName": [ "Get-AzConnectedKubernetes_List" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -139,31 +149,33 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], - "x-ms-request-id": [ "a1358da2-ccb8-4548-936e-4451637fb060" ], - "x-ms-correlation-request-id": [ "64eddf92-db27-4f6c-8770-fea9643c563c" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-request-id": [ "c4ee0d22-3106-476b-8cd1-414492ce77e6" ], + "x-ms-correlation-request-id": [ "842b9bcc-a4e2-43fe-b1cd-0b4bfdc9855f" ], "Server": [ "Kestrel" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200615T022936Z:64eddf92-db27-4f6c-8770-fea9643c563c" ], + "x-ms-routing-request-id": [ "JAPANWEST:20210219T080847Z:842b9bcc-a4e2-43fe-b1cd-0b4bfdc9855f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 15 Jun 2020 02:29:35 GMT" ] + "Date": [ "Fri, 19 Feb 2021 08:08:47 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "3716" ], + "Content-Length": [ "4416" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-ep8b1c\",\"name\":\"connaks-ep8b1c\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"91ac6d50-da2c-4621-890a-b4de9a199c98\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAqihH1cAkW/NV+Olp8/3fMYPUabrhqX2VLfPbv8FiIS+zBBFm+V85qn4QuFu0pIkMYLxbbOfwb2vEqFHu+x82LS/8YoMkgoDNmywG7wuKeSuKQC627cLL47DLPRsdsD8wI7IkkxVDUF3bczStRKp89YaTQvPT/kHSu7jYH/K7ViwKH34/ftY8iGz7yjpGVglYW6qDZ8x4PcE2uZsmgY/v86G5h8kcidOW3GsGtABw7v1ZTPi4wyYVWFrrvt45ZOQV8TMqz7adCNhDDRfo7xcrSqOp0bvib5l5SHh+4+PNPvcda7aRnZEA/mVqKU5KnlqAUOPaWNi3O9SfeXgt63Y73jbGYcPJREPEJeR1om3JEkJLM2BqbRqntW5+LpJv/l/XKsAnFD5XJEd0QEnN4nKs++huTPorPOBpqRbe5yoKI0m+JUlpGX1C2A+gAJS1GCqY+HkjkxtfZmCiOT8MwVWPOv7iM0NHn7RrFAXWLkKjmHtuNsI/hOR/YcIrz4qBFH8KGohhAESAZiN8GySpsDwYk3XXsKa2FdcPy28Kpyrhn13Nk5y8+AV5fy3/kUsD32PqJbfA3vJh/WiPgviHs2k5XehJlVh8K/vN6aA/sxNXKyFvoN1C9XQ4ZGpxwisJ0tk5DEhnnwmuYOwh1baH9cfUKQkQ/ESK8Fuy/CicBf3ZYv0CAwEAAQ==\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"}}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-deq5jb\",\"name\":\"connaks-deq5jb\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"d5cd956f-02f6-438e-bbd2-0fbf2345f0fb\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAt6pHqmxsKsyoArEOEip33Ur3jKAvN53nOWB1Kjoxd/PnZCxaaesZIvdqEuX0K5AVdc+rTjrZE8ibLSEkzNtsjL4wncw8o0ze2sJ487eNrVebzJx3By3XEpTuGEbgDazvECrJtZxUZpiBKsQRFNuTArRF5dkFIyhHFKBbOTTyEjkXaFlI2Zyv3057jAnJL6txpJhxIu/lL2XDJCtVsQF8owpdVedAYroM1UxA6zcLOReHRdXfbbnChWBmog90Mgeyu1acWITGYnoAVi5vOts0P0kBF//YKVPXYqShegmWWzCwOQRWAg3KMkLrVUt66jUnYLpnhhHokdogbDcSNuT1KBCj16YGKWCcgXbWKBYR8sD2dYlIoAZsCnVScXTT5b65bRZBhW69p0jPjt4IgoArjB43hJb/kwEMh+GFE9ZSiS92qOyAWQ5WNEYimUH8lu3pvYIDoPZ2/eX6kz4Dv+pBPp251r5VJBRBvn3apLZ08QfgxjAnTgIJGOAt4Sz6g3ikmvdPHUPbPgEYymPBrxBIML8kOqL5LUeuMAA4i8B10NPU5AM7A0WJZX3TuQOyj5YNhhvztdVbAnbhPwSO1V3y6h9uv7ks27Krp7sLuLMIDangVb61hFkzI7Vm8WCgpSxrWVLSdx5z9dhtMoPdp5NZILUSiLsIuGfq9NpEGWgIZBUCAwEAAQ==\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"}}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-7fwpju\",\"name\":\"connaks-7fwpju\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"5c97eb77-0602-4c41-9736-70b0cf91ff6a\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEA4ToCaTfWTyM68YKzhS/huf84zt/j4NfvofuZV4miCSrhl4FZ/SEDjz7Hxw+hoHy0cEU9KXrh4jMBk7T0OvLtfqCWfKq1Y5a3BVJO9LcIgSpoaElkz1wj/PvZOToo7I5mPjxAct0dAPEPS3Efa8/UAPik+zX5seWZgIDWG6NPRvNZDQHOCEPsLhe4NtLn7oXzV/r7hHSaiy6TOOfbtZH7L6dbdPBXmGw871neux4TpskqWfl4/wXEzTe+zOkeu8DxjPMMwiOPKWOY8cHstYNlPTzG8jlMyjbL9P2EWPbJvo+RVPQWof85jmr4zwyw5L5t/BIdsKsdWdDa9SliZNpxgo6f4/4lhgXz6/ECvNCl/Asel6c48+Jgw+DHdG2LDcQI7yUBzh5Lnu6vHCERjXUfv0mSG59jC9fAQXfb4ypGI/rB/yuK+x2m/lhEHDamhqVSP49HWWY4WhiOwTihTJ6GLVySfzPLL2G6/CjJMg+PWO5/Kl4zuVYXZeqE198L8+Nz2VoRp88Qlt+r9fb8OvpMIwQqhFN/xPbIqn+/lKC372eYK1PAtk2/rELFttI/QYQHLaJqtpFp2sZ2Co9phpJ88FIAAJK4NgkzFLjre1/pwSwESlCvhIreP7b3gmOxNJaEKiV0oVItyz5UXh2nDaQW5tz2or/SsCRYEVHeNFsWQrsCAwEAAQ==\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"}}}]}" + "Content": "{\"value\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-fbic7z\",\"name\":\"connaks-fbic7z\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T08:00:56.7061495Z\",\"lastModifiedBy\":\"64b12d6e-6549-484c-8cc6-6281839ba394\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-02-19T08:01:03.9117813Z\"},\"identity\":{\"principalId\":\"a03efef7-8d7b-40ca-89a5-9403acad5cf2\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAtmi+lKYRuCAXzDvYV1LB9GMXjur8zllRUolAP+mUAvh+nV0C53QkTa53VI3MvuE/X8PVZ0Y4dntBZsSIBKBU0xw/Dtg7gijaMoOWuOif/JcYA03jMAQNt2qC+DqeEOsHEuJZ5uF4yWDH6TjHNWs3UItjtosa1v8WSAxPr0JUao4wwCyvYoegRvBADpGSs2xXjK5CxaxxvdyVxPZD4yusbbzFKwve44XmQZqP83uJdIKsAgZDSTn14cxlILqKY9QOix0LYukckyFw1yNGQlQElqcELFKtuB3MQm7cU6msTnb2MUbR0xGcgWfHrfyfw2wOAG3z2UuV8ymJK0ZdSlg1j2OYATz9GOoqwtq1uF8Cf8BpTri/wrXCOy0gjq8/Ki5nA86SjoiBid96lzxJWDoXvbqLtNkHd3sPX4uOtTd6U+Qyghu47cQrCfvsc4swDTXr1A784O7NE6FLKO1mCr9XnyHeBVtubXt6m4qgasPKMmvQmdZ9rPylu3ehvwZOei12deJqBaFJHNtjFW0x3rNJhzC9W4S/bPNJq3peB5i/c4r4gDIUqHhsk4dGJ9rIrEsgB1VMx2j/qhY1ZKuTWrvw03ryjxbY8YY3UPR86TQgHdfp18BOv9ibEakIsEdG60yIkPdBdqNsteQvV58YhgdU2qRHw4weLEAc/3AdNBoN0GUCAwEAAQ==\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-axi04f\",\"name\":\"connaks-axi04f\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"tags\":{\"key2\":\"2\",\"key1\":\"1\",\"key3\":\"3\"},\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T08:05:10.2254871Z\",\"lastModifiedBy\":\"v-lipyo@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2021-02-19T08:07:45.658806Z\"},\"identity\":{\"principalId\":\"daff3ea0-381c-4b8f-9318-43a78590a91f\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEA032bTmAoPoPOztxzUg2giqZmnOELmmEasIU7O4H3k6PeSImDonlTdJeBQb6+qay8KYOTmWca9FPilmvQVWperHNlKVc30reU38isrvdZu55hlC4b/XQMDh+0mUzaa05SpgvZ2ExyO52bjfxDvFNO/HMzR0vsJv+jjWjt++y0qguHFoBuk3F5tlvcrA+lJrwmWA1EeekaPLJqcJNjdllrfc6GOQfkNAHFFbpH2HepYjD5q9ocglcnD8Qag8llLGNkoN9F1+orw7FI1qOiZNdfNrxdZ4OZqXWXmYyjYA/uu4OpqPbUsTBbpHlS4LrOekcWx2Tut+AuBuzFXFFoH3sxm0meyYbMNzSZnlzPiMNuLNC5AmSoW6vrDvEyEga3FYDSINkIE9PHoM8BRb2Wb4kZly8KuKonEvQG/960TQaIIFHynQFqxsnonbqXPfoDJvocjCGheaKaBIjsnT8CzC/+DZ2cC8R4vOwAIPO2LNoKWEjmNL90Dcxa5Rr7aR48P7NB0KXEIEqcgB57dELnS/KtMaBgMFlvl3NST2fJFiS8l3hjtYJKS+XK0IPSO9xHNrlQozs8rXXXiS0LpPBfGSt4bajHFKnLwg5OewLsgAR20mKgLqrBH3miQMl/plcGVLvJpS93muc/V8oNKF1Ape0W3rT+EDvFHJowcTx3nvoAKIkCAwEAAQ==\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-346ipq\",\"name\":\"connaks-346ipq\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T08:06:02.3515151Z\",\"lastModifiedBy\":\"64b12d6e-6549-484c-8cc6-6281839ba394\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-02-19T08:06:10.6224458Z\"},\"identity\":{\"principalId\":\"d7ab54d7-5ba6-4da6-b10f-633bbd45b75c\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAzFk04gfIE3HE4GN767kxJToUIDaPVczguCLmoF62DifXG23SZl0bu7D+mGYyYB93sIGhfGltWHYy4XRh7IzTvbMDouw45QTK1wDqEZCNwwyt1glEQCr/LeIgBkRxI4eq4efkRyU/rafhFz9clyLABTy8M7yXDrO2qs5FE2IZWoXO0+0LkjX8xoTdHZ5mxEyhqbBMquMHXwUbQs40ntBH8RkiA0TXs2PWe+p6x4jnhhLY/vSgi+31PV5MzDZQ1n8ikQ8oOWicfMx98jyql6XXsV4IJ90xQT6VZnP6na9/lclzTuWXhwbQWfccy0Qtyn6lst/9oCWYNjWzsUsSYsWwvAIdeZLPx1oMLrGOdsFTQRCjF+E2N8wIt+sdoyhHMSuxDCfivqcnKDSCWIr64aEov252NHhGclGjiWSjBedPW+vLsr4nwe2irhd6yWyesP5G9dEwn1YJgEZCo2PZWSa/iJLR1HPhyGbJrrI1d9KCGvMrWIikM7Ccl/Ed6si+8KFoDX+XeO77rqpxjFNkOHuom8CXGc5XNHSOJafMFB8tvGKlqW3CAvg5WvBuji68ZpKdO4Bo2ugR8pScmtl8p+bFnFyvoP2/Lg2EA1xBorzrI9fAZ7tzoo87IpBIYIWEqwPoqtMFfg9FQpVDdy+NIlz0xttlrFbPAfDenQXvfwL0vOkCAwEAAQ==\"}}]}", + "isContentBase64": false } }, - "Remove-AzConnectedKubernetes+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-ep8b1c?api-version=2020-01-01-preview+1": { + "Remove-AzConnectedKubernetes+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-fbic7z?api-version=2021-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-ep8b1c?api-version=2020-01-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-fbic7z?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "27" ], - "x-ms-client-request-id": [ "e7971c1c-8e2a-4882-abf1-2de7dd39a696" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "601547e9-342f-4b4c-a286-2a4dc2d771f1" ], "CommandName": [ "Get-AzConnectedKubernetes" ], "FullCommandName": [ "Get-AzConnectedKubernetes_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -178,31 +190,34 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], - "x-ms-request-id": [ "eba63d34-2714-44df-9172-07a6c990bba8" ], - "x-ms-correlation-request-id": [ "223f3b35-31da-4e8f-a6cf-d9c10ed6e325" ], + "ETag": [ "\"3700cb8d-0000-0100-0000-602f70460000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-request-id": [ "71910b20-4e1e-497f-ba24-35af174eb8ab" ], + "x-ms-correlation-request-id": [ "39bd2889-a447-4610-b062-021562a1355a" ], "Server": [ "Kestrel" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200615T022937Z:223f3b35-31da-4e8f-a6cf-d9c10ed6e325" ], + "x-ms-routing-request-id": [ "JAPANWEST:20210219T080848Z:39bd2889-a447-4610-b062-021562a1355a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 15 Jun 2020 02:29:37 GMT" ] + "Date": [ "Fri, 19 Feb 2021 08:08:47 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1234" ], + "Content-Length": [ "1461" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-ep8b1c\",\"name\":\"connaks-ep8b1c\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"91ac6d50-da2c-4621-890a-b4de9a199c98\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAqihH1cAkW/NV+Olp8/3fMYPUabrhqX2VLfPbv8FiIS+zBBFm+V85qn4QuFu0pIkMYLxbbOfwb2vEqFHu+x82LS/8YoMkgoDNmywG7wuKeSuKQC627cLL47DLPRsdsD8wI7IkkxVDUF3bczStRKp89YaTQvPT/kHSu7jYH/K7ViwKH34/ftY8iGz7yjpGVglYW6qDZ8x4PcE2uZsmgY/v86G5h8kcidOW3GsGtABw7v1ZTPi4wyYVWFrrvt45ZOQV8TMqz7adCNhDDRfo7xcrSqOp0bvib5l5SHh+4+PNPvcda7aRnZEA/mVqKU5KnlqAUOPaWNi3O9SfeXgt63Y73jbGYcPJREPEJeR1om3JEkJLM2BqbRqntW5+LpJv/l/XKsAnFD5XJEd0QEnN4nKs++huTPorPOBpqRbe5yoKI0m+JUlpGX1C2A+gAJS1GCqY+HkjkxtfZmCiOT8MwVWPOv7iM0NHn7RrFAXWLkKjmHtuNsI/hOR/YcIrz4qBFH8KGohhAESAZiN8GySpsDwYk3XXsKa2FdcPy28Kpyrhn13Nk5y8+AV5fy3/kUsD32PqJbfA3vJh/WiPgviHs2k5XehJlVh8K/vN6aA/sxNXKyFvoN1C9XQ4ZGpxwisJ0tk5DEhnnwmuYOwh1baH9cfUKQkQ/ESK8Fuy/CicBf3ZYv0CAwEAAQ==\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"}}}" + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-fbic7z\",\"name\":\"connaks-fbic7z\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T08:00:56.7061495Z\",\"lastModifiedBy\":\"64b12d6e-6549-484c-8cc6-6281839ba394\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-02-19T08:01:03.9117813Z\"},\"identity\":{\"principalId\":\"a03efef7-8d7b-40ca-89a5-9403acad5cf2\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAtmi+lKYRuCAXzDvYV1LB9GMXjur8zllRUolAP+mUAvh+nV0C53QkTa53VI3MvuE/X8PVZ0Y4dntBZsSIBKBU0xw/Dtg7gijaMoOWuOif/JcYA03jMAQNt2qC+DqeEOsHEuJZ5uF4yWDH6TjHNWs3UItjtosa1v8WSAxPr0JUao4wwCyvYoegRvBADpGSs2xXjK5CxaxxvdyVxPZD4yusbbzFKwve44XmQZqP83uJdIKsAgZDSTn14cxlILqKY9QOix0LYukckyFw1yNGQlQElqcELFKtuB3MQm7cU6msTnb2MUbR0xGcgWfHrfyfw2wOAG3z2UuV8ymJK0ZdSlg1j2OYATz9GOoqwtq1uF8Cf8BpTri/wrXCOy0gjq8/Ki5nA86SjoiBid96lzxJWDoXvbqLtNkHd3sPX4uOtTd6U+Qyghu47cQrCfvsc4swDTXr1A784O7NE6FLKO1mCr9XnyHeBVtubXt6m4qgasPKMmvQmdZ9rPylu3ehvwZOei12deJqBaFJHNtjFW0x3rNJhzC9W4S/bPNJq3peB5i/c4r4gDIUqHhsk4dGJ9rIrEsgB1VMx2j/qhY1ZKuTWrvw03ryjxbY8YY3UPR86TQgHdfp18BOv9ibEakIsEdG60yIkPdBdqNsteQvV58YhgdU2qRHw4weLEAc/3AdNBoN0GUCAwEAAQ==\"}}", + "isContentBase64": false } }, - "Remove-AzConnectedKubernetes+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-ep8b1c?api-version=2020-01-01-preview+2": { + "Remove-AzConnectedKubernetes+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-fbic7z?api-version=2021-03-01+2": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-ep8b1c?api-version=2020-01-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-fbic7z?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "28" ], - "x-ms-client-request-id": [ "985dd9a6-c2f3-40ad-a754-3ebe2bf33f71" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "85fe9b21-5a40-4769-b9c4-cfa0fba0ff72" ], "CommandName": [ "Az.ConnectedKubernetes.internal\\Remove-AzConnectedKubernetes" ], "FullCommandName": [ "Remove-AzConnectedKubernetes_DeleteViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -217,37 +232,40 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/56614cd0-dbb0-4e0e-9734-f5ea559c2252?api-version=2020-01-01-preview" ], + "ETag": [ "\"37000993-0000-0100-0000-602f72120000\"" ], + "Location": [ "https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/7bd68f4e-3b52-4252-8d89-0a36d2ed1c60?api-version=2021-03-01" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14998" ], - "x-ms-request-id": [ "56614cd0-dbb0-4e0e-9734-f5ea559c2252" ], - "x-ms-correlation-request-id": [ "051736f1-eb82-4111-8bb5-23410d3d57c0" ], - "Server": [ "Kestrel" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200615T022950Z:051736f1-eb82-4111-8bb5-23410d3d57c0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "7bd68f4e-3b52-4252-8d89-0a36d2ed1c60" ], + "x-ms-correlation-request-id": [ "624719db-4b76-458c-bccc-132dc096a773" ], + "Server": [ "Kestrel" ], + "x-ms-routing-request-id": [ "JAPANWEST:20210219T080851Z:624719db-4b76-458c-bccc-132dc096a773" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 15 Jun 2020 02:29:50 GMT" ] + "Date": [ "Fri, 19 Feb 2021 08:08:50 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1233" ], + "Content-Length": [ "4" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-ep8b1c\",\"name\":\"connaks-ep8b1c\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"91ac6d50-da2c-4621-890a-b4de9a199c98\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Deleting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAqihH1cAkW/NV+Olp8/3fMYPUabrhqX2VLfPbv8FiIS+zBBFm+V85qn4QuFu0pIkMYLxbbOfwb2vEqFHu+x82LS/8YoMkgoDNmywG7wuKeSuKQC627cLL47DLPRsdsD8wI7IkkxVDUF3bczStRKp89YaTQvPT/kHSu7jYH/K7ViwKH34/ftY8iGz7yjpGVglYW6qDZ8x4PcE2uZsmgY/v86G5h8kcidOW3GsGtABw7v1ZTPi4wyYVWFrrvt45ZOQV8TMqz7adCNhDDRfo7xcrSqOp0bvib5l5SHh+4+PNPvcda7aRnZEA/mVqKU5KnlqAUOPaWNi3O9SfeXgt63Y73jbGYcPJREPEJeR1om3JEkJLM2BqbRqntW5+LpJv/l/XKsAnFD5XJEd0QEnN4nKs++huTPorPOBpqRbe5yoKI0m+JUlpGX1C2A+gAJS1GCqY+HkjkxtfZmCiOT8MwVWPOv7iM0NHn7RrFAXWLkKjmHtuNsI/hOR/YcIrz4qBFH8KGohhAESAZiN8GySpsDwYk3XXsKa2FdcPy28Kpyrhn13Nk5y8+AV5fy3/kUsD32PqJbfA3vJh/WiPgviHs2k5XehJlVh8K/vN6aA/sxNXKyFvoN1C9XQ4ZGpxwisJ0tk5DEhnnwmuYOwh1baH9cfUKQkQ/ESK8Fuy/CicBf3ZYv0CAwEAAQ==\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"}}}" + "Content": "bnVsbA==", + "isContentBase64": false } }, - "Remove-AzConnectedKubernetes+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/56614cd0-dbb0-4e0e-9734-f5ea559c2252?api-version=2020-01-01-preview+3": { + "Remove-AzConnectedKubernetes+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/7bd68f4e-3b52-4252-8d89-0a36d2ed1c60?api-version=2021-03-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/56614cd0-dbb0-4e0e-9734-f5ea559c2252?api-version=2020-01-01-preview", + "RequestUri": "https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/7bd68f4e-3b52-4252-8d89-0a36d2ed1c60?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "28", "29" ], - "x-ms-client-request-id": [ "985dd9a6-c2f3-40ad-a754-3ebe2bf33f71", "985dd9a6-c2f3-40ad-a754-3ebe2bf33f71" ], - "CommandName": [ "Az.ConnectedKubernetes.internal\\Remove-AzConnectedKubernetes", "Az.ConnectedKubernetes.internal\\Remove-AzConnectedKubernetes" ], - "FullCommandName": [ "Remove-AzConnectedKubernetes_DeleteViaIdentity", "Remove-AzConnectedKubernetes_DeleteViaIdentity" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "85fe9b21-5a40-4769-b9c4-cfa0fba0ff72" ], + "CommandName": [ "Az.ConnectedKubernetes.internal\\Remove-AzConnectedKubernetes" ], + "FullCommandName": [ "Remove-AzConnectedKubernetes_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] }, "ContentHeaders": { } @@ -257,36 +275,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11992" ], - "x-ms-request-id": [ "042988d8-a68e-470d-b219-c37f5961ec98" ], - "x-ms-correlation-request-id": [ "68168dbf-2671-4011-8ef2-a197037129db" ], + "ETag": [ "\"3d003888-0000-0100-0000-602f721a0000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11962" ], + "x-ms-request-id": [ "16459963-f8d2-4b71-b596-3999cb924081" ], + "x-ms-correlation-request-id": [ "5d5de352-d684-4e8f-8424-00348169c5b2" ], "Server": [ "Kestrel" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200615T023021Z:68168dbf-2671-4011-8ef2-a197037129db" ], + "x-ms-routing-request-id": [ "JAPANWEST:20210219T080921Z:5d5de352-d684-4e8f-8424-00348169c5b2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 15 Jun 2020 02:30:20 GMT" ] + "Date": [ "Fri, 19 Feb 2021 08:09:20 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "240" ], + "Content-Length": [ "445" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/56614cd0-dbb0-4e0e-9734-f5ea559c2252\",\"name\":\"56614cd0-dbb0-4e0e-9734-f5ea559c2252\",\"status\":\"Succeeded\",\"startTime\":\"2020-06-15T02:29:49.9006076Z\",\"properties\":null}" + "Content": "{\"id\":\"/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/7bd68f4e-3b52-4252-8d89-0a36d2ed1c60\",\"name\":\"7bd68f4e-3b52-4252-8d89-0a36d2ed1c60\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-fbic7z\",\"status\":\"Succeeded\",\"startTime\":\"2021-02-19T08:08:50.4405339Z\",\"endTime\":\"2021-02-19T08:08:58.5030536Z\",\"properties\":null}", + "isContentBase64": false } }, - "Remove-AzConnectedKubernetes+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/56614cd0-dbb0-4e0e-9734-f5ea559c2252?api-version=2020-01-01-preview+4": { + "Remove-AzConnectedKubernetes+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/7bd68f4e-3b52-4252-8d89-0a36d2ed1c60?api-version=2021-03-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/56614cd0-dbb0-4e0e-9734-f5ea559c2252?api-version=2020-01-01-preview", + "RequestUri": "https://management.azure.com/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/7bd68f4e-3b52-4252-8d89-0a36d2ed1c60?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "28", "29", "30" ], - "x-ms-client-request-id": [ "985dd9a6-c2f3-40ad-a754-3ebe2bf33f71", "985dd9a6-c2f3-40ad-a754-3ebe2bf33f71", "985dd9a6-c2f3-40ad-a754-3ebe2bf33f71" ], - "CommandName": [ "Az.ConnectedKubernetes.internal\\Remove-AzConnectedKubernetes", "Az.ConnectedKubernetes.internal\\Remove-AzConnectedKubernetes", "Az.ConnectedKubernetes.internal\\Remove-AzConnectedKubernetes" ], - "FullCommandName": [ "Remove-AzConnectedKubernetes_DeleteViaIdentity", "Remove-AzConnectedKubernetes_DeleteViaIdentity", "Remove-AzConnectedKubernetes_DeleteViaIdentity" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "85fe9b21-5a40-4769-b9c4-cfa0fba0ff72" ], + "CommandName": [ "Az.ConnectedKubernetes.internal\\Remove-AzConnectedKubernetes" ], + "FullCommandName": [ "Remove-AzConnectedKubernetes_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] }, "ContentHeaders": { } @@ -296,31 +317,34 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11991" ], - "x-ms-request-id": [ "4e11129b-0666-48eb-b33a-f726dfff0820" ], - "x-ms-correlation-request-id": [ "2feffa03-fca4-4863-be7e-7ac879e18863" ], + "ETag": [ "\"3d003888-0000-0100-0000-602f721a0000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11961" ], + "x-ms-request-id": [ "ec8fa115-3273-46a8-b925-3ae1c4dc25e3" ], + "x-ms-correlation-request-id": [ "b5e8ba8c-edcc-48cd-a6c8-20c3028dbe57" ], "Server": [ "Kestrel" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200615T023021Z:2feffa03-fca4-4863-be7e-7ac879e18863" ], + "x-ms-routing-request-id": [ "JAPANWEST:20210219T080921Z:b5e8ba8c-edcc-48cd-a6c8-20c3028dbe57" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 15 Jun 2020 02:30:20 GMT" ] + "Date": [ "Fri, 19 Feb 2021 08:09:20 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "240" ], + "Content-Length": [ "445" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/56614cd0-dbb0-4e0e-9734-f5ea559c2252\",\"name\":\"56614cd0-dbb0-4e0e-9734-f5ea559c2252\",\"status\":\"Succeeded\",\"startTime\":\"2020-06-15T02:29:49.9006076Z\",\"properties\":null}" + "Content": "{\"id\":\"/providers/Microsoft.Kubernetes/locations/EASTUS/operationStatuses/7bd68f4e-3b52-4252-8d89-0a36d2ed1c60\",\"name\":\"7bd68f4e-3b52-4252-8d89-0a36d2ed1c60\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-fbic7z\",\"status\":\"Succeeded\",\"startTime\":\"2021-02-19T08:08:50.4405339Z\",\"endTime\":\"2021-02-19T08:08:58.5030536Z\",\"properties\":null}", + "isContentBase64": false } }, - "Remove-AzConnectedKubernetes+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters?api-version=2020-01-01-preview+5": { + "Remove-AzConnectedKubernetes+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters?api-version=2021-03-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters?api-version=2020-01-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "31" ], - "x-ms-client-request-id": [ "d0890234-5e9e-4a6a-a8d9-0d2fe590d323" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "01f8ac13-a47c-4d47-bc98-2bbee7c0c11d" ], "CommandName": [ "Get-AzConnectedKubernetes" ], "FullCommandName": [ "Get-AzConnectedKubernetes_List" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -335,21 +359,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], - "x-ms-request-id": [ "66785cf4-37a8-43ec-8968-2ae4fad0ac6f" ], - "x-ms-correlation-request-id": [ "11e6c19f-883e-497d-b69a-673139e96e7f" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-request-id": [ "8466d94a-312e-4dbd-987d-1a684cbb37bd" ], + "x-ms-correlation-request-id": [ "f34090bc-f9c3-49b9-84a0-5bac5d698cd2" ], "Server": [ "Kestrel" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200615T023022Z:11e6c19f-883e-497d-b69a-673139e96e7f" ], + "x-ms-routing-request-id": [ "JAPANWEST:20210219T080922Z:f34090bc-f9c3-49b9-84a0-5bac5d698cd2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 15 Jun 2020 02:30:21 GMT" ] + "Date": [ "Fri, 19 Feb 2021 08:09:21 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2481" ], + "Content-Length": [ "2954" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-deq5jb\",\"name\":\"connaks-deq5jb\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"d5cd956f-02f6-438e-bbd2-0fbf2345f0fb\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAt6pHqmxsKsyoArEOEip33Ur3jKAvN53nOWB1Kjoxd/PnZCxaaesZIvdqEuX0K5AVdc+rTjrZE8ibLSEkzNtsjL4wncw8o0ze2sJ487eNrVebzJx3By3XEpTuGEbgDazvECrJtZxUZpiBKsQRFNuTArRF5dkFIyhHFKBbOTTyEjkXaFlI2Zyv3057jAnJL6txpJhxIu/lL2XDJCtVsQF8owpdVedAYroM1UxA6zcLOReHRdXfbbnChWBmog90Mgeyu1acWITGYnoAVi5vOts0P0kBF//YKVPXYqShegmWWzCwOQRWAg3KMkLrVUt66jUnYLpnhhHokdogbDcSNuT1KBCj16YGKWCcgXbWKBYR8sD2dYlIoAZsCnVScXTT5b65bRZBhW69p0jPjt4IgoArjB43hJb/kwEMh+GFE9ZSiS92qOyAWQ5WNEYimUH8lu3pvYIDoPZ2/eX6kz4Dv+pBPp251r5VJBRBvn3apLZ08QfgxjAnTgIJGOAt4Sz6g3ikmvdPHUPbPgEYymPBrxBIML8kOqL5LUeuMAA4i8B10NPU5AM7A0WJZX3TuQOyj5YNhhvztdVbAnbhPwSO1V3y6h9uv7ks27Krp7sLuLMIDangVb61hFkzI7Vm8WCgpSxrWVLSdx5z9dhtMoPdp5NZILUSiLsIuGfq9NpEGWgIZBUCAwEAAQ==\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"}}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-7fwpju\",\"name\":\"connaks-7fwpju\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"5c97eb77-0602-4c41-9736-70b0cf91ff6a\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEA4ToCaTfWTyM68YKzhS/huf84zt/j4NfvofuZV4miCSrhl4FZ/SEDjz7Hxw+hoHy0cEU9KXrh4jMBk7T0OvLtfqCWfKq1Y5a3BVJO9LcIgSpoaElkz1wj/PvZOToo7I5mPjxAct0dAPEPS3Efa8/UAPik+zX5seWZgIDWG6NPRvNZDQHOCEPsLhe4NtLn7oXzV/r7hHSaiy6TOOfbtZH7L6dbdPBXmGw871neux4TpskqWfl4/wXEzTe+zOkeu8DxjPMMwiOPKWOY8cHstYNlPTzG8jlMyjbL9P2EWPbJvo+RVPQWof85jmr4zwyw5L5t/BIdsKsdWdDa9SliZNpxgo6f4/4lhgXz6/ECvNCl/Asel6c48+Jgw+DHdG2LDcQI7yUBzh5Lnu6vHCERjXUfv0mSG59jC9fAQXfb4ypGI/rB/yuK+x2m/lhEHDamhqVSP49HWWY4WhiOwTihTJ6GLVySfzPLL2G6/CjJMg+PWO5/Kl4zuVYXZeqE198L8+Nz2VoRp88Qlt+r9fb8OvpMIwQqhFN/xPbIqn+/lKC372eYK1PAtk2/rELFttI/QYQHLaJqtpFp2sZ2Co9phpJ88FIAAJK4NgkzFLjre1/pwSwESlCvhIreP7b3gmOxNJaEKiV0oVItyz5UXh2nDaQW5tz2or/SsCRYEVHeNFsWQrsCAwEAAQ==\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"}}}]}" + "Content": "{\"value\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-axi04f\",\"name\":\"connaks-axi04f\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"tags\":{\"key2\":\"2\",\"key1\":\"1\",\"key3\":\"3\"},\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T08:05:10.2254871Z\",\"lastModifiedBy\":\"v-lipyo@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2021-02-19T08:07:45.658806Z\"},\"identity\":{\"principalId\":\"daff3ea0-381c-4b8f-9318-43a78590a91f\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEA032bTmAoPoPOztxzUg2giqZmnOELmmEasIU7O4H3k6PeSImDonlTdJeBQb6+qay8KYOTmWca9FPilmvQVWperHNlKVc30reU38isrvdZu55hlC4b/XQMDh+0mUzaa05SpgvZ2ExyO52bjfxDvFNO/HMzR0vsJv+jjWjt++y0qguHFoBuk3F5tlvcrA+lJrwmWA1EeekaPLJqcJNjdllrfc6GOQfkNAHFFbpH2HepYjD5q9ocglcnD8Qag8llLGNkoN9F1+orw7FI1qOiZNdfNrxdZ4OZqXWXmYyjYA/uu4OpqPbUsTBbpHlS4LrOekcWx2Tut+AuBuzFXFFoH3sxm0meyYbMNzSZnlzPiMNuLNC5AmSoW6vrDvEyEga3FYDSINkIE9PHoM8BRb2Wb4kZly8KuKonEvQG/960TQaIIFHynQFqxsnonbqXPfoDJvocjCGheaKaBIjsnT8CzC/+DZ2cC8R4vOwAIPO2LNoKWEjmNL90Dcxa5Rr7aR48P7NB0KXEIEqcgB57dELnS/KtMaBgMFlvl3NST2fJFiS8l3hjtYJKS+XK0IPSO9xHNrlQozs8rXXXiS0LpPBfGSt4bajHFKnLwg5OewLsgAR20mKgLqrBH3miQMl/plcGVLvJpS93muc/V8oNKF1Ape0W3rT+EDvFHJowcTx3nvoAKIkCAwEAAQ==\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-346ipq\",\"name\":\"connaks-346ipq\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T08:06:02.3515151Z\",\"lastModifiedBy\":\"64b12d6e-6549-484c-8cc6-6281839ba394\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-02-19T08:06:10.6224458Z\"},\"identity\":{\"principalId\":\"d7ab54d7-5ba6-4da6-b10f-633bbd45b75c\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAzFk04gfIE3HE4GN767kxJToUIDaPVczguCLmoF62DifXG23SZl0bu7D+mGYyYB93sIGhfGltWHYy4XRh7IzTvbMDouw45QTK1wDqEZCNwwyt1glEQCr/LeIgBkRxI4eq4efkRyU/rafhFz9clyLABTy8M7yXDrO2qs5FE2IZWoXO0+0LkjX8xoTdHZ5mxEyhqbBMquMHXwUbQs40ntBH8RkiA0TXs2PWe+p6x4jnhhLY/vSgi+31PV5MzDZQ1n8ikQ8oOWicfMx98jyql6XXsV4IJ90xQT6VZnP6na9/lclzTuWXhwbQWfccy0Qtyn6lst/9oCWYNjWzsUsSYsWwvAIdeZLPx1oMLrGOdsFTQRCjF+E2N8wIt+sdoyhHMSuxDCfivqcnKDSCWIr64aEov252NHhGclGjiWSjBedPW+vLsr4nwe2irhd6yWyesP5G9dEwn1YJgEZCo2PZWSa/iJLR1HPhyGbJrrI1d9KCGvMrWIikM7Ccl/Ed6si+8KFoDX+XeO77rqpxjFNkOHuom8CXGc5XNHSOJafMFB8tvGKlqW3CAvg5WvBuji68ZpKdO4Bo2ugR8pScmtl8p+bFnFyvoP2/Lg2EA1xBorzrI9fAZ7tzoo87IpBIYIWEqwPoqtMFfg9FQpVDdy+NIlz0xttlrFbPAfDenQXvfwL0vOkCAwEAAQ==\"}}]}", + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/ConnectedKubernetes/test/Update-AzConnectedKubernetes.Recording.json b/src/ConnectedKubernetes/test/Update-AzConnectedKubernetes.Recording.json index 5aec88abd8ff..112cceab57f3 100644 --- a/src/ConnectedKubernetes/test/Update-AzConnectedKubernetes.Recording.json +++ b/src/ConnectedKubernetes/test/Update-AzConnectedKubernetes.Recording.json @@ -1,14 +1,15 @@ { - "Update-AzConnectedKubernetes+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-deq5jb?api-version=2020-01-01-preview+1": { + "Update-AzConnectedKubernetes+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-axi04f?api-version=2021-03-01+1": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-deq5jb?api-version=2020-01-01-preview", - "Content": "{\n \"tags\": {\n \"key2\": \"2\",\n \"key1\": \"1\"\n }\n}", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-axi04f?api-version=2021-03-01", + "Content": "{\r\n \"tags\": {\r\n \"key1\": \"1\",\r\n \"key2\": \"2\"\r\n }\r\n}", + "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "52" ] + "Content-Length": [ "57" ] } }, "Response": { @@ -16,31 +17,34 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], - "x-ms-request-id": [ "67eff90a-ec7a-4cc2-8d57-3473c952cbbd" ], - "x-ms-correlation-request-id": [ "0e541615-9aac-417c-b57b-a5f08d5a4219" ], + "ETag": [ "\"3700ba91-0000-0100-0000-602f71cc0000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], + "x-ms-request-id": [ "ed527f96-c260-497f-bd37-a522e3058961" ], + "x-ms-correlation-request-id": [ "23bd425a-097c-4a11-ad8e-9af7a863fecf" ], "Server": [ "Kestrel" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200615T023028Z:0e541615-9aac-417c-b57b-a5f08d5a4219" ], + "x-ms-routing-request-id": [ "JAPANWEST:20210219T080743Z:23bd425a-097c-4a11-ad8e-9af7a863fecf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 15 Jun 2020 02:30:27 GMT" ] + "Date": [ "Fri, 19 Feb 2021 08:07:43 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1265" ], + "Content-Length": [ "1470" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-deq5jb\",\"name\":\"connaks-deq5jb\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"tags\":{\"key2\":\"2\",\"key1\":\"1\"},\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"d5cd956f-02f6-438e-bbd2-0fbf2345f0fb\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAt6pHqmxsKsyoArEOEip33Ur3jKAvN53nOWB1Kjoxd/PnZCxaaesZIvdqEuX0K5AVdc+rTjrZE8ibLSEkzNtsjL4wncw8o0ze2sJ487eNrVebzJx3By3XEpTuGEbgDazvECrJtZxUZpiBKsQRFNuTArRF5dkFIyhHFKBbOTTyEjkXaFlI2Zyv3057jAnJL6txpJhxIu/lL2XDJCtVsQF8owpdVedAYroM1UxA6zcLOReHRdXfbbnChWBmog90Mgeyu1acWITGYnoAVi5vOts0P0kBF//YKVPXYqShegmWWzCwOQRWAg3KMkLrVUt66jUnYLpnhhHokdogbDcSNuT1KBCj16YGKWCcgXbWKBYR8sD2dYlIoAZsCnVScXTT5b65bRZBhW69p0jPjt4IgoArjB43hJb/kwEMh+GFE9ZSiS92qOyAWQ5WNEYimUH8lu3pvYIDoPZ2/eX6kz4Dv+pBPp251r5VJBRBvn3apLZ08QfgxjAnTgIJGOAt4Sz6g3ikmvdPHUPbPgEYymPBrxBIML8kOqL5LUeuMAA4i8B10NPU5AM7A0WJZX3TuQOyj5YNhhvztdVbAnbhPwSO1V3y6h9uv7ks27Krp7sLuLMIDangVb61hFkzI7Vm8WCgpSxrWVLSdx5z9dhtMoPdp5NZILUSiLsIuGfq9NpEGWgIZBUCAwEAAQ==\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"}}}" + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-axi04f\",\"name\":\"connaks-axi04f\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"tags\":{\"key1\":\"1\",\"key2\":\"2\"},\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T08:05:10.2254871Z\",\"lastModifiedBy\":\"v-lipyo@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2021-02-19T08:07:40.0947118Z\"},\"identity\":{\"principalId\":\"daff3ea0-381c-4b8f-9318-43a78590a91f\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEA032bTmAoPoPOztxzUg2giqZmnOELmmEasIU7O4H3k6PeSImDonlTdJeBQb6+qay8KYOTmWca9FPilmvQVWperHNlKVc30reU38isrvdZu55hlC4b/XQMDh+0mUzaa05SpgvZ2ExyO52bjfxDvFNO/HMzR0vsJv+jjWjt++y0qguHFoBuk3F5tlvcrA+lJrwmWA1EeekaPLJqcJNjdllrfc6GOQfkNAHFFbpH2HepYjD5q9ocglcnD8Qag8llLGNkoN9F1+orw7FI1qOiZNdfNrxdZ4OZqXWXmYyjYA/uu4OpqPbUsTBbpHlS4LrOekcWx2Tut+AuBuzFXFFoH3sxm0meyYbMNzSZnlzPiMNuLNC5AmSoW6vrDvEyEga3FYDSINkIE9PHoM8BRb2Wb4kZly8KuKonEvQG/960TQaIIFHynQFqxsnonbqXPfoDJvocjCGheaKaBIjsnT8CzC/+DZ2cC8R4vOwAIPO2LNoKWEjmNL90Dcxa5Rr7aR48P7NB0KXEIEqcgB57dELnS/KtMaBgMFlvl3NST2fJFiS8l3hjtYJKS+XK0IPSO9xHNrlQozs8rXXXiS0LpPBfGSt4bajHFKnLwg5OewLsgAR20mKgLqrBH3miQMl/plcGVLvJpS93muc/V8oNKF1Ape0W3rT+EDvFHJowcTx3nvoAKIkCAwEAAQ==\"}}", + "isContentBase64": false } }, - "Update-AzConnectedKubernetes+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-deq5jb?api-version=2020-01-01-preview+2": { + "Update-AzConnectedKubernetes+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-axi04f?api-version=2021-03-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-deq5jb?api-version=2020-01-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-axi04f?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "33" ], - "x-ms-client-request-id": [ "d75273b2-e209-4b98-be78-0505515208c5" ], + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "47b5223b-0696-4cb3-954b-93575c1cefa8" ], "CommandName": [ "Get-AzConnectedKubernetes" ], "FullCommandName": [ "Get-AzConnectedKubernetes_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -55,31 +59,34 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], - "x-ms-request-id": [ "08dd5b32-46f9-412c-9edd-5f2562680fb4" ], - "x-ms-correlation-request-id": [ "4dcc53d5-8a6b-4f01-972c-efef7181131c" ], + "ETag": [ "\"3700ba91-0000-0100-0000-602f71cc0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-request-id": [ "c3554445-213b-4c63-8a5d-f287313ab160" ], + "x-ms-correlation-request-id": [ "4a5c1f71-993e-4e83-ad6d-cf596ac29261" ], "Server": [ "Kestrel" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200615T023028Z:4dcc53d5-8a6b-4f01-972c-efef7181131c" ], + "x-ms-routing-request-id": [ "JAPANWEST:20210219T080744Z:4a5c1f71-993e-4e83-ad6d-cf596ac29261" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 15 Jun 2020 02:30:28 GMT" ] + "Date": [ "Fri, 19 Feb 2021 08:07:43 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1265" ], + "Content-Length": [ "1470" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-deq5jb\",\"name\":\"connaks-deq5jb\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"tags\":{\"key2\":\"2\",\"key1\":\"1\"},\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"d5cd956f-02f6-438e-bbd2-0fbf2345f0fb\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAt6pHqmxsKsyoArEOEip33Ur3jKAvN53nOWB1Kjoxd/PnZCxaaesZIvdqEuX0K5AVdc+rTjrZE8ibLSEkzNtsjL4wncw8o0ze2sJ487eNrVebzJx3By3XEpTuGEbgDazvECrJtZxUZpiBKsQRFNuTArRF5dkFIyhHFKBbOTTyEjkXaFlI2Zyv3057jAnJL6txpJhxIu/lL2XDJCtVsQF8owpdVedAYroM1UxA6zcLOReHRdXfbbnChWBmog90Mgeyu1acWITGYnoAVi5vOts0P0kBF//YKVPXYqShegmWWzCwOQRWAg3KMkLrVUt66jUnYLpnhhHokdogbDcSNuT1KBCj16YGKWCcgXbWKBYR8sD2dYlIoAZsCnVScXTT5b65bRZBhW69p0jPjt4IgoArjB43hJb/kwEMh+GFE9ZSiS92qOyAWQ5WNEYimUH8lu3pvYIDoPZ2/eX6kz4Dv+pBPp251r5VJBRBvn3apLZ08QfgxjAnTgIJGOAt4Sz6g3ikmvdPHUPbPgEYymPBrxBIML8kOqL5LUeuMAA4i8B10NPU5AM7A0WJZX3TuQOyj5YNhhvztdVbAnbhPwSO1V3y6h9uv7ks27Krp7sLuLMIDangVb61hFkzI7Vm8WCgpSxrWVLSdx5z9dhtMoPdp5NZILUSiLsIuGfq9NpEGWgIZBUCAwEAAQ==\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"}}}" + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-axi04f\",\"name\":\"connaks-axi04f\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"tags\":{\"key1\":\"1\",\"key2\":\"2\"},\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T08:05:10.2254871Z\",\"lastModifiedBy\":\"v-lipyo@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2021-02-19T08:07:40.0947118Z\"},\"identity\":{\"principalId\":\"daff3ea0-381c-4b8f-9318-43a78590a91f\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEA032bTmAoPoPOztxzUg2giqZmnOELmmEasIU7O4H3k6PeSImDonlTdJeBQb6+qay8KYOTmWca9FPilmvQVWperHNlKVc30reU38isrvdZu55hlC4b/XQMDh+0mUzaa05SpgvZ2ExyO52bjfxDvFNO/HMzR0vsJv+jjWjt++y0qguHFoBuk3F5tlvcrA+lJrwmWA1EeekaPLJqcJNjdllrfc6GOQfkNAHFFbpH2HepYjD5q9ocglcnD8Qag8llLGNkoN9F1+orw7FI1qOiZNdfNrxdZ4OZqXWXmYyjYA/uu4OpqPbUsTBbpHlS4LrOekcWx2Tut+AuBuzFXFFoH3sxm0meyYbMNzSZnlzPiMNuLNC5AmSoW6vrDvEyEga3FYDSINkIE9PHoM8BRb2Wb4kZly8KuKonEvQG/960TQaIIFHynQFqxsnonbqXPfoDJvocjCGheaKaBIjsnT8CzC/+DZ2cC8R4vOwAIPO2LNoKWEjmNL90Dcxa5Rr7aR48P7NB0KXEIEqcgB57dELnS/KtMaBgMFlvl3NST2fJFiS8l3hjtYJKS+XK0IPSO9xHNrlQozs8rXXXiS0LpPBfGSt4bajHFKnLwg5OewLsgAR20mKgLqrBH3miQMl/plcGVLvJpS93muc/V8oNKF1Ape0W3rT+EDvFHJowcTx3nvoAKIkCAwEAAQ==\"}}", + "isContentBase64": false } }, - "Update-AzConnectedKubernetes+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-deq5jb?api-version=2020-01-01-preview+1": { + "Update-AzConnectedKubernetes+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-axi04f?api-version=2021-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-deq5jb?api-version=2020-01-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-axi04f?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "34" ], - "x-ms-client-request-id": [ "8f6ef71a-473b-4d1b-810b-a5b5d7e46d61" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "bbfd38f6-bfb3-4503-8520-5298a120c408" ], "CommandName": [ "Get-AzConnectedKubernetes" ], "FullCommandName": [ "Get-AzConnectedKubernetes_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -94,33 +101,36 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], - "x-ms-request-id": [ "64439cc2-030e-4e95-8a56-204f7b7fae37" ], - "x-ms-correlation-request-id": [ "11157ba1-149c-4e9e-a205-9752e833267f" ], + "ETag": [ "\"3700ba91-0000-0100-0000-602f71cc0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-request-id": [ "88c83035-1afe-48a0-8809-2bdee954c93f" ], + "x-ms-correlation-request-id": [ "ede5b0bf-28c5-4eb0-b2ba-2ce8c72d4035" ], "Server": [ "Kestrel" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200615T023029Z:11157ba1-149c-4e9e-a205-9752e833267f" ], + "x-ms-routing-request-id": [ "JAPANWEST:20210219T080744Z:ede5b0bf-28c5-4eb0-b2ba-2ce8c72d4035" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 15 Jun 2020 02:30:28 GMT" ] + "Date": [ "Fri, 19 Feb 2021 08:07:44 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1265" ], + "Content-Length": [ "1470" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-deq5jb\",\"name\":\"connaks-deq5jb\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"tags\":{\"key2\":\"2\",\"key1\":\"1\"},\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"d5cd956f-02f6-438e-bbd2-0fbf2345f0fb\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAt6pHqmxsKsyoArEOEip33Ur3jKAvN53nOWB1Kjoxd/PnZCxaaesZIvdqEuX0K5AVdc+rTjrZE8ibLSEkzNtsjL4wncw8o0ze2sJ487eNrVebzJx3By3XEpTuGEbgDazvECrJtZxUZpiBKsQRFNuTArRF5dkFIyhHFKBbOTTyEjkXaFlI2Zyv3057jAnJL6txpJhxIu/lL2XDJCtVsQF8owpdVedAYroM1UxA6zcLOReHRdXfbbnChWBmog90Mgeyu1acWITGYnoAVi5vOts0P0kBF//YKVPXYqShegmWWzCwOQRWAg3KMkLrVUt66jUnYLpnhhHokdogbDcSNuT1KBCj16YGKWCcgXbWKBYR8sD2dYlIoAZsCnVScXTT5b65bRZBhW69p0jPjt4IgoArjB43hJb/kwEMh+GFE9ZSiS92qOyAWQ5WNEYimUH8lu3pvYIDoPZ2/eX6kz4Dv+pBPp251r5VJBRBvn3apLZ08QfgxjAnTgIJGOAt4Sz6g3ikmvdPHUPbPgEYymPBrxBIML8kOqL5LUeuMAA4i8B10NPU5AM7A0WJZX3TuQOyj5YNhhvztdVbAnbhPwSO1V3y6h9uv7ks27Krp7sLuLMIDangVb61hFkzI7Vm8WCgpSxrWVLSdx5z9dhtMoPdp5NZILUSiLsIuGfq9NpEGWgIZBUCAwEAAQ==\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"}}}" + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-axi04f\",\"name\":\"connaks-axi04f\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"tags\":{\"key1\":\"1\",\"key2\":\"2\"},\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T08:05:10.2254871Z\",\"lastModifiedBy\":\"v-lipyo@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2021-02-19T08:07:40.0947118Z\"},\"identity\":{\"principalId\":\"daff3ea0-381c-4b8f-9318-43a78590a91f\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEA032bTmAoPoPOztxzUg2giqZmnOELmmEasIU7O4H3k6PeSImDonlTdJeBQb6+qay8KYOTmWca9FPilmvQVWperHNlKVc30reU38isrvdZu55hlC4b/XQMDh+0mUzaa05SpgvZ2ExyO52bjfxDvFNO/HMzR0vsJv+jjWjt++y0qguHFoBuk3F5tlvcrA+lJrwmWA1EeekaPLJqcJNjdllrfc6GOQfkNAHFFbpH2HepYjD5q9ocglcnD8Qag8llLGNkoN9F1+orw7FI1qOiZNdfNrxdZ4OZqXWXmYyjYA/uu4OpqPbUsTBbpHlS4LrOekcWx2Tut+AuBuzFXFFoH3sxm0meyYbMNzSZnlzPiMNuLNC5AmSoW6vrDvEyEga3FYDSINkIE9PHoM8BRb2Wb4kZly8KuKonEvQG/960TQaIIFHynQFqxsnonbqXPfoDJvocjCGheaKaBIjsnT8CzC/+DZ2cC8R4vOwAIPO2LNoKWEjmNL90Dcxa5Rr7aR48P7NB0KXEIEqcgB57dELnS/KtMaBgMFlvl3NST2fJFiS8l3hjtYJKS+XK0IPSO9xHNrlQozs8rXXXiS0LpPBfGSt4bajHFKnLwg5OewLsgAR20mKgLqrBH3miQMl/plcGVLvJpS93muc/V8oNKF1Ape0W3rT+EDvFHJowcTx3nvoAKIkCAwEAAQ==\"}}", + "isContentBase64": false } }, - "Update-AzConnectedKubernetes+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-deq5jb?api-version=2020-01-01-preview+2": { + "Update-AzConnectedKubernetes+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-axi04f?api-version=2021-03-01+2": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-deq5jb?api-version=2020-01-01-preview", - "Content": "{\n \"tags\": {\n \"key2\": \"2\",\n \"key1\": \"1\",\n \"key3\": \"3\"\n }\n}", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-axi04f?api-version=2021-03-01", + "Content": "{\r\n \"tags\": {\r\n \"key2\": \"2\",\r\n \"key1\": \"1\",\r\n \"key3\": \"3\"\r\n }\r\n}", + "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "69" ] + "Content-Length": [ "75" ] } }, "Response": { @@ -128,31 +138,34 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1194" ], - "x-ms-request-id": [ "aa3ae2a6-0ffd-4302-98e0-f7113da88c01" ], - "x-ms-correlation-request-id": [ "e2f430e8-b619-4801-bb4b-1d94f5149b8b" ], + "ETag": [ "\"3700c491-0000-0100-0000-602f71d10000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], + "x-ms-request-id": [ "6f571e8e-434d-4a1c-9c27-1091f18038dd" ], + "x-ms-correlation-request-id": [ "34eb7970-6bce-42f1-a551-c4170e959d7a" ], "Server": [ "Kestrel" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200615T023033Z:e2f430e8-b619-4801-bb4b-1d94f5149b8b" ], + "x-ms-routing-request-id": [ "JAPANWEST:20210219T080747Z:34eb7970-6bce-42f1-a551-c4170e959d7a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 15 Jun 2020 02:30:32 GMT" ] + "Date": [ "Fri, 19 Feb 2021 08:07:47 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1276" ], + "Content-Length": [ "1480" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-deq5jb\",\"name\":\"connaks-deq5jb\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"tags\":{\"key2\":\"2\",\"key1\":\"1\",\"key3\":\"3\"},\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"d5cd956f-02f6-438e-bbd2-0fbf2345f0fb\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAt6pHqmxsKsyoArEOEip33Ur3jKAvN53nOWB1Kjoxd/PnZCxaaesZIvdqEuX0K5AVdc+rTjrZE8ibLSEkzNtsjL4wncw8o0ze2sJ487eNrVebzJx3By3XEpTuGEbgDazvECrJtZxUZpiBKsQRFNuTArRF5dkFIyhHFKBbOTTyEjkXaFlI2Zyv3057jAnJL6txpJhxIu/lL2XDJCtVsQF8owpdVedAYroM1UxA6zcLOReHRdXfbbnChWBmog90Mgeyu1acWITGYnoAVi5vOts0P0kBF//YKVPXYqShegmWWzCwOQRWAg3KMkLrVUt66jUnYLpnhhHokdogbDcSNuT1KBCj16YGKWCcgXbWKBYR8sD2dYlIoAZsCnVScXTT5b65bRZBhW69p0jPjt4IgoArjB43hJb/kwEMh+GFE9ZSiS92qOyAWQ5WNEYimUH8lu3pvYIDoPZ2/eX6kz4Dv+pBPp251r5VJBRBvn3apLZ08QfgxjAnTgIJGOAt4Sz6g3ikmvdPHUPbPgEYymPBrxBIML8kOqL5LUeuMAA4i8B10NPU5AM7A0WJZX3TuQOyj5YNhhvztdVbAnbhPwSO1V3y6h9uv7ks27Krp7sLuLMIDangVb61hFkzI7Vm8WCgpSxrWVLSdx5z9dhtMoPdp5NZILUSiLsIuGfq9NpEGWgIZBUCAwEAAQ==\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"}}}" + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-axi04f\",\"name\":\"connaks-axi04f\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"tags\":{\"key2\":\"2\",\"key1\":\"1\",\"key3\":\"3\"},\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T08:05:10.2254871Z\",\"lastModifiedBy\":\"v-lipyo@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2021-02-19T08:07:45.658806Z\"},\"identity\":{\"principalId\":\"daff3ea0-381c-4b8f-9318-43a78590a91f\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEA032bTmAoPoPOztxzUg2giqZmnOELmmEasIU7O4H3k6PeSImDonlTdJeBQb6+qay8KYOTmWca9FPilmvQVWperHNlKVc30reU38isrvdZu55hlC4b/XQMDh+0mUzaa05SpgvZ2ExyO52bjfxDvFNO/HMzR0vsJv+jjWjt++y0qguHFoBuk3F5tlvcrA+lJrwmWA1EeekaPLJqcJNjdllrfc6GOQfkNAHFFbpH2HepYjD5q9ocglcnD8Qag8llLGNkoN9F1+orw7FI1qOiZNdfNrxdZ4OZqXWXmYyjYA/uu4OpqPbUsTBbpHlS4LrOekcWx2Tut+AuBuzFXFFoH3sxm0meyYbMNzSZnlzPiMNuLNC5AmSoW6vrDvEyEga3FYDSINkIE9PHoM8BRb2Wb4kZly8KuKonEvQG/960TQaIIFHynQFqxsnonbqXPfoDJvocjCGheaKaBIjsnT8CzC/+DZ2cC8R4vOwAIPO2LNoKWEjmNL90Dcxa5Rr7aR48P7NB0KXEIEqcgB57dELnS/KtMaBgMFlvl3NST2fJFiS8l3hjtYJKS+XK0IPSO9xHNrlQozs8rXXXiS0LpPBfGSt4bajHFKnLwg5OewLsgAR20mKgLqrBH3miQMl/plcGVLvJpS93muc/V8oNKF1Ape0W3rT+EDvFHJowcTx3nvoAKIkCAwEAAQ==\"}}", + "isContentBase64": false } }, - "Update-AzConnectedKubernetes+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-deq5jb?api-version=2020-01-01-preview+3": { + "Update-AzConnectedKubernetes+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-axi04f?api-version=2021-03-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-deq5jb?api-version=2020-01-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-axi04f?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "36" ], - "x-ms-client-request-id": [ "db0ce91f-1780-4150-9f9f-5616637f17ce" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "75160102-ac97-48cc-bdc0-8659a984ddd4" ], "CommandName": [ "Get-AzConnectedKubernetes" ], "FullCommandName": [ "Get-AzConnectedKubernetes_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -167,21 +180,23 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], - "x-ms-request-id": [ "5a61fd44-7494-48b2-a618-59fa538984e6" ], - "x-ms-correlation-request-id": [ "d1163bd2-6f2f-47c0-8bed-b1b81ddcca52" ], + "ETag": [ "\"3700c491-0000-0100-0000-602f71d10000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-request-id": [ "59200c2f-8834-4aff-9f1c-f88e55cc6f76" ], + "x-ms-correlation-request-id": [ "a9559888-d870-4f4c-b7f8-5dad06d424c6" ], "Server": [ "Kestrel" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200615T023033Z:d1163bd2-6f2f-47c0-8bed-b1b81ddcca52" ], + "x-ms-routing-request-id": [ "JAPANWEST:20210219T080748Z:a9559888-d870-4f4c-b7f8-5dad06d424c6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 15 Jun 2020 02:30:32 GMT" ] + "Date": [ "Fri, 19 Feb 2021 08:07:47 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1276" ], + "Content-Length": [ "1480" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-576v9w/providers/Microsoft.Kubernetes/connectedClusters/connaks-deq5jb\",\"name\":\"connaks-deq5jb\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"tags\":{\"key2\":\"2\",\"key1\":\"1\",\"key3\":\"3\"},\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"d5cd956f-02f6-438e-bbd2-0fbf2345f0fb\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEAt6pHqmxsKsyoArEOEip33Ur3jKAvN53nOWB1Kjoxd/PnZCxaaesZIvdqEuX0K5AVdc+rTjrZE8ibLSEkzNtsjL4wncw8o0ze2sJ487eNrVebzJx3By3XEpTuGEbgDazvECrJtZxUZpiBKsQRFNuTArRF5dkFIyhHFKBbOTTyEjkXaFlI2Zyv3057jAnJL6txpJhxIu/lL2XDJCtVsQF8owpdVedAYroM1UxA6zcLOReHRdXfbbnChWBmog90Mgeyu1acWITGYnoAVi5vOts0P0kBF//YKVPXYqShegmWWzCwOQRWAg3KMkLrVUt66jUnYLpnhhHokdogbDcSNuT1KBCj16YGKWCcgXbWKBYR8sD2dYlIoAZsCnVScXTT5b65bRZBhW69p0jPjt4IgoArjB43hJb/kwEMh+GFE9ZSiS92qOyAWQ5WNEYimUH8lu3pvYIDoPZ2/eX6kz4Dv+pBPp251r5VJBRBvn3apLZ08QfgxjAnTgIJGOAt4Sz6g3ikmvdPHUPbPgEYymPBrxBIML8kOqL5LUeuMAA4i8B10NPU5AM7A0WJZX3TuQOyj5YNhhvztdVbAnbhPwSO1V3y6h9uv7ks27Krp7sLuLMIDangVb61hFkzI7Vm8WCgpSxrWVLSdx5z9dhtMoPdp5NZILUSiLsIuGfq9NpEGWgIZBUCAwEAAQ==\",\"aadProfile\":{\"tenantId\":\"\",\"clientAppId\":\"\",\"serverAppId\":\"\"}}}" + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/connaks-rg-dsev73/providers/Microsoft.Kubernetes/connectedClusters/connaks-axi04f\",\"name\":\"connaks-axi04f\",\"type\":\"Microsoft.Kubernetes/connectedClusters\",\"location\":\"eastus\",\"tags\":{\"key2\":\"2\",\"key1\":\"1\",\"key3\":\"3\"},\"systemData\":{\"createdBy\":\"v-lipyo@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-02-19T08:05:10.2254871Z\",\"lastModifiedBy\":\"v-lipyo@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2021-02-19T08:07:45.658806Z\"},\"identity\":{\"principalId\":\"daff3ea0-381c-4b8f-9318-43a78590a91f\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"type\":\"SystemAssigned\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"connectivityStatus\":\"Connecting\",\"agentPublicKeyCertificate\":\"MIICCgKCAgEA032bTmAoPoPOztxzUg2giqZmnOELmmEasIU7O4H3k6PeSImDonlTdJeBQb6+qay8KYOTmWca9FPilmvQVWperHNlKVc30reU38isrvdZu55hlC4b/XQMDh+0mUzaa05SpgvZ2ExyO52bjfxDvFNO/HMzR0vsJv+jjWjt++y0qguHFoBuk3F5tlvcrA+lJrwmWA1EeekaPLJqcJNjdllrfc6GOQfkNAHFFbpH2HepYjD5q9ocglcnD8Qag8llLGNkoN9F1+orw7FI1qOiZNdfNrxdZ4OZqXWXmYyjYA/uu4OpqPbUsTBbpHlS4LrOekcWx2Tut+AuBuzFXFFoH3sxm0meyYbMNzSZnlzPiMNuLNC5AmSoW6vrDvEyEga3FYDSINkIE9PHoM8BRb2Wb4kZly8KuKonEvQG/960TQaIIFHynQFqxsnonbqXPfoDJvocjCGheaKaBIjsnT8CzC/+DZ2cC8R4vOwAIPO2LNoKWEjmNL90Dcxa5Rr7aR48P7NB0KXEIEqcgB57dELnS/KtMaBgMFlvl3NST2fJFiS8l3hjtYJKS+XK0IPSO9xHNrlQozs8rXXXiS0LpPBfGSt4bajHFKnLwg5OewLsgAR20mKgLqrBH3miQMl/plcGVLvJpS93muc/V8oNKF1Ape0W3rT+EDvFHJowcTx3nvoAKIkCAwEAAQ==\"}}", + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/ConnectedKubernetes/test/env.json b/src/ConnectedKubernetes/test/env.json index 3c88dc4b345c..da028a47b36b 100644 --- a/src/ConnectedKubernetes/test/env.json +++ b/src/ConnectedKubernetes/test/env.json @@ -1,11 +1,11 @@ { - "connaksName03": "connaks-7fwpju", + "resourceGroup": "connaks-rg-dsev73", + "connaksName03": "connaks-346ipq", + "connaksName01": "connaks-fbic7z", "SubscriptionId": "9e223dbe-3399-4e19-88eb-0975f02ac87f", - "resourceGroup": "connaks-rg-576v9w", - "connaksName01": "connaks-ep8b1c", - "kubeContext": "portal-aks-t01", - "location": "eastus", - "connaksName02": "connaks-deq5jb", + "connaksName00": "connaks-vq7er3", "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "connaksName00": "connaks-s25w9c" + "kubeContext": "youriKubtest", + "connaksName02": "connaks-axi04f", + "location": "eastus" } diff --git a/src/ConnectedKubernetes/test/readme.md b/src/ConnectedKubernetes/test/readme.md index 1969200c6a09..7c752b4c8c43 100644 --- a/src/ConnectedKubernetes/test/readme.md +++ b/src/ConnectedKubernetes/test/readme.md @@ -1,5 +1,5 @@ # Test -This directory contains the [Pester](https://www.powershellgallery.com/packages/Pester) tests to run for the module. We use Pester as it is the unofficial standard for PowerShell unit testing. Test stubs for custom cmdlets (created in `../custom`) will be generated into this folder when `build-module.ps1` is ran. These test stubs will fail automatically, to indicate that tests should be written for custom cmdlets. +This directory contains the [Pester](https://www.powershellgallery.com/packages/Pester) tests to run for the module. We use Pester as it is the unofficial standard for PowerShell unit testing. Test stubs for custom cmdlets (created in `..\custom`) will be generated into this folder when `build-module.ps1` is ran. These test stubs will fail automatically, to indicate that tests should be written for custom cmdlets. ## Info - Modifiable: yes diff --git a/src/ConnectedKubernetes/test/utils.ps1 b/src/ConnectedKubernetes/test/utils.ps1 index d97a8f940e67..62162557a1a7 100644 --- a/src/ConnectedKubernetes/test/utils.ps1 +++ b/src/ConnectedKubernetes/test/utils.ps1 @@ -26,7 +26,7 @@ function setupEnv() { $env.Add('connaksName02', $connaksName02) $env.Add('connaksName03', $connaksName03) - $kubeContext = 'portal-aks-t01' + $kubeContext = 'youriKubtest' $env.Add('kubeContext', $kubeContext) New-AzConnectedKubernetes -ClusterName $env.connaksName00 -ResourceGroupName $env.resourceGroup -Location $env.location New-AzConnectedKubernetes -ClusterName $env.connaksName01 -ResourceGroupName $env.resourceGroup -Location $env.location -KubeConfig $HOME\.kube\config -KubeContext $kubeContext