diff --git a/src/CloudService/Az.CloudService.format.ps1xml b/src/CloudService/Az.CloudService.format.ps1xml index 388b41a0ac03..b802a5e00071 100644 --- a/src/CloudService/Az.CloudService.format.ps1xml +++ b/src/CloudService/Az.CloudService.format.ps1xml @@ -11,6 +11,15 @@ + + + + + + + + + @@ -33,6 +42,15 @@ CloudServiceName + + Location + + + OSFamilyName + + + OSVersionName + ResourceGroupName @@ -54,9 +72,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudService - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudService @@ -94,9 +112,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceTags + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceTags - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceTags + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceTags @@ -116,9 +134,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultCertificate + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceVaultCertificate - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultCertificate + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceVaultCertificate @@ -138,9 +156,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ResourceInstanceViewStatus + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ResourceInstanceViewStatus - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ResourceInstanceViewStatus + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ResourceInstanceViewStatus @@ -184,9 +202,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceTags + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstanceTags - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceTags + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstanceTags @@ -206,9 +224,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.StatusCodeCount + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.StatusCodeCount - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.StatusCodeCount + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.StatusCodeCount @@ -234,9 +252,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ApiError + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ApiError - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ApiError + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ApiError @@ -268,9 +286,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ApiErrorBase + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ApiErrorBase - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ApiErrorBase + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ApiErrorBase @@ -302,9 +320,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceExtensionProperties + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceExtensionProperties - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceExtensionProperties + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceExtensionProperties @@ -372,9 +390,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceInstanceView + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceInstanceView - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceInstanceView + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceInstanceView @@ -400,9 +418,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceListResult + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceListResult - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceListResult + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceListResult @@ -422,12 +440,15 @@ - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceProperties + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceProperties - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceProperties + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceProperties + + + @@ -453,6 +474,9 @@ + + AllowModelOverride + Configuration @@ -480,9 +504,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRole + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRole - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRole + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRole @@ -514,9 +538,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleListResult + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleListResult - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleListResult + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleListResult @@ -536,9 +560,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfileProperties + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleProfileProperties - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfileProperties + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleProfileProperties @@ -576,9 +600,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProperties + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleProperties - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProperties + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleProperties @@ -598,9 +622,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleSku + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleSku - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleSku + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleSku @@ -632,9 +656,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceUpdateTags + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceUpdateTags - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceUpdateTags + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceUpdateTags @@ -654,9 +678,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultAndSecretReference + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceVaultAndSecretReference - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultAndSecretReference + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceVaultAndSecretReference @@ -676,9 +700,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.Extension - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.Extension @@ -722,9 +746,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InnerError + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.InnerError - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InnerError + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.InnerError @@ -750,9 +774,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InstanceSku + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.InstanceSku - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InstanceSku + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.InstanceSku @@ -778,9 +802,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfiguration + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerConfiguration - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfiguration + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerConfiguration @@ -806,9 +830,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfiguration + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerFrontendIPConfiguration - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfiguration + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerFrontendIPConfiguration @@ -828,9 +852,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfigurationProperties + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerFrontendIPConfigurationProperties - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfigurationProperties + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerFrontendIPConfigurationProperties @@ -850,9 +874,253 @@ - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstance + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSFamily + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSFamily + + + + + + + + + + + + + + + Name + + + Label + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSFamilyListResult + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSFamilyListResult + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSFamilyProperties + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSFamilyProperties + + + + + + + + + + + + + + + Label + + + Name + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSVersion + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSVersion + + + + + + + + + + + + + + + + + + + + + + + + + + + Name + + + Label + + + IsDefault + + + IsActive + + + Family + + + FamilyLabel + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSVersionListResult + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSVersionListResult + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSVersionProperties + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSVersionProperties + + + + + + + + + + + + + + + + + + + + + + + + + + + Family + + + FamilyLabel + + + IsActive + + + IsDefault + + + Label + + + Version + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSVersionPropertiesBase + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSVersionPropertiesBase + + + + + + + + + + + + + + + + + + + + + IsActive + + + IsDefault + + + Label + + + Version + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstance - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstance + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstance @@ -890,9 +1158,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceListResult + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstanceListResult - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceListResult + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstanceListResult @@ -912,9 +1180,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstances + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstances - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstances + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstances @@ -934,9 +1202,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceView + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstanceView - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceView + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstanceView @@ -968,9 +1236,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.UpdateDomain + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.UpdateDomain - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.UpdateDomain + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.UpdateDomain @@ -990,9 +1258,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.UpdateDomainListResult + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.UpdateDomainListResult - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.UpdateDomainListResult + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.UpdateDomainListResult diff --git a/src/CloudService/Az.CloudService.psd1 b/src/CloudService/Az.CloudService.psd1 index 93846506058d..3d4f18d8e5ee 100644 --- a/src/CloudService/Az.CloudService.psd1 +++ b/src/CloudService/Az.CloudService.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 2021-03-02 +# Generated on: 2021-03-30 # @{ @@ -12,7 +12,7 @@ RootModule = './Az.CloudService.psm1' # Version number of this module. -ModuleVersion = '0.1.0' +ModuleVersion = '0.2.0' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' @@ -70,8 +70,8 @@ FormatsToProcess = './Az.CloudService.format.ps1xml' # 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-AzCloudService', 'Get-AzCloudServiceInstanceView', - 'Get-AzCloudServiceNetworkInterfaces', - 'Get-AzCloudServicePublicIPAddress', + 'Get-AzCloudServiceNetworkInterfaces', 'Get-AzCloudServiceOSFamily', + 'Get-AzCloudServiceOSVersion', 'Get-AzCloudServicePublicIPAddress', 'Get-AzCloudServiceRoleInstance', 'Get-AzCloudServiceRoleInstanceRemoteDesktopFile', 'Get-AzCloudServiceRoleInstanceView', @@ -127,7 +127,8 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - # ReleaseNotes = '' + ReleaseNotes = '* Bumped API version to stable 2021-03-01 + * Supported OSFamily and OSVersion' # Prerelease string of this module # Prerelease = '' diff --git a/src/CloudService/Changelog.md b/src/CloudService/Changelog.md index d8b33fa77979..fd667da2dce8 100644 --- a/src/CloudService/Changelog.md +++ b/src/CloudService/Changelog.md @@ -19,6 +19,10 @@ --> ## Upcoming Release +## Version 0.2.0 +* Bumped API version to stable 2021-03-01 +* Supported OSFamily and OSVersion + ## Version 0.1.0 * First preview release for module Az.CloudService diff --git a/src/CloudService/Properties/AssemblyInfo.cs b/src/CloudService/Properties/AssemblyInfo.cs index 3264b6b31b59..9ae2aeda4a93 100644 --- a/src/CloudService/Properties/AssemblyInfo.cs +++ b/src/CloudService/Properties/AssemblyInfo.cs @@ -24,5 +24,5 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("1fe4b4c7-44d2-4800-a935-733381e663ae")] -[assembly: AssemblyVersion("0.1.0")] -[assembly: AssemblyFileVersion("0.1.0")] +[assembly: AssemblyVersion("0.2.0")] +[assembly: AssemblyFileVersion("0.2.0")] diff --git a/src/CloudService/custom/Get-AzCloudServiceNetworkInterface.ps1 b/src/CloudService/custom/Get-AzCloudServiceNetworkInterface.ps1 index 9ff1d5179499..639aa088ca23 100644 --- a/src/CloudService/custom/Get-AzCloudServiceNetworkInterface.ps1 +++ b/src/CloudService/custom/Get-AzCloudServiceNetworkInterface.ps1 @@ -44,7 +44,7 @@ function Get-AzCloudServiceNetworkInterfaces { [string] $RoleInstanceName, [Parameter(Mandatory=$true, ParameterSetName="CloudService", HelpMessage="CloudService instance.")] - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService] $CloudService + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudService] $CloudService ) process { $ApiVersion = "2020-06-01" diff --git a/src/CloudService/custom/Get-AzCloudServicePublicIPAddress.ps1 b/src/CloudService/custom/Get-AzCloudServicePublicIPAddress.ps1 index e0bf42990c10..6cf76b784e4b 100644 --- a/src/CloudService/custom/Get-AzCloudServicePublicIPAddress.ps1 +++ b/src/CloudService/custom/Get-AzCloudServicePublicIPAddress.ps1 @@ -38,7 +38,7 @@ function Get-AzCloudServicePublicIPAddress { [string] $CloudServiceName, [Parameter(Mandatory=$true, ParameterSetName="CloudService", HelpMessage="CloudService instance.")] - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService] $CloudService + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudService] $CloudService ) process { $ApiVersion = "2020-06-01" diff --git a/src/CloudService/custom/New-AzCloudServiceDiagnosticsExtension.ps1 b/src/CloudService/custom/New-AzCloudServiceDiagnosticsExtension.ps1 index 870ad039da73..552fff5f63f6 100644 --- a/src/CloudService/custom/New-AzCloudServiceDiagnosticsExtension.ps1 +++ b/src/CloudService/custom/New-AzCloudServiceDiagnosticsExtension.ps1 @@ -19,11 +19,13 @@ Create a in-memory object for Diagnostics Extension Create a in-memory object for Diagnostics Extension .Outputs -Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.Extension +.Link +https://docs.microsoft.com/powershell/module/az.CloudService/New-AzCloudServiceDiagnosticsExtension #> function New-AzCloudServiceDiagnosticsExtension { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.Extension')] param( [Parameter(HelpMessage="Name of Diagnostics Extension.", Mandatory)] [string] $Name, diff --git a/src/CloudService/custom/New-AzCloudServiceExtensionObject.ps1 b/src/CloudService/custom/New-AzCloudServiceExtensionObject.ps1 index 7440e112eabb..db7fc1d24486 100644 --- a/src/CloudService/custom/New-AzCloudServiceExtensionObject.ps1 +++ b/src/CloudService/custom/New-AzCloudServiceExtensionObject.ps1 @@ -20,12 +20,12 @@ Create a in-memory object for Extension Create a in-memory object for Extension .Outputs -Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.Extension .Link https://docs.microsoft.com/powershell/module/az.CloudService/new-AzCloudServiceExtensionObject #> function New-AzCloudServiceExtensionObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.Extension')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -56,7 +56,7 @@ function New-AzCloudServiceExtensionObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.Extension]::New() $Object.AutoUpgradeMinorVersion = $AutoUpgradeMinorVersion $Object.Name = $Name diff --git a/src/CloudService/custom/New-AzCloudServiceLoadBalancerConfigurationObject.ps1 b/src/CloudService/custom/New-AzCloudServiceLoadBalancerConfigurationObject.ps1 index d6921be9ab86..ac7a801b6bc1 100644 --- a/src/CloudService/custom/New-AzCloudServiceLoadBalancerConfigurationObject.ps1 +++ b/src/CloudService/custom/New-AzCloudServiceLoadBalancerConfigurationObject.ps1 @@ -20,17 +20,17 @@ Create a in-memory object for LoadBalancerConfiguration Create a in-memory object for LoadBalancerConfiguration .Outputs -Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfiguration +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerConfiguration .Link https://docs.microsoft.com/powershell/module/az.CloudService/new-AzCloudServiceLoadBalancerConfigurationObject #> function New-AzCloudServiceLoadBalancerConfigurationObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfiguration')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerConfiguration')] [CmdletBinding(PositionalBinding=$false)] Param( [Parameter(HelpMessage="FrontendIPConfiguration.")] - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration[]] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfiguration[]] $FrontendIPConfiguration, [Parameter(HelpMessage="Name of LoadBalancerConfiguration.")] [string] @@ -38,7 +38,7 @@ function New-AzCloudServiceLoadBalancerConfigurationObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfiguration]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerConfiguration]::New() $Object.FrontendIPConfiguration = $FrontendIPConfiguration $Object.Name = $Name diff --git a/src/CloudService/custom/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.ps1 b/src/CloudService/custom/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.ps1 index 1f1db847f60f..31976a395c56 100644 --- a/src/CloudService/custom/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.ps1 +++ b/src/CloudService/custom/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.ps1 @@ -20,12 +20,12 @@ Create a in-memory object for LoadBalancerFrontendIPConfiguration Create a in-memory object for LoadBalancerFrontendIPConfiguration .Outputs -Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfiguration +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerFrontendIPConfiguration .Link https://docs.microsoft.com/powershell/module/az.CloudService/new-AzCloudServiceLoadBalancerFrontendIPConfigurationObject #> function New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfiguration')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerFrontendIPConfiguration')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -38,7 +38,7 @@ function New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfiguration]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerFrontendIPConfiguration]::New() $Object.Name = $Name $Object.PublicIPAddressId = $PublicIPAddressId diff --git a/src/CloudService/custom/New-AzCloudServiceRemoteDesktopExtensionObject.ps1 b/src/CloudService/custom/New-AzCloudServiceRemoteDesktopExtensionObject.ps1 index 92e1915fed54..94ce2a09a18a 100644 --- a/src/CloudService/custom/New-AzCloudServiceRemoteDesktopExtensionObject.ps1 +++ b/src/CloudService/custom/New-AzCloudServiceRemoteDesktopExtensionObject.ps1 @@ -17,10 +17,15 @@ Create a in-memory object for Remote Desktop Extension .Description Create a in-memory object for Remote Desktop Extension + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.Extension +.Link +https://docs.microsoft.com/powershell/module/az.CloudService/New-AzCloudServiceRemoteDesktopExtensionObject #> function New-AzCloudServiceRemoteDesktopExtensionObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.Extension')] param( [Parameter(HelpMessage="Name of Remote Desktop Extension.", Mandatory)] [string] $Name, diff --git a/src/CloudService/custom/New-AzCloudServiceRoleProfilePropertiesObject.ps1 b/src/CloudService/custom/New-AzCloudServiceRoleProfilePropertiesObject.ps1 index 9e6e47c4f00d..ffd5e2966fc3 100644 --- a/src/CloudService/custom/New-AzCloudServiceRoleProfilePropertiesObject.ps1 +++ b/src/CloudService/custom/New-AzCloudServiceRoleProfilePropertiesObject.ps1 @@ -20,12 +20,12 @@ Create a in-memory object for CloudServiceRoleProfileProperties Create a in-memory object for CloudServiceRoleProfileProperties .Outputs -Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfileProperties +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleProfileProperties .Link https://docs.microsoft.com/powershell/module/az.CloudService/new-AzCloudServiceRoleProfilePropertiesObject #> function New-AzCloudServiceRoleProfilePropertiesObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfileProperties')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleProfileProperties')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -44,7 +44,7 @@ function New-AzCloudServiceRoleProfilePropertiesObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfileProperties]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleProfileProperties]::New() $Object.Name = $Name $Object.SkuCapacity = $SkuCapacity diff --git a/src/CloudService/custom/New-AzCloudServiceVaultSecretGroupObject.ps1 b/src/CloudService/custom/New-AzCloudServiceVaultSecretGroupObject.ps1 index 0700742482d3..7aeacaafe8a0 100644 --- a/src/CloudService/custom/New-AzCloudServiceVaultSecretGroupObject.ps1 +++ b/src/CloudService/custom/New-AzCloudServiceVaultSecretGroupObject.ps1 @@ -19,13 +19,13 @@ Create a in-memory object for Vault Secret Group Create a in-memory object for Secret Group .Outputs -Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultSecretGroup +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceVaultSecretGroup .Link https://docs.microsoft.com/powershell/module/az.CloudService/new-AzCloudServiceVaultSecretGroupObject #> function New-AzCloudServiceVaultSecretGroupObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultSecretGroup')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceVaultSecretGroup')] [CmdletBinding(PositionalBinding=$false)] Param( [Parameter(HelpMessage="Key Vault Resource Id.")] @@ -41,12 +41,12 @@ function New-AzCloudServiceVaultSecretGroupObject { $certificateUrls = @() ForEach ($url in $CertificateUrl) { - $cloudServiceVaultCertificate = [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultCertificate]::New() + $cloudServiceVaultCertificate = [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceVaultCertificate]::New() $cloudServiceVaultCertificate.CertificateUrl = $url $certificateUrls = $certificateUrls + $cloudServiceVaultCertificate } - $cloudServiceVaultSecretGroup = [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultSecretGroup]::New() + $cloudServiceVaultSecretGroup = [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceVaultSecretGroup]::New() $cloudServiceVaultSecretGroup.SourceVaultId = $Id $cloudServiceVaultSecretGroup.VaultCertificate = $certificateUrls diff --git a/src/CloudService/custom/Serialization/CloudService.cs b/src/CloudService/custom/Serialization/CloudService.cs index 4cc1936adaa7..472242bf6f8b 100644 --- a/src/CloudService/custom/Serialization/CloudService.cs +++ b/src/CloudService/custom/Serialization/CloudService.cs @@ -3,7 +3,7 @@ using System.Text; using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json; -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { public partial class CloudService { diff --git a/src/CloudService/custom/Serialization/CloudServiceTags.cs b/src/CloudService/custom/Serialization/CloudServiceTags.cs index 15db3d2243a9..dac635f1f567 100644 --- a/src/CloudService/custom/Serialization/CloudServiceTags.cs +++ b/src/CloudService/custom/Serialization/CloudServiceTags.cs @@ -3,7 +3,7 @@ using System.Text; using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json; -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { public partial class CloudServiceTags { diff --git a/src/CloudService/custom/Serialization/CloudServiceVaultCertificate.cs b/src/CloudService/custom/Serialization/CloudServiceVaultCertificate.cs index b78f1bf8e2a0..6d4b473cf830 100644 --- a/src/CloudService/custom/Serialization/CloudServiceVaultCertificate.cs +++ b/src/CloudService/custom/Serialization/CloudServiceVaultCertificate.cs @@ -3,7 +3,7 @@ using System.Text; using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json; -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { public partial class CloudServiceVaultCertificate { diff --git a/src/CloudService/custom/Serialization/ResourceInstanceViewStatus.cs b/src/CloudService/custom/Serialization/ResourceInstanceViewStatus.cs index cb142c0a1f58..f60bf2d62a65 100644 --- a/src/CloudService/custom/Serialization/ResourceInstanceViewStatus.cs +++ b/src/CloudService/custom/Serialization/ResourceInstanceViewStatus.cs @@ -3,7 +3,7 @@ using System.Text; using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json; -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { public partial class ResourceInstanceViewStatus { diff --git a/src/CloudService/custom/Serialization/RoleInstanceTags.cs b/src/CloudService/custom/Serialization/RoleInstanceTags.cs index 5586d44f530c..6200353ad038 100644 --- a/src/CloudService/custom/Serialization/RoleInstanceTags.cs +++ b/src/CloudService/custom/Serialization/RoleInstanceTags.cs @@ -3,7 +3,7 @@ using System.Text; using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json; -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { public partial class RoleInstanceTags { diff --git a/src/CloudService/custom/Serialization/StatusCodeCount.cs b/src/CloudService/custom/Serialization/StatusCodeCount.cs index 0b55b653cc46..4c83a51361af 100644 --- a/src/CloudService/custom/Serialization/StatusCodeCount.cs +++ b/src/CloudService/custom/Serialization/StatusCodeCount.cs @@ -3,7 +3,7 @@ using System.Text; using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json; -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { public partial class StatusCodeCount { diff --git a/src/CloudService/custom/Switch-AzCloudService.ps1 b/src/CloudService/custom/Switch-AzCloudService.ps1 index 841cc6b6e4b8..9f263e0760f4 100644 --- a/src/CloudService/custom/Switch-AzCloudService.ps1 +++ b/src/CloudService/custom/Switch-AzCloudService.ps1 @@ -39,7 +39,7 @@ function Switch-AzCloudService { [Parameter(Mandatory=$true, ParameterSetName="CloudService")] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudService] ${CloudService}, [Parameter(Mandatory=$true, ParameterSetName="CloudServiceName")] diff --git a/src/CloudService/examples/Get-AzCloudServiceOSFamily.md b/src/CloudService/examples/Get-AzCloudServiceOSFamily.md new file mode 100644 index 000000000000..459d250136d3 --- /dev/null +++ b/src/CloudService/examples/Get-AzCloudServiceOSFamily.md @@ -0,0 +1,25 @@ +### Example 1: Get all OS families in a location +```powershell +PS C:\> Get-AzCloudServiceOSFamily -location 'westus2' + +Name Label +---- ----- +5 Windows Server 2016 +4 Windows Server 2012 R2 +6 Windows Server 2019 +3 Windows Server 2012 +2 Windows Server 2008 R2 +``` + +This command gets all OS families in location westus2 + +### Example 2: Get OS family +```powershell +PS C:\> Get-AzCloudServiceOSFamily -location 'westus2' -OSFamilyName 5 + +Name Label +---- ----- +5 Windows Server 2016 +``` + +This command gets OS family named 5 that is located in westus2. diff --git a/src/CloudService/examples/Get-AzCloudServiceOSVersion.md b/src/CloudService/examples/Get-AzCloudServiceOSVersion.md new file mode 100644 index 000000000000..52ade37f7d42 --- /dev/null +++ b/src/CloudService/examples/Get-AzCloudServiceOSVersion.md @@ -0,0 +1,25 @@ +### Example 1: Get all OS versions in a location +```powershell +PS C:\> Get-AzCloudServiceOSVersion -location 'westus2' + +Name Label IsDefault IsActive Family FamilyLabel +---- ----- --------- -------- ------ ----------- +WA-GUEST-OS-6.7_201905-01 Windows Azure Guest OS 6.7 (Release 201905-01) False False 6 Windows Server 2019 +WA-GUEST-OS-3.21_201411-01 Windows Azure Guest OS 3.21 (Release 201411-01) False False 3 Windows Server 2012 +WA-GUEST-OS-3.34_201512-01 Windows Azure Guest OS 3.34 (Release 201512-01) False False 3 Windows Server 2012 +WA-GUEST-OS-3.26_201504-01 Windows Azure Guest OS 3.26 (Release 201504-01) False False 3 Windows Server 2012 +WA-GUEST-OS-2.46_201512-01 Windows Azure Guest OS 2.46 (Release 201512-01) False False 2 Windows Server 2008 R2 +``` + +This command gets all OS versions in location westus2 + +### Example 2: Get OS version +```powershell +PS C:\> Get-AzCloudServiceOSVersion -location 'westus2' -OSVersionName 'WA-GUEST-OS-6.7_201905-01' + +Name Label IsDefault IsActive Family FamilyLabel +---- ----- --------- -------- ------ ----------- +WA-GUEST-OS-6.7_201905-01 Windows Azure Guest OS 6.7 (Release 201905-01) False False 6 Windows Server 2019 +``` + +This command gets OS version named WA-GUEST-OS-6.7_201905-01 that is located in westus2. diff --git a/src/CloudService/exports/Get-AzCloudService.ps1 b/src/CloudService/exports/Get-AzCloudService.ps1 index 29f8bb999cdb..75c5a60de178 100644 --- a/src/CloudService/exports/Get-AzCloudService.ps1 +++ b/src/CloudService/exports/Get-AzCloudService.ps1 @@ -58,7 +58,7 @@ UpgradeMode : Auto .Inputs Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService .Notes COMPLEX PARAMETER PROPERTIES @@ -67,6 +67,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [CloudServiceName ]: [Id ]: Resource identity path + [Location ]: Name of the location that the OS version pertains to. + [OSFamilyName ]: Name of the OS family. + [OSVersionName ]: Name of the OS version. [ResourceGroupName ]: [RoleInstanceName ]: Name of the role instance. [RoleName ]: Name of the role. @@ -76,7 +79,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.cloudservice/get-azcloudservice #> function Get-AzCloudService { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/src/CloudService/exports/Get-AzCloudServiceInstanceView.ps1 b/src/CloudService/exports/Get-AzCloudServiceInstanceView.ps1 index 4602ea107095..3baa34d070e0 100644 --- a/src/CloudService/exports/Get-AzCloudServiceInstanceView.ps1 +++ b/src/CloudService/exports/Get-AzCloudServiceInstanceView.ps1 @@ -67,12 +67,12 @@ PS C:\>$cloudServiceInstanceView.ToJsonString() } .Outputs -Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceView +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceView .Link https://docs.microsoft.com/powershell/module/az.cloudservice/get-azcloudserviceinstanceview #> function Get-AzCloudServiceInstanceView { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceView])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceView])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/src/CloudService/exports/Get-AzCloudServiceNetworkInterfaces.ps1 b/src/CloudService/exports/Get-AzCloudServiceNetworkInterfaces.ps1 index c0e5dddaa626..3e2af9bb70c5 100644 --- a/src/CloudService/exports/Get-AzCloudServiceNetworkInterfaces.ps1 +++ b/src/CloudService/exports/Get-AzCloudServiceNetworkInterfaces.ps1 @@ -36,6 +36,7 @@ To create the parameters described below, construct a hash table containing the CLOUDSERVICE : CloudService instance. Location : Resource location. + [AllowModelOverride ]: (Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override the role instance count and vm size specified in the .cscfg and .csdef respectively. The default value is `false`. [Configuration ]: Specifies the XML service configuration (.cscfg) for the cloud service. [ConfigurationUrl ]: Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. [ExtensionProfile ]: Describes a cloud service extension profile. @@ -52,14 +53,15 @@ CLOUDSERVICE : CloudService instance. [Type ]: Specifies the type of the extension. [TypeHandlerVersion ]: Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance. [NetworkProfile ]: Network Profile for the cloud service. - [LoadBalancerConfiguration ]: The list of load balancer configurations for the cloud service. - [FrontendIPConfiguration ]: List of IP - [Name ]: - [PrivateIPAddress ]: The private IP address referenced by the cloud service. + [LoadBalancerConfiguration ]: List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to a Public Load Balancer and an Internal Load Balancer. + FrontendIPConfiguration : Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration. + Name : The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource. + [PrivateIPAddress ]: The virtual network private IP address of the IP configuration. [PublicIPAddressId ]: Resource Id [SubnetId ]: Resource Id - [Name ]: Resource Name - [SwappableCloudService ]: + Name : The name of the Load balancer + [Id ]: Resource Id + [SwappableCloudService ]: The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap. This property cannot be updated once it is set. The swappable cloud service referred by this id must be present otherwise an error will be thrown. [Id ]: Resource Id [OSProfile ]: Describes the OS profile for the cloud service. [Secret ]: Specifies set of certificates that should be installed onto the role instances. @@ -92,7 +94,7 @@ param( [Parameter(ParameterSetName='CloudService', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudService] # CloudService instance. # To construct, see NOTES section for CLOUDSERVICE properties and create a hash table. ${CloudService}, diff --git a/src/CloudService/exports/Get-AzCloudServiceOSFamily.ps1 b/src/CloudService/exports/Get-AzCloudServiceOSFamily.ps1 new file mode 100644 index 000000000000..467e35c464ea --- /dev/null +++ b/src/CloudService/exports/Get-AzCloudServiceOSFamily.ps1 @@ -0,0 +1,181 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Gets properties of a guest operating system family that can be specified in the XML service configuration (.cscfg) for a cloud service. +.Description +Gets properties of a guest operating system family that can be specified in the XML service configuration (.cscfg) for a cloud service. +.Example +PS C:\> Get-AzCloudServiceOSFamily -location 'westus2' + +Name Label +---- ----- +5 Windows Server 2016 +4 Windows Server 2012 R2 +6 Windows Server 2019 +3 Windows Server 2012 +2 Windows Server 2008 R2 +.Example +PS C:\> Get-AzCloudServiceOSFamily -location 'westus2' -OSFamilyName 5 + +Name Label +---- ----- +5 Windows Server 2016 + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamily +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [CloudServiceName ]: + [Id ]: Resource identity path + [Location ]: Name of the location that the OS version pertains to. + [OSFamilyName ]: Name of the OS family. + [OSVersionName ]: Name of the OS version. + [ResourceGroupName ]: + [RoleInstanceName ]: Name of the role instance. + [RoleName ]: Name of the role. + [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [UpdateDomain ]: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. +.Link +https://docs.microsoft.com/powershell/module/az.cloudservice/get-azcloudserviceosfamily +#> +function Get-AzCloudServiceOSFamily { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamily])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the location that the OS family pertains to. + ${Location}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the OS family. + ${OSFamilyName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Get = 'Az.CloudService.private\Get-AzCloudServiceOSFamily_Get'; + GetViaIdentity = 'Az.CloudService.private\Get-AzCloudServiceOSFamily_GetViaIdentity'; + List = 'Az.CloudService.private\Get-AzCloudServiceOSFamily_List'; + } + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CloudService/exports/Get-AzCloudServiceOSVersion.ps1 b/src/CloudService/exports/Get-AzCloudServiceOSVersion.ps1 new file mode 100644 index 000000000000..cb8d6ca39105 --- /dev/null +++ b/src/CloudService/exports/Get-AzCloudServiceOSVersion.ps1 @@ -0,0 +1,181 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Gets properties of a guest operating system version that can be specified in the XML service configuration (.cscfg) for a cloud service. +.Description +Gets properties of a guest operating system version that can be specified in the XML service configuration (.cscfg) for a cloud service. +.Example +PS C:\> Get-AzCloudServiceOSVersion -location 'westus2' + +Name Label IsDefault IsActive Family FamilyLabel +---- ----- --------- -------- ------ ----------- +WA-GUEST-OS-6.7_201905-01 Windows Azure Guest OS 6.7 (Release 201905-01) False False 6 Windows Server 2019 +WA-GUEST-OS-3.21_201411-01 Windows Azure Guest OS 3.21 (Release 201411-01) False False 3 Windows Server 2012 +WA-GUEST-OS-3.34_201512-01 Windows Azure Guest OS 3.34 (Release 201512-01) False False 3 Windows Server 2012 +WA-GUEST-OS-3.26_201504-01 Windows Azure Guest OS 3.26 (Release 201504-01) False False 3 Windows Server 2012 +WA-GUEST-OS-2.46_201512-01 Windows Azure Guest OS 2.46 (Release 201512-01) False False 2 Windows Server 2008 R2 +.Example +PS C:\> Get-AzCloudServiceOSVersion -location 'westus2' -OSVersionName 'WA-GUEST-OS-6.7_201905-01' + +Name Label IsDefault IsActive Family FamilyLabel +---- ----- --------- -------- ------ ----------- +WA-GUEST-OS-6.7_201905-01 Windows Azure Guest OS 6.7 (Release 201905-01) False False 6 Windows Server 2019 + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersion +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [CloudServiceName ]: + [Id ]: Resource identity path + [Location ]: Name of the location that the OS version pertains to. + [OSFamilyName ]: Name of the OS family. + [OSVersionName ]: Name of the OS version. + [ResourceGroupName ]: + [RoleInstanceName ]: Name of the role instance. + [RoleName ]: Name of the role. + [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [UpdateDomain ]: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. +.Link +https://docs.microsoft.com/powershell/module/az.cloudservice/get-azcloudserviceosversion +#> +function Get-AzCloudServiceOSVersion { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersion])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the location that the OS version pertains to. + ${Location}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the OS version. + ${OSVersionName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Get = 'Az.CloudService.private\Get-AzCloudServiceOSVersion_Get'; + GetViaIdentity = 'Az.CloudService.private\Get-AzCloudServiceOSVersion_GetViaIdentity'; + List = 'Az.CloudService.private\Get-AzCloudServiceOSVersion_List'; + } + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CloudService/exports/Get-AzCloudServicePublicIPAddress.ps1 b/src/CloudService/exports/Get-AzCloudServicePublicIPAddress.ps1 index 4cfd0b7f2898..754c9a67d4c5 100644 --- a/src/CloudService/exports/Get-AzCloudServicePublicIPAddress.ps1 +++ b/src/CloudService/exports/Get-AzCloudServicePublicIPAddress.ps1 @@ -33,6 +33,7 @@ To create the parameters described below, construct a hash table containing the CLOUDSERVICE : CloudService instance. Location : Resource location. + [AllowModelOverride ]: (Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override the role instance count and vm size specified in the .cscfg and .csdef respectively. The default value is `false`. [Configuration ]: Specifies the XML service configuration (.cscfg) for the cloud service. [ConfigurationUrl ]: Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. [ExtensionProfile ]: Describes a cloud service extension profile. @@ -49,14 +50,15 @@ CLOUDSERVICE : CloudService instance. [Type ]: Specifies the type of the extension. [TypeHandlerVersion ]: Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance. [NetworkProfile ]: Network Profile for the cloud service. - [LoadBalancerConfiguration ]: The list of load balancer configurations for the cloud service. - [FrontendIPConfiguration ]: List of IP - [Name ]: - [PrivateIPAddress ]: The private IP address referenced by the cloud service. + [LoadBalancerConfiguration ]: List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to a Public Load Balancer and an Internal Load Balancer. + FrontendIPConfiguration : Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration. + Name : The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource. + [PrivateIPAddress ]: The virtual network private IP address of the IP configuration. [PublicIPAddressId ]: Resource Id [SubnetId ]: Resource Id - [Name ]: Resource Name - [SwappableCloudService ]: + Name : The name of the Load balancer + [Id ]: Resource Id + [SwappableCloudService ]: The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap. This property cannot be updated once it is set. The swappable cloud service referred by this id must be present otherwise an error will be thrown. [Id ]: Resource Id [OSProfile ]: Describes the OS profile for the cloud service. [Secret ]: Specifies set of certificates that should be installed onto the role instances. @@ -101,7 +103,7 @@ param( [Parameter(ParameterSetName='CloudService', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudService] # CloudService instance. # To construct, see NOTES section for CLOUDSERVICE properties and create a hash table. ${CloudService} diff --git a/src/CloudService/exports/Get-AzCloudServiceRoleInstance.ps1 b/src/CloudService/exports/Get-AzCloudServiceRoleInstance.ps1 index 2300bc42ef15..91be5b59a98c 100644 --- a/src/CloudService/exports/Get-AzCloudServiceRoleInstance.ps1 +++ b/src/CloudService/exports/Get-AzCloudServiceRoleInstance.ps1 @@ -39,7 +39,7 @@ ContosoFrontEnd_IN_0 eastus2euap Standard_D1_v2 Standard .Inputs Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstance .Notes COMPLEX PARAMETER PROPERTIES @@ -48,6 +48,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [CloudServiceName ]: [Id ]: Resource identity path + [Location ]: Name of the location that the OS version pertains to. + [OSFamilyName ]: Name of the OS family. + [OSVersionName ]: Name of the OS version. [ResourceGroupName ]: [RoleInstanceName ]: Name of the role instance. [RoleName ]: Name of the role. @@ -57,7 +60,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.cloudservice/get-azcloudserviceroleinstance #> function Get-AzCloudServiceRoleInstance { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstance])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/src/CloudService/exports/Get-AzCloudServiceRoleInstanceView.ps1 b/src/CloudService/exports/Get-AzCloudServiceRoleInstanceView.ps1 index d15cac342d6f..e3f55cc7127c 100644 --- a/src/CloudService/exports/Get-AzCloudServiceRoleInstanceView.ps1 +++ b/src/CloudService/exports/Get-AzCloudServiceRoleInstanceView.ps1 @@ -27,12 +27,12 @@ Statuses PlatformFaultDomain PlatformUpdateDomain .Outputs -Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceView .Link https://docs.microsoft.com/powershell/module/az.cloudservice/get-azcloudserviceroleinstanceview #> function Get-AzCloudServiceRoleInstanceView { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceView])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/src/CloudService/exports/Invoke-AzCloudServiceRebuild.ps1 b/src/CloudService/exports/Invoke-AzCloudServiceRebuild.ps1 index 76b27684e677..4aa80423851c 100644 --- a/src/CloudService/exports/Invoke-AzCloudServiceRebuild.ps1 +++ b/src/CloudService/exports/Invoke-AzCloudServiceRebuild.ps1 @@ -38,6 +38,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [CloudServiceName ]: [Id ]: Resource identity path + [Location ]: Name of the location that the OS version pertains to. + [OSFamilyName ]: Name of the OS family. + [OSVersionName ]: Name of the OS version. [ResourceGroupName ]: [RoleInstanceName ]: Name of the role instance. [RoleName ]: Name of the role. diff --git a/src/CloudService/exports/Invoke-AzCloudServiceReimage.ps1 b/src/CloudService/exports/Invoke-AzCloudServiceReimage.ps1 index 2b2d19353e89..b620b4c8b111 100644 --- a/src/CloudService/exports/Invoke-AzCloudServiceReimage.ps1 +++ b/src/CloudService/exports/Invoke-AzCloudServiceReimage.ps1 @@ -36,6 +36,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [CloudServiceName ]: [Id ]: Resource identity path + [Location ]: Name of the location that the OS version pertains to. + [OSFamilyName ]: Name of the OS family. + [OSVersionName ]: Name of the OS version. [ResourceGroupName ]: [RoleInstanceName ]: Name of the role instance. [RoleName ]: Name of the role. diff --git a/src/CloudService/exports/Invoke-AzCloudServiceRoleInstanceRebuild.ps1 b/src/CloudService/exports/Invoke-AzCloudServiceRoleInstanceRebuild.ps1 index e75e3a17bf5a..560c9a6cc28b 100644 --- a/src/CloudService/exports/Invoke-AzCloudServiceRoleInstanceRebuild.ps1 +++ b/src/CloudService/exports/Invoke-AzCloudServiceRoleInstanceRebuild.ps1 @@ -35,6 +35,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [CloudServiceName ]: [Id ]: Resource identity path + [Location ]: Name of the location that the OS version pertains to. + [OSFamilyName ]: Name of the OS family. + [OSVersionName ]: Name of the OS version. [ResourceGroupName ]: [RoleInstanceName ]: Name of the role instance. [RoleName ]: Name of the role. diff --git a/src/CloudService/exports/Invoke-AzCloudServiceRoleInstanceReimage.ps1 b/src/CloudService/exports/Invoke-AzCloudServiceRoleInstanceReimage.ps1 index 415c5c9ce652..b07d4fa14f88 100644 --- a/src/CloudService/exports/Invoke-AzCloudServiceRoleInstanceReimage.ps1 +++ b/src/CloudService/exports/Invoke-AzCloudServiceRoleInstanceReimage.ps1 @@ -33,6 +33,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [CloudServiceName ]: [Id ]: Resource identity path + [Location ]: Name of the location that the OS version pertains to. + [OSFamilyName ]: Name of the OS family. + [OSVersionName ]: Name of the OS version. [ResourceGroupName ]: [RoleInstanceName ]: Name of the role instance. [RoleName ]: Name of the role. diff --git a/src/CloudService/exports/New-AzCloudService.ps1 b/src/CloudService/exports/New-AzCloudService.ps1 index b02a4f6142a7..70fe7e8b5f2c 100644 --- a/src/CloudService/exports/New-AzCloudService.ps1 +++ b/src/CloudService/exports/New-AzCloudService.ps1 @@ -151,7 +151,7 @@ $cloudService = New-AzCloudService -Tag $tag .Outputs -Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService .Notes COMPLEX PARAMETER PROPERTIES @@ -172,14 +172,15 @@ EXTENSIONPROFILE : Describes a cloud service exte [TypeHandlerVersion ]: Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance. NETWORKPROFILE : Network Profile for the cloud service. - [LoadBalancerConfiguration ]: The list of load balancer configurations for the cloud service. - [FrontendIPConfiguration ]: List of IP - [Name ]: - [PrivateIPAddress ]: The private IP address referenced by the cloud service. + [LoadBalancerConfiguration ]: List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to a Public Load Balancer and an Internal Load Balancer. + FrontendIPConfiguration : Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration. + Name : The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource. + [PrivateIPAddress ]: The virtual network private IP address of the IP configuration. [PublicIPAddressId ]: Resource Id [SubnetId ]: Resource Id - [Name ]: Resource Name - [SwappableCloudService ]: + Name : The name of the Load balancer + [Id ]: Resource Id + [SwappableCloudService ]: The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap. This property cannot be updated once it is set. The swappable cloud service referred by this id must be present otherwise an error will be thrown. [Id ]: Resource Id OSPROFILE : Describes the OS profile for the cloud service. @@ -198,7 +199,7 @@ ROLEPROFILE : Describes the role profile for the cloud https://docs.microsoft.com/powershell/module/az.cloudservice/new-azcloudservice #> function New-AzCloudService { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -228,6 +229,12 @@ param( # Resource location. ${Location}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.Management.Automation.SwitchParameter] + # (Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override the role instance count and vm size specified in the .cscfg and .csdef respectively.The default value is `false`. + ${AllowModelOverride}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] [System.String] @@ -243,21 +250,21 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProfile] # Describes a cloud service extension profile. # To construct, see NOTES section for EXTENSIONPROFILE properties and create a hash table. ${ExtensionProfile}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfile] # Network Profile for the cloud service. # To construct, see NOTES section for NETWORKPROFILE properties and create a hash table. ${NetworkProfile}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceOSProfile] # Describes the OS profile for the cloud service. # To construct, see NOTES section for OSPROFILE properties and create a hash table. ${OSProfile}, @@ -271,7 +278,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfile] # Describes the role profile for the cloud service. # To construct, see NOTES section for ROLEPROFILE properties and create a hash table. ${RoleProfile}, @@ -287,7 +294,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, diff --git a/src/CloudService/exports/New-AzCloudServiceDiagnosticsExtension.ps1 b/src/CloudService/exports/New-AzCloudServiceDiagnosticsExtension.ps1 index ccb6ad958618..2f01b82813dc 100644 --- a/src/CloudService/exports/New-AzCloudServiceDiagnosticsExtension.ps1 +++ b/src/CloudService/exports/New-AzCloudServiceDiagnosticsExtension.ps1 @@ -24,12 +24,12 @@ PS C:\> $configFile = "" PS C:\> $extension = New-AzCloudServiceDiagnosticsExtension -Name "WADExtension" -ResourceGroupName "ContosOrg" -CloudServiceName "ContosCS" -StorageAccountName "ContosSA" -StorageAccountKey $storageAccountKey[0].Value -DiagnosticsConfigurationPath $configFile -TypeHandlerVersion "1.5" -AutoUpgradeMinorVersion $true .Outputs -Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.Extension .Link -https://docs.microsoft.com/powershell/module/az.cloudservice/new-azcloudservicediagnosticsextension +https://docs.microsoft.com/powershell/module/az.CloudService/new-AzCloudServiceExtensionObject #> function New-AzCloudServiceDiagnosticsExtension { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.Extension])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Position=1)] diff --git a/src/CloudService/exports/New-AzCloudServiceExtensionObject.ps1 b/src/CloudService/exports/New-AzCloudServiceExtensionObject.ps1 index b85be307bb1c..015fc51b02db 100644 --- a/src/CloudService/exports/New-AzCloudServiceExtensionObject.ps1 +++ b/src/CloudService/exports/New-AzCloudServiceExtensionObject.ps1 @@ -22,12 +22,12 @@ Create a in-memory object for Extension PS C:\> $extension = New-AzCloudServiceExtensionObject -Name "GenevaExtension" -Publisher "Microsoft.Azure.Geneva" -Type "GenevaMonitoringPaaS" -TypeHandlerVersion "2.14.0.2" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.Extension .Link https://docs.microsoft.com/powershell/module/az.CloudService/new-AzCloudServiceExtensionObject #> function New-AzCloudServiceExtensionObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.Extension])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] diff --git a/src/CloudService/exports/New-AzCloudServiceLoadBalancerConfigurationObject.ps1 b/src/CloudService/exports/New-AzCloudServiceLoadBalancerConfigurationObject.ps1 index 4e60cb4b8791..ae7400b438db 100644 --- a/src/CloudService/exports/New-AzCloudServiceLoadBalancerConfigurationObject.ps1 +++ b/src/CloudService/exports/New-AzCloudServiceLoadBalancerConfigurationObject.ps1 @@ -24,27 +24,27 @@ PS C:\> $feIpConfig = New-AzCloudServiceLoadBalancerFrontendIPConfigurationObjec PS C:\> $loadBalancerConfig = New-AzCloudServiceLoadBalancerConfigurationObject -Name 'ContosoLB' -FrontendIPConfiguration $feIpConfig .Outputs -Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfiguration +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerConfiguration .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. FRONTENDIPCONFIGURATION : FrontendIPConfiguration. - [Name ]: - [PrivateIPAddress ]: The private IP address referenced by the cloud service. + Name : The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource. + [PrivateIPAddress ]: The virtual network private IP address of the IP configuration. [PublicIPAddressId ]: Resource Id [SubnetId ]: Resource Id .Link https://docs.microsoft.com/powershell/module/az.CloudService/new-AzCloudServiceLoadBalancerConfigurationObject #> function New-AzCloudServiceLoadBalancerConfigurationObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfiguration])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerConfiguration])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration[]] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfiguration[]] # FrontendIPConfiguration. # To construct, see NOTES section for FRONTENDIPCONFIGURATION properties and create a hash table. ${FrontendIPConfiguration}, diff --git a/src/CloudService/exports/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.ps1 b/src/CloudService/exports/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.ps1 index 38a694edacbb..e4f85e6f3473 100644 --- a/src/CloudService/exports/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.ps1 +++ b/src/CloudService/exports/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.ps1 @@ -24,12 +24,12 @@ PS C:\> $feIpConfig = New-AzCloudServiceLoadBalancerFrontendIPConfigurationObjec PS C:\> $loadBalancerConfig = New-AzCloudServiceLoadBalancerConfigurationObject -Name 'ContosoLB' -FrontendIPConfiguration $feIpConfig .Outputs -Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfiguration +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerFrontendIPConfiguration .Link https://docs.microsoft.com/powershell/module/az.CloudService/new-AzCloudServiceLoadBalancerFrontendIPConfigurationObject #> function New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfiguration])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerFrontendIPConfiguration])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] diff --git a/src/CloudService/exports/New-AzCloudServiceRemoteDesktopExtensionObject.ps1 b/src/CloudService/exports/New-AzCloudServiceRemoteDesktopExtensionObject.ps1 index 1d2610d25cb4..57bbc77af876 100644 --- a/src/CloudService/exports/New-AzCloudServiceRemoteDesktopExtensionObject.ps1 +++ b/src/CloudService/exports/New-AzCloudServiceRemoteDesktopExtensionObject.ps1 @@ -24,12 +24,12 @@ PS C:\> $expiration = (Get-Date).AddYears(1) PS C:\> $extension = New-AzCloudServiceRemoteDesktopExtensionObject -Name 'RDPExtension' -Credential $credential -Expiration $expiration -TypeHandlerVersion '1.2.1' .Outputs -Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.Extension .Link -https://docs.microsoft.com/powershell/module/az.cloudservice/new-azcloudserviceremotedesktopextensionobject +https://docs.microsoft.com/powershell/module/az.CloudService/new-AzCloudServiceExtensionObject #> function New-AzCloudServiceRemoteDesktopExtensionObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.Extension])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Position=0, Mandatory)] diff --git a/src/CloudService/exports/New-AzCloudServiceRoleProfilePropertiesObject.ps1 b/src/CloudService/exports/New-AzCloudServiceRoleProfilePropertiesObject.ps1 index 31a507edf56d..ea1c2d9195b9 100644 --- a/src/CloudService/exports/New-AzCloudServiceRoleProfilePropertiesObject.ps1 +++ b/src/CloudService/exports/New-AzCloudServiceRoleProfilePropertiesObject.ps1 @@ -22,12 +22,12 @@ Create a in-memory object for CloudServiceRoleProfileProperties $role = New-AzCloudServiceRoleProfilePropertiesObject -Name 'WebRole' -SkuName 'Standard_D1_v2' -SkuTier 'Standard' -SkuCapacity 2 .Outputs -Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfileProperties +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleProfileProperties .Link https://docs.microsoft.com/powershell/module/az.CloudService/new-AzCloudServiceRoleProfilePropertiesObject #> function New-AzCloudServiceRoleProfilePropertiesObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfileProperties])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleProfileProperties])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] diff --git a/src/CloudService/exports/New-AzCloudServiceVaultSecretGroupObject.ps1 b/src/CloudService/exports/New-AzCloudServiceVaultSecretGroupObject.ps1 index 64ff7e22070d..2624ee9a7a0c 100644 --- a/src/CloudService/exports/New-AzCloudServiceVaultSecretGroupObject.ps1 +++ b/src/CloudService/exports/New-AzCloudServiceVaultSecretGroupObject.ps1 @@ -24,12 +24,12 @@ $certificate = Get-AzKeyVaultCertificate -VaultName 'ContosoKeyVault' -Name 'Con $secretGroup = New-AzCloudServiceVaultSecretGroupObject -Id $keyVault.ResourceId -CertificateUrl $certificate.SecretId .Outputs -Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultSecretGroup +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceVaultSecretGroup .Link https://docs.microsoft.com/powershell/module/az.CloudService/new-AzCloudServiceVaultSecretGroupObject #> function New-AzCloudServiceVaultSecretGroupObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultSecretGroup])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceVaultSecretGroup])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] diff --git a/src/CloudService/exports/ProxyCmdletDefinitions.ps1 b/src/CloudService/exports/ProxyCmdletDefinitions.ps1 index 59ae0d06d4eb..4787ee92d87e 100644 --- a/src/CloudService/exports/ProxyCmdletDefinitions.ps1 +++ b/src/CloudService/exports/ProxyCmdletDefinitions.ps1 @@ -67,12 +67,12 @@ PS C:\>$cloudServiceInstanceView.ToJsonString() } .Outputs -Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceView +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceView .Link https://docs.microsoft.com/powershell/module/az.cloudservice/get-azcloudserviceinstanceview #> function Get-AzCloudServiceInstanceView { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceView])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceView])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -196,6 +196,368 @@ end { # limitations under the License. # ---------------------------------------------------------------------------------- +<# +.Synopsis +Gets properties of a guest operating system family that can be specified in the XML service configuration (.cscfg) for a cloud service. +.Description +Gets properties of a guest operating system family that can be specified in the XML service configuration (.cscfg) for a cloud service. +.Example +PS C:\> Get-AzCloudServiceOSFamily -location 'westus2' + +Name Label +---- ----- +5 Windows Server 2016 +4 Windows Server 2012 R2 +6 Windows Server 2019 +3 Windows Server 2012 +2 Windows Server 2008 R2 +.Example +PS C:\> Get-AzCloudServiceOSFamily -location 'westus2' -OSFamilyName 5 + +Name Label +---- ----- +5 Windows Server 2016 + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamily +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [CloudServiceName ]: + [Id ]: Resource identity path + [Location ]: Name of the location that the OS version pertains to. + [OSFamilyName ]: Name of the OS family. + [OSVersionName ]: Name of the OS version. + [ResourceGroupName ]: + [RoleInstanceName ]: Name of the role instance. + [RoleName ]: Name of the role. + [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [UpdateDomain ]: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. +.Link +https://docs.microsoft.com/powershell/module/az.cloudservice/get-azcloudserviceosfamily +#> +function Get-AzCloudServiceOSFamily { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamily])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the location that the OS family pertains to. + ${Location}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the OS family. + ${OSFamilyName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Get = 'Az.CloudService.private\Get-AzCloudServiceOSFamily_Get'; + GetViaIdentity = 'Az.CloudService.private\Get-AzCloudServiceOSFamily_GetViaIdentity'; + List = 'Az.CloudService.private\Get-AzCloudServiceOSFamily_List'; + } + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Gets properties of a guest operating system version that can be specified in the XML service configuration (.cscfg) for a cloud service. +.Description +Gets properties of a guest operating system version that can be specified in the XML service configuration (.cscfg) for a cloud service. +.Example +PS C:\> Get-AzCloudServiceOSVersion -location 'westus2' + +Name Label IsDefault IsActive Family FamilyLabel +---- ----- --------- -------- ------ ----------- +WA-GUEST-OS-6.7_201905-01 Windows Azure Guest OS 6.7 (Release 201905-01) False False 6 Windows Server 2019 +WA-GUEST-OS-3.21_201411-01 Windows Azure Guest OS 3.21 (Release 201411-01) False False 3 Windows Server 2012 +WA-GUEST-OS-3.34_201512-01 Windows Azure Guest OS 3.34 (Release 201512-01) False False 3 Windows Server 2012 +WA-GUEST-OS-3.26_201504-01 Windows Azure Guest OS 3.26 (Release 201504-01) False False 3 Windows Server 2012 +WA-GUEST-OS-2.46_201512-01 Windows Azure Guest OS 2.46 (Release 201512-01) False False 2 Windows Server 2008 R2 +.Example +PS C:\> Get-AzCloudServiceOSVersion -location 'westus2' -OSVersionName 'WA-GUEST-OS-6.7_201905-01' + +Name Label IsDefault IsActive Family FamilyLabel +---- ----- --------- -------- ------ ----------- +WA-GUEST-OS-6.7_201905-01 Windows Azure Guest OS 6.7 (Release 201905-01) False False 6 Windows Server 2019 + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersion +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [CloudServiceName ]: + [Id ]: Resource identity path + [Location ]: Name of the location that the OS version pertains to. + [OSFamilyName ]: Name of the OS family. + [OSVersionName ]: Name of the OS version. + [ResourceGroupName ]: + [RoleInstanceName ]: Name of the role instance. + [RoleName ]: Name of the role. + [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [UpdateDomain ]: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. +.Link +https://docs.microsoft.com/powershell/module/az.cloudservice/get-azcloudserviceosversion +#> +function Get-AzCloudServiceOSVersion { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersion])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the location that the OS version pertains to. + ${Location}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the OS version. + ${OSVersionName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Get = 'Az.CloudService.private\Get-AzCloudServiceOSVersion_Get'; + GetViaIdentity = 'Az.CloudService.private\Get-AzCloudServiceOSVersion_GetViaIdentity'; + List = 'Az.CloudService.private\Get-AzCloudServiceOSVersion_List'; + } + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + <# .Synopsis Gets a remote desktop file for a role instance in a cloud service. @@ -367,12 +729,12 @@ Statuses PlatformFaultDomain PlatformUpdateDomain .Outputs -Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceView .Link https://docs.microsoft.com/powershell/module/az.cloudservice/get-azcloudserviceroleinstanceview #> function Get-AzCloudServiceRoleInstanceView { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceView])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -528,7 +890,7 @@ ContosoFrontEnd_IN_0 eastus2euap Standard_D1_v2 Standard .Inputs Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstance .Notes COMPLEX PARAMETER PROPERTIES @@ -537,6 +899,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [CloudServiceName ]: [Id ]: Resource identity path + [Location ]: Name of the location that the OS version pertains to. + [OSFamilyName ]: Name of the OS family. + [OSVersionName ]: Name of the OS version. [ResourceGroupName ]: [RoleInstanceName ]: Name of the role instance. [RoleName ]: Name of the role. @@ -546,7 +911,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.cloudservice/get-azcloudserviceroleinstance #> function Get-AzCloudServiceRoleInstance { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstance])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -740,7 +1105,7 @@ UpgradeMode : Auto .Inputs Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService .Notes COMPLEX PARAMETER PROPERTIES @@ -749,6 +1114,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [CloudServiceName ]: [Id ]: Resource identity path + [Location ]: Name of the location that the OS version pertains to. + [OSFamilyName ]: Name of the OS family. + [OSVersionName ]: Name of the OS version. [ResourceGroupName ]: [RoleInstanceName ]: Name of the role instance. [RoleName ]: Name of the role. @@ -758,7 +1126,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.cloudservice/get-azcloudservice #> function Get-AzCloudService { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -921,6 +1289,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [CloudServiceName ]: [Id ]: Resource identity path + [Location ]: Name of the location that the OS version pertains to. + [OSFamilyName ]: Name of the OS family. + [OSVersionName ]: Name of the OS version. [ResourceGroupName ]: [RoleInstanceName ]: Name of the role instance. [RoleName ]: Name of the role. @@ -1110,6 +1481,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [CloudServiceName ]: [Id ]: Resource identity path + [Location ]: Name of the location that the OS version pertains to. + [OSFamilyName ]: Name of the OS family. + [OSVersionName ]: Name of the OS version. [ResourceGroupName ]: [RoleInstanceName ]: Name of the role instance. [RoleName ]: Name of the role. @@ -1299,6 +1673,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [CloudServiceName ]: [Id ]: Resource identity path + [Location ]: Name of the location that the OS version pertains to. + [OSFamilyName ]: Name of the OS family. + [OSVersionName ]: Name of the OS version. [ResourceGroupName ]: [RoleInstanceName ]: Name of the role instance. [RoleName ]: Name of the role. @@ -1484,6 +1861,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [CloudServiceName ]: [Id ]: Resource identity path + [Location ]: Name of the location that the OS version pertains to. + [OSFamilyName ]: Name of the OS family. + [OSVersionName ]: Name of the OS version. [ResourceGroupName ]: [RoleInstanceName ]: Name of the role instance. [RoleName ]: Name of the role. @@ -1787,7 +2167,7 @@ $cloudService = New-AzCloudService -Tag $tag .Outputs -Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService .Notes COMPLEX PARAMETER PROPERTIES @@ -1808,14 +2188,15 @@ EXTENSIONPROFILE : Describes a cloud service exte [TypeHandlerVersion ]: Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance. NETWORKPROFILE : Network Profile for the cloud service. - [LoadBalancerConfiguration ]: The list of load balancer configurations for the cloud service. - [FrontendIPConfiguration ]: List of IP - [Name ]: - [PrivateIPAddress ]: The private IP address referenced by the cloud service. + [LoadBalancerConfiguration ]: List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to a Public Load Balancer and an Internal Load Balancer. + FrontendIPConfiguration : Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration. + Name : The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource. + [PrivateIPAddress ]: The virtual network private IP address of the IP configuration. [PublicIPAddressId ]: Resource Id [SubnetId ]: Resource Id - [Name ]: Resource Name - [SwappableCloudService ]: + Name : The name of the Load balancer + [Id ]: Resource Id + [SwappableCloudService ]: The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap. This property cannot be updated once it is set. The swappable cloud service referred by this id must be present otherwise an error will be thrown. [Id ]: Resource Id OSPROFILE : Describes the OS profile for the cloud service. @@ -1834,7 +2215,7 @@ ROLEPROFILE : Describes the role profile for the cloud https://docs.microsoft.com/powershell/module/az.cloudservice/new-azcloudservice #> function New-AzCloudService { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -1864,6 +2245,12 @@ param( # Resource location. ${Location}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.Management.Automation.SwitchParameter] + # (Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override the role instance count and vm size specified in the .cscfg and .csdef respectively.The default value is `false`. + ${AllowModelOverride}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] [System.String] @@ -1879,21 +2266,21 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProfile] # Describes a cloud service extension profile. # To construct, see NOTES section for EXTENSIONPROFILE properties and create a hash table. ${ExtensionProfile}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfile] # Network Profile for the cloud service. # To construct, see NOTES section for NETWORKPROFILE properties and create a hash table. ${NetworkProfile}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceOSProfile] # Describes the OS profile for the cloud service. # To construct, see NOTES section for OSPROFILE properties and create a hash table. ${OSProfile}, @@ -1907,7 +2294,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfile] # Describes the role profile for the cloud service. # To construct, see NOTES section for ROLEPROFILE properties and create a hash table. ${RoleProfile}, @@ -1923,7 +2310,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -2072,6 +2459,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [CloudServiceName ]: [Id ]: Resource identity path + [Location ]: Name of the location that the OS version pertains to. + [OSFamilyName ]: Name of the OS family. + [OSVersionName ]: Name of the OS version. [ResourceGroupName ]: [RoleInstanceName ]: Name of the role instance. [RoleName ]: Name of the role. @@ -2258,6 +2648,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [CloudServiceName ]: [Id ]: Resource identity path + [Location ]: Name of the location that the OS version pertains to. + [OSFamilyName ]: Name of the OS family. + [OSVersionName ]: Name of the OS version. [ResourceGroupName ]: [RoleInstanceName ]: Name of the role instance. [RoleName ]: Name of the role. @@ -2438,6 +2831,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [CloudServiceName ]: [Id ]: Resource identity path + [Location ]: Name of the location that the OS version pertains to. + [OSFamilyName ]: Name of the OS family. + [OSVersionName ]: Name of the OS version. [ResourceGroupName ]: [RoleInstanceName ]: Name of the role instance. [RoleName ]: Name of the role. @@ -2626,6 +3022,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [CloudServiceName ]: [Id ]: Resource identity path + [Location ]: Name of the location that the OS version pertains to. + [OSFamilyName ]: Name of the OS family. + [OSVersionName ]: Name of the OS version. [ResourceGroupName ]: [RoleInstanceName ]: Name of the role instance. [RoleName ]: Name of the role. @@ -2976,6 +3375,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [CloudServiceName ]: [Id ]: Resource identity path + [Location ]: Name of the location that the OS version pertains to. + [OSFamilyName ]: Name of the OS family. + [OSVersionName ]: Name of the OS version. [ResourceGroupName ]: [RoleInstanceName ]: Name of the role instance. [RoleName ]: Name of the role. @@ -3158,6 +3560,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [CloudServiceName ]: [Id ]: Resource identity path + [Location ]: Name of the location that the OS version pertains to. + [OSFamilyName ]: Name of the OS family. + [OSVersionName ]: Name of the OS version. [ResourceGroupName ]: [RoleInstanceName ]: Name of the role instance. [RoleName ]: Name of the role. @@ -3366,11 +3771,11 @@ PS C:\> $cloudService.Configuration = $configuration PS C:\> $cloudService | Update-AzCloudService .Inputs -Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService .Inputs Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService .Notes COMPLEX PARAMETER PROPERTIES @@ -3379,6 +3784,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [CloudServiceName ]: [Id ]: Resource identity path + [Location ]: Name of the location that the OS version pertains to. + [OSFamilyName ]: Name of the OS family. + [OSVersionName ]: Name of the OS version. [ResourceGroupName ]: [RoleInstanceName ]: Name of the role instance. [RoleName ]: Name of the role. @@ -3387,6 +3795,7 @@ INPUTOBJECT : Identity Parameter PARAMETER : Describes the cloud service. Location : Resource location. + [AllowModelOverride ]: (Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override the role instance count and vm size specified in the .cscfg and .csdef respectively. The default value is `false`. [Configuration ]: Specifies the XML service configuration (.cscfg) for the cloud service. [ConfigurationUrl ]: Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. [ExtensionProfile ]: Describes a cloud service extension profile. @@ -3403,14 +3812,15 @@ PARAMETER : Describes the cloud service. [Type ]: Specifies the type of the extension. [TypeHandlerVersion ]: Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance. [NetworkProfile ]: Network Profile for the cloud service. - [LoadBalancerConfiguration ]: The list of load balancer configurations for the cloud service. - [FrontendIPConfiguration ]: List of IP - [Name ]: - [PrivateIPAddress ]: The private IP address referenced by the cloud service. + [LoadBalancerConfiguration ]: List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to a Public Load Balancer and an Internal Load Balancer. + FrontendIPConfiguration : Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration. + Name : The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource. + [PrivateIPAddress ]: The virtual network private IP address of the IP configuration. [PublicIPAddressId ]: Resource Id [SubnetId ]: Resource Id - [Name ]: Resource Name - [SwappableCloudService ]: + Name : The name of the Load balancer + [Id ]: Resource Id + [SwappableCloudService ]: The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap. This property cannot be updated once it is set. The swappable cloud service referred by this id must be present otherwise an error will be thrown. [Id ]: Resource Id [OSProfile ]: Describes the OS profile for the cloud service. [Secret ]: Specifies set of certificates that should be installed onto the role instances. @@ -3432,7 +3842,7 @@ PARAMETER : Describes the cloud service. https://docs.microsoft.com/powershell/module/az.cloudservice/update-azcloudservice #> function Update-AzCloudService { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService])] [CmdletBinding(DefaultParameterSetName='CreateViaIdentity', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory, ValueFromPipeline)] @@ -3444,7 +3854,7 @@ param( [Parameter(Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService] # Describes the cloud service. # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, @@ -3582,6 +3992,7 @@ To create the parameters described below, construct a hash table containing the CLOUDSERVICE : CloudService instance. Location : Resource location. + [AllowModelOverride ]: (Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override the role instance count and vm size specified in the .cscfg and .csdef respectively. The default value is `false`. [Configuration ]: Specifies the XML service configuration (.cscfg) for the cloud service. [ConfigurationUrl ]: Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. [ExtensionProfile ]: Describes a cloud service extension profile. @@ -3598,14 +4009,15 @@ CLOUDSERVICE : CloudService instance. [Type ]: Specifies the type of the extension. [TypeHandlerVersion ]: Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance. [NetworkProfile ]: Network Profile for the cloud service. - [LoadBalancerConfiguration ]: The list of load balancer configurations for the cloud service. - [FrontendIPConfiguration ]: List of IP - [Name ]: - [PrivateIPAddress ]: The private IP address referenced by the cloud service. + [LoadBalancerConfiguration ]: List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to a Public Load Balancer and an Internal Load Balancer. + FrontendIPConfiguration : Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration. + Name : The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource. + [PrivateIPAddress ]: The virtual network private IP address of the IP configuration. [PublicIPAddressId ]: Resource Id [SubnetId ]: Resource Id - [Name ]: Resource Name - [SwappableCloudService ]: + Name : The name of the Load balancer + [Id ]: Resource Id + [SwappableCloudService ]: The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap. This property cannot be updated once it is set. The swappable cloud service referred by this id must be present otherwise an error will be thrown. [Id ]: Resource Id [OSProfile ]: Describes the OS profile for the cloud service. [Secret ]: Specifies set of certificates that should be installed onto the role instances. @@ -3638,7 +4050,7 @@ param( [Parameter(ParameterSetName='CloudService', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudService] # CloudService instance. # To construct, see NOTES section for CLOUDSERVICE properties and create a hash table. ${CloudService}, @@ -3736,6 +4148,7 @@ To create the parameters described below, construct a hash table containing the CLOUDSERVICE : CloudService instance. Location : Resource location. + [AllowModelOverride ]: (Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override the role instance count and vm size specified in the .cscfg and .csdef respectively. The default value is `false`. [Configuration ]: Specifies the XML service configuration (.cscfg) for the cloud service. [ConfigurationUrl ]: Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. [ExtensionProfile ]: Describes a cloud service extension profile. @@ -3752,14 +4165,15 @@ CLOUDSERVICE : CloudService instance. [Type ]: Specifies the type of the extension. [TypeHandlerVersion ]: Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance. [NetworkProfile ]: Network Profile for the cloud service. - [LoadBalancerConfiguration ]: The list of load balancer configurations for the cloud service. - [FrontendIPConfiguration ]: List of IP - [Name ]: - [PrivateIPAddress ]: The private IP address referenced by the cloud service. + [LoadBalancerConfiguration ]: List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to a Public Load Balancer and an Internal Load Balancer. + FrontendIPConfiguration : Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration. + Name : The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource. + [PrivateIPAddress ]: The virtual network private IP address of the IP configuration. [PublicIPAddressId ]: Resource Id [SubnetId ]: Resource Id - [Name ]: Resource Name - [SwappableCloudService ]: + Name : The name of the Load balancer + [Id ]: Resource Id + [SwappableCloudService ]: The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap. This property cannot be updated once it is set. The swappable cloud service referred by this id must be present otherwise an error will be thrown. [Id ]: Resource Id [OSProfile ]: Describes the OS profile for the cloud service. [Secret ]: Specifies set of certificates that should be installed onto the role instances. @@ -3804,7 +4218,7 @@ param( [Parameter(ParameterSetName='CloudService', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudService] # CloudService instance. # To construct, see NOTES section for CLOUDSERVICE properties and create a hash table. ${CloudService} @@ -3875,12 +4289,12 @@ PS C:\> $configFile = "" PS C:\> $extension = New-AzCloudServiceDiagnosticsExtension -Name "WADExtension" -ResourceGroupName "ContosOrg" -CloudServiceName "ContosCS" -StorageAccountName "ContosSA" -StorageAccountKey $storageAccountKey[0].Value -DiagnosticsConfigurationPath $configFile -TypeHandlerVersion "1.5" -AutoUpgradeMinorVersion $true .Outputs -Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.Extension .Link -https://docs.microsoft.com/powershell/module/az.cloudservice/new-azcloudservicediagnosticsextension +https://docs.microsoft.com/powershell/module/az.CloudService/new-AzCloudServiceExtensionObject #> function New-AzCloudServiceDiagnosticsExtension { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.Extension])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Position=1)] @@ -4008,12 +4422,12 @@ Create a in-memory object for Extension PS C:\> $extension = New-AzCloudServiceExtensionObject -Name "GenevaExtension" -Publisher "Microsoft.Azure.Geneva" -Type "GenevaMonitoringPaaS" -TypeHandlerVersion "2.14.0.2" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.Extension .Link https://docs.microsoft.com/powershell/module/az.CloudService/new-AzCloudServiceExtensionObject #> function New-AzCloudServiceExtensionObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.Extension])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] @@ -4126,27 +4540,27 @@ PS C:\> $feIpConfig = New-AzCloudServiceLoadBalancerFrontendIPConfigurationObjec PS C:\> $loadBalancerConfig = New-AzCloudServiceLoadBalancerConfigurationObject -Name 'ContosoLB' -FrontendIPConfiguration $feIpConfig .Outputs -Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfiguration +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerConfiguration .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. FRONTENDIPCONFIGURATION : FrontendIPConfiguration. - [Name ]: - [PrivateIPAddress ]: The private IP address referenced by the cloud service. + Name : The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource. + [PrivateIPAddress ]: The virtual network private IP address of the IP configuration. [PublicIPAddressId ]: Resource Id [SubnetId ]: Resource Id .Link https://docs.microsoft.com/powershell/module/az.CloudService/new-AzCloudServiceLoadBalancerConfigurationObject #> function New-AzCloudServiceLoadBalancerConfigurationObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfiguration])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerConfiguration])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration[]] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfiguration[]] # FrontendIPConfiguration. # To construct, see NOTES section for FRONTENDIPCONFIGURATION properties and create a hash table. ${FrontendIPConfiguration}, @@ -4219,12 +4633,12 @@ PS C:\> $feIpConfig = New-AzCloudServiceLoadBalancerFrontendIPConfigurationObjec PS C:\> $loadBalancerConfig = New-AzCloudServiceLoadBalancerConfigurationObject -Name 'ContosoLB' -FrontendIPConfiguration $feIpConfig .Outputs -Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfiguration +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerFrontendIPConfiguration .Link https://docs.microsoft.com/powershell/module/az.CloudService/new-AzCloudServiceLoadBalancerFrontendIPConfigurationObject #> function New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfiguration])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerFrontendIPConfiguration])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] @@ -4301,12 +4715,12 @@ PS C:\> $expiration = (Get-Date).AddYears(1) PS C:\> $extension = New-AzCloudServiceRemoteDesktopExtensionObject -Name 'RDPExtension' -Credential $credential -Expiration $expiration -TypeHandlerVersion '1.2.1' .Outputs -Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.Extension .Link -https://docs.microsoft.com/powershell/module/az.cloudservice/new-azcloudserviceremotedesktopextensionobject +https://docs.microsoft.com/powershell/module/az.CloudService/new-AzCloudServiceExtensionObject #> function New-AzCloudServiceRemoteDesktopExtensionObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.Extension])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Position=0, Mandatory)] @@ -4405,12 +4819,12 @@ Create a in-memory object for CloudServiceRoleProfileProperties $role = New-AzCloudServiceRoleProfilePropertiesObject -Name 'WebRole' -SkuName 'Standard_D1_v2' -SkuTier 'Standard' -SkuCapacity 2 .Outputs -Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfileProperties +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleProfileProperties .Link https://docs.microsoft.com/powershell/module/az.CloudService/new-AzCloudServiceRoleProfilePropertiesObject #> function New-AzCloudServiceRoleProfilePropertiesObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfileProperties])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleProfileProperties])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] @@ -4499,12 +4913,12 @@ $certificate = Get-AzKeyVaultCertificate -VaultName 'ContosoKeyVault' -Name 'Con $secretGroup = New-AzCloudServiceVaultSecretGroupObject -Id $keyVault.ResourceId -CertificateUrl $certificate.SecretId .Outputs -Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultSecretGroup +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceVaultSecretGroup .Link https://docs.microsoft.com/powershell/module/az.CloudService/new-AzCloudServiceVaultSecretGroupObject #> function New-AzCloudServiceVaultSecretGroupObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultSecretGroup])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceVaultSecretGroup])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] @@ -4592,6 +5006,7 @@ To create the parameters described below, construct a hash table containing the CLOUDSERVICE : Location : Resource location. + [AllowModelOverride ]: (Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override the role instance count and vm size specified in the .cscfg and .csdef respectively. The default value is `false`. [Configuration ]: Specifies the XML service configuration (.cscfg) for the cloud service. [ConfigurationUrl ]: Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. [ExtensionProfile ]: Describes a cloud service extension profile. @@ -4608,14 +5023,15 @@ CLOUDSERVICE : [Type ]: Specifies the type of the extension. [TypeHandlerVersion ]: Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance. [NetworkProfile ]: Network Profile for the cloud service. - [LoadBalancerConfiguration ]: The list of load balancer configurations for the cloud service. - [FrontendIPConfiguration ]: List of IP - [Name ]: - [PrivateIPAddress ]: The private IP address referenced by the cloud service. + [LoadBalancerConfiguration ]: List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to a Public Load Balancer and an Internal Load Balancer. + FrontendIPConfiguration : Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration. + Name : The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource. + [PrivateIPAddress ]: The virtual network private IP address of the IP configuration. [PublicIPAddressId ]: Resource Id [SubnetId ]: Resource Id - [Name ]: Resource Name - [SwappableCloudService ]: + Name : The name of the Load balancer + [Id ]: Resource Id + [SwappableCloudService ]: The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap. This property cannot be updated once it is set. The swappable cloud service referred by this id must be present otherwise an error will be thrown. [Id ]: Resource Id [OSProfile ]: Describes the OS profile for the cloud service. [Secret ]: Specifies set of certificates that should be installed onto the role instances. @@ -4660,7 +5076,7 @@ param( [Parameter(ParameterSetName='CloudService', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudService] # To construct, see NOTES section for CLOUDSERVICE properties and create a hash table. ${CloudService}, diff --git a/src/CloudService/exports/Remove-AzCloudService.ps1 b/src/CloudService/exports/Remove-AzCloudService.ps1 index 712db2bea6bc..8611388d4dee 100644 --- a/src/CloudService/exports/Remove-AzCloudService.ps1 +++ b/src/CloudService/exports/Remove-AzCloudService.ps1 @@ -33,6 +33,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [CloudServiceName ]: [Id ]: Resource identity path + [Location ]: Name of the location that the OS version pertains to. + [OSFamilyName ]: Name of the OS family. + [OSVersionName ]: Name of the OS version. [ResourceGroupName ]: [RoleInstanceName ]: Name of the role instance. [RoleName ]: Name of the role. diff --git a/src/CloudService/exports/Remove-AzCloudServiceRoleInstance.ps1 b/src/CloudService/exports/Remove-AzCloudServiceRoleInstance.ps1 index 5c03b3ebb528..f55bb70662ed 100644 --- a/src/CloudService/exports/Remove-AzCloudServiceRoleInstance.ps1 +++ b/src/CloudService/exports/Remove-AzCloudServiceRoleInstance.ps1 @@ -33,6 +33,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [CloudServiceName ]: [Id ]: Resource identity path + [Location ]: Name of the location that the OS version pertains to. + [OSFamilyName ]: Name of the OS family. + [OSVersionName ]: Name of the OS version. [ResourceGroupName ]: [RoleInstanceName ]: Name of the role instance. [RoleName ]: Name of the role. diff --git a/src/CloudService/exports/Restart-AzCloudService.ps1 b/src/CloudService/exports/Restart-AzCloudService.ps1 index ebdacc1f65e1..dfb42cac3d41 100644 --- a/src/CloudService/exports/Restart-AzCloudService.ps1 +++ b/src/CloudService/exports/Restart-AzCloudService.ps1 @@ -36,6 +36,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [CloudServiceName ]: [Id ]: Resource identity path + [Location ]: Name of the location that the OS version pertains to. + [OSFamilyName ]: Name of the OS family. + [OSVersionName ]: Name of the OS version. [ResourceGroupName ]: [RoleInstanceName ]: Name of the role instance. [RoleName ]: Name of the role. diff --git a/src/CloudService/exports/Restart-AzCloudServiceRoleInstance.ps1 b/src/CloudService/exports/Restart-AzCloudServiceRoleInstance.ps1 index 5c44d554975c..1874b2c359c6 100644 --- a/src/CloudService/exports/Restart-AzCloudServiceRoleInstance.ps1 +++ b/src/CloudService/exports/Restart-AzCloudServiceRoleInstance.ps1 @@ -33,6 +33,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [CloudServiceName ]: [Id ]: Resource identity path + [Location ]: Name of the location that the OS version pertains to. + [OSFamilyName ]: Name of the OS family. + [OSVersionName ]: Name of the OS version. [ResourceGroupName ]: [RoleInstanceName ]: Name of the role instance. [RoleName ]: Name of the role. diff --git a/src/CloudService/exports/Start-AzCloudService.ps1 b/src/CloudService/exports/Start-AzCloudService.ps1 index bbd461c63c7d..6660de29f236 100644 --- a/src/CloudService/exports/Start-AzCloudService.ps1 +++ b/src/CloudService/exports/Start-AzCloudService.ps1 @@ -33,6 +33,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [CloudServiceName ]: [Id ]: Resource identity path + [Location ]: Name of the location that the OS version pertains to. + [OSFamilyName ]: Name of the OS family. + [OSVersionName ]: Name of the OS version. [ResourceGroupName ]: [RoleInstanceName ]: Name of the role instance. [RoleName ]: Name of the role. diff --git a/src/CloudService/exports/Stop-AzCloudService.ps1 b/src/CloudService/exports/Stop-AzCloudService.ps1 index ff6563c4977f..71d7dac63cb7 100644 --- a/src/CloudService/exports/Stop-AzCloudService.ps1 +++ b/src/CloudService/exports/Stop-AzCloudService.ps1 @@ -35,6 +35,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [CloudServiceName ]: [Id ]: Resource identity path + [Location ]: Name of the location that the OS version pertains to. + [OSFamilyName ]: Name of the OS family. + [OSVersionName ]: Name of the OS version. [ResourceGroupName ]: [RoleInstanceName ]: Name of the role instance. [RoleName ]: Name of the role. diff --git a/src/CloudService/exports/Switch-AzCloudService.ps1 b/src/CloudService/exports/Switch-AzCloudService.ps1 index 91497d32798a..acbaf0a6f719 100644 --- a/src/CloudService/exports/Switch-AzCloudService.ps1 +++ b/src/CloudService/exports/Switch-AzCloudService.ps1 @@ -35,6 +35,7 @@ To create the parameters described below, construct a hash table containing the CLOUDSERVICE : Location : Resource location. + [AllowModelOverride ]: (Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override the role instance count and vm size specified in the .cscfg and .csdef respectively. The default value is `false`. [Configuration ]: Specifies the XML service configuration (.cscfg) for the cloud service. [ConfigurationUrl ]: Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. [ExtensionProfile ]: Describes a cloud service extension profile. @@ -51,14 +52,15 @@ CLOUDSERVICE : [Type ]: Specifies the type of the extension. [TypeHandlerVersion ]: Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance. [NetworkProfile ]: Network Profile for the cloud service. - [LoadBalancerConfiguration ]: The list of load balancer configurations for the cloud service. - [FrontendIPConfiguration ]: List of IP - [Name ]: - [PrivateIPAddress ]: The private IP address referenced by the cloud service. + [LoadBalancerConfiguration ]: List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to a Public Load Balancer and an Internal Load Balancer. + FrontendIPConfiguration : Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration. + Name : The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource. + [PrivateIPAddress ]: The virtual network private IP address of the IP configuration. [PublicIPAddressId ]: Resource Id [SubnetId ]: Resource Id - [Name ]: Resource Name - [SwappableCloudService ]: + Name : The name of the Load balancer + [Id ]: Resource Id + [SwappableCloudService ]: The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap. This property cannot be updated once it is set. The swappable cloud service referred by this id must be present otherwise an error will be thrown. [Id ]: Resource Id [OSProfile ]: Describes the OS profile for the cloud service. [Secret ]: Specifies set of certificates that should be installed onto the role instances. @@ -103,7 +105,7 @@ param( [Parameter(ParameterSetName='CloudService', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudService] # To construct, see NOTES section for CLOUDSERVICE properties and create a hash table. ${CloudService}, diff --git a/src/CloudService/exports/Update-AzCloudService.ps1 b/src/CloudService/exports/Update-AzCloudService.ps1 index 9a1bed01a9a3..8a2b62aa588e 100644 --- a/src/CloudService/exports/Update-AzCloudService.ps1 +++ b/src/CloudService/exports/Update-AzCloudService.ps1 @@ -61,11 +61,11 @@ PS C:\> $cloudService.Configuration = $configuration PS C:\> $cloudService | Update-AzCloudService .Inputs -Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService .Inputs Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService .Notes COMPLEX PARAMETER PROPERTIES @@ -74,6 +74,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [CloudServiceName ]: [Id ]: Resource identity path + [Location ]: Name of the location that the OS version pertains to. + [OSFamilyName ]: Name of the OS family. + [OSVersionName ]: Name of the OS version. [ResourceGroupName ]: [RoleInstanceName ]: Name of the role instance. [RoleName ]: Name of the role. @@ -82,6 +85,7 @@ INPUTOBJECT : Identity Parameter PARAMETER : Describes the cloud service. Location : Resource location. + [AllowModelOverride ]: (Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override the role instance count and vm size specified in the .cscfg and .csdef respectively. The default value is `false`. [Configuration ]: Specifies the XML service configuration (.cscfg) for the cloud service. [ConfigurationUrl ]: Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. [ExtensionProfile ]: Describes a cloud service extension profile. @@ -98,14 +102,15 @@ PARAMETER : Describes the cloud service. [Type ]: Specifies the type of the extension. [TypeHandlerVersion ]: Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance. [NetworkProfile ]: Network Profile for the cloud service. - [LoadBalancerConfiguration ]: The list of load balancer configurations for the cloud service. - [FrontendIPConfiguration ]: List of IP - [Name ]: - [PrivateIPAddress ]: The private IP address referenced by the cloud service. + [LoadBalancerConfiguration ]: List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to a Public Load Balancer and an Internal Load Balancer. + FrontendIPConfiguration : Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration. + Name : The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource. + [PrivateIPAddress ]: The virtual network private IP address of the IP configuration. [PublicIPAddressId ]: Resource Id [SubnetId ]: Resource Id - [Name ]: Resource Name - [SwappableCloudService ]: + Name : The name of the Load balancer + [Id ]: Resource Id + [SwappableCloudService ]: The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap. This property cannot be updated once it is set. The swappable cloud service referred by this id must be present otherwise an error will be thrown. [Id ]: Resource Id [OSProfile ]: Describes the OS profile for the cloud service. [Secret ]: Specifies set of certificates that should be installed onto the role instances. @@ -127,7 +132,7 @@ PARAMETER : Describes the cloud service. https://docs.microsoft.com/powershell/module/az.cloudservice/update-azcloudservice #> function Update-AzCloudService { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService])] [CmdletBinding(DefaultParameterSetName='CreateViaIdentity', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory, ValueFromPipeline)] @@ -139,7 +144,7 @@ param( [Parameter(Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService] # Describes the cloud service. # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, diff --git a/src/CloudService/generate-info.json b/src/CloudService/generate-info.json index 50cef5edf51c..94ced7c2736b 100644 --- a/src/CloudService/generate-info.json +++ b/src/CloudService/generate-info.json @@ -1,8 +1,8 @@ { - "autorest_core": "3.0.6375", "autorest": "3.0.6149", + "autorest_core": "3.0.6375", + "autorest_modelerfour": "4.15.414", "node": "v10.16.3", - "swagger_commit": "21c970568229eb388d0fce7097e889411ee0a85f", "autorest_powershell": "3.0.423", - "autorest_modelerfour": "4.15.414" + "swagger_commit": "148997e378a1214c2af39c06d39b7147b662177d" } diff --git a/src/CloudService/generated/api/CloudService.cs b/src/CloudService/generated/api/CloudService.cs index 32893e5e5235..9180342d64f8 100644 --- a/src/CloudService/generated/api/CloudService.cs +++ b/src/CloudService/generated/api/CloudService.cs @@ -14,6 +14,702 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService public partial class CloudService { + /// + /// Gets properties of a guest operating system family that can be specified in the XML service configuration (.cscfg) for + /// a cloud service. + /// + /// Name of the location that the OS family pertains to. + /// Name of the OS family. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// 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.CloudService.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 CloudServiceOperatingSystemsGetOSFamily(string location, string osFamilyName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-03-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/providers/Microsoft.Compute/locations/" + + global::System.Uri.EscapeDataString(location) + + "/cloudServiceOsFamilies/" + + global::System.Uri.EscapeDataString(osFamilyName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServiceOperatingSystemsGetOSFamily_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Gets properties of a guest operating system family that can be specified in the XML service configuration (.cscfg) for + /// a cloud service. + /// + /// + /// 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.CloudService.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 CloudServiceOperatingSystemsGetOSFamilyViaIdentity(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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-03-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Compute/locations/(?[^/]+)/cloudServiceOsFamilies/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies/{osFamilyName}'"); + } + + // replace URI parameters with values from identity + var location = _match.Groups["location"].Value; + var osFamilyName = _match.Groups["osFamilyName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/providers/Microsoft.Compute/locations/" + + location + + "/cloudServiceOsFamilies/" + + osFamilyName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServiceOperatingSystemsGetOSFamily_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.CloudService.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 CloudServiceOperatingSystemsGetOSFamily_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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSFamily.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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. + /// + /// Name of the location that the OS family pertains to. + /// Name of the OS family. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServiceOperatingSystemsGetOSFamily_Validate(string location, string osFamilyName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(location),location); + await eventListener.AssertNotNull(nameof(osFamilyName),osFamilyName); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + } + } + + /// + /// Gets properties of a guest operating system version that can be specified in the XML service configuration (.cscfg) for + /// a cloud service. + /// + /// Name of the location that the OS version pertains to. + /// Name of the OS version. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// 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.CloudService.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 CloudServiceOperatingSystemsGetOSVersion(string location, string osVersionName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-03-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/providers/Microsoft.Compute/locations/" + + global::System.Uri.EscapeDataString(location) + + "/cloudServiceOsVersions/" + + global::System.Uri.EscapeDataString(osVersionName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServiceOperatingSystemsGetOSVersion_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Gets properties of a guest operating system version that can be specified in the XML service configuration (.cscfg) for + /// a cloud service. + /// + /// + /// 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.CloudService.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 CloudServiceOperatingSystemsGetOSVersionViaIdentity(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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-03-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Compute/locations/(?[^/]+)/cloudServiceOsVersions/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions/{osVersionName}'"); + } + + // replace URI parameters with values from identity + var location = _match.Groups["location"].Value; + var osVersionName = _match.Groups["osVersionName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/providers/Microsoft.Compute/locations/" + + location + + "/cloudServiceOsVersions/" + + osVersionName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServiceOperatingSystemsGetOSVersion_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.CloudService.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 CloudServiceOperatingSystemsGetOSVersion_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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSVersion.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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. + /// + /// Name of the location that the OS version pertains to. + /// Name of the OS version. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServiceOperatingSystemsGetOSVersion_Validate(string location, string osVersionName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(location),location); + await eventListener.AssertNotNull(nameof(osVersionName),osVersionName); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + } + } + + /// + /// Gets a list of all guest operating system families available to be specified in the XML service configuration (.cscfg) + /// for a cloud service. Use nextLink property in the response to get the next page of OS Families. Do this till nextLink + /// is null to fetch all the OS Families. + /// + /// Name of the location that the OS families pertain to. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// 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.CloudService.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 CloudServiceOperatingSystemsListOSFamilies(string location, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-03-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/providers/Microsoft.Compute/locations/" + + global::System.Uri.EscapeDataString(location) + + "/cloudServiceOsFamilies" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServiceOperatingSystemsListOSFamilies_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Gets a list of all guest operating system families available to be specified in the XML service configuration (.cscfg) + /// for a cloud service. Use nextLink property in the response to get the next page of OS Families. Do this till nextLink + /// is null to fetch all the OS Families. + /// + /// + /// 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.CloudService.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 CloudServiceOperatingSystemsListOSFamiliesViaIdentity(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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-03-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Compute/locations/(?[^/]+)/cloudServiceOsFamilies$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies'"); + } + + // replace URI parameters with values from identity + var location = _match.Groups["location"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/providers/Microsoft.Compute/locations/" + + location + + "/cloudServiceOsFamilies" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServiceOperatingSystemsListOSFamilies_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.CloudService.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 CloudServiceOperatingSystemsListOSFamilies_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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSFamilyListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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. + /// + /// Name of the location that the OS families pertain to. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServiceOperatingSystemsListOSFamilies_Validate(string location, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(location),location); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + } + } + + /// + /// Gets a list of all guest operating system versions available to be specified in the XML service configuration (.cscfg) + /// for a cloud service. Use nextLink property in the response to get the next page of OS versions. Do this till nextLink + /// is null to fetch all the OS versions. + /// + /// Name of the location that the OS versions pertain to. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// 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.CloudService.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 CloudServiceOperatingSystemsListOSVersions(string location, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-03-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/providers/Microsoft.Compute/locations/" + + global::System.Uri.EscapeDataString(location) + + "/cloudServiceOsVersions" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServiceOperatingSystemsListOSVersions_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Gets a list of all guest operating system versions available to be specified in the XML service configuration (.cscfg) + /// for a cloud service. Use nextLink property in the response to get the next page of OS versions. Do this till nextLink + /// is null to fetch all the OS versions. + /// + /// + /// 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.CloudService.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 CloudServiceOperatingSystemsListOSVersionsViaIdentity(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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2021-03-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Compute/locations/(?[^/]+)/cloudServiceOsVersions$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions'"); + } + + // replace URI parameters with values from identity + var location = _match.Groups["location"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/providers/Microsoft.Compute/locations/" + + location + + "/cloudServiceOsVersions" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServiceOperatingSystemsListOSVersions_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.CloudService.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 CloudServiceOperatingSystemsListOSVersions_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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSVersionListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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. + /// + /// Name of the location that the OS versions pertain to. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServiceOperatingSystemsListOSVersions_Validate(string location, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(location),location); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + } + } + /// Deletes a role instance from a cloud service. /// Name of the role instance. /// @@ -29,9 +725,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesDelete(string roleInstanceName, string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesDelete(string roleInstanceName, string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -73,9 +769,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesDeleteViaIdentity(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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesDeleteViaIdentity(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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -130,7 +826,7 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CloudServiceRoleInstancesDelete_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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CloudServiceRoleInstancesDelete_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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -259,7 +955,7 @@ public partial class CloudService default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -313,9 +1009,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesGet(string roleInstanceName, string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes? Expand, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesGet(string roleInstanceName, string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes? Expand, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -364,9 +1060,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesGetInstanceView(string roleInstanceName, string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesGetInstanceView(string roleInstanceName, string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -410,9 +1106,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesGetInstanceViewViaIdentity(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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesGetInstanceViewViaIdentity(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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -469,7 +1165,7 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CloudServiceRoleInstancesGetInstanceView_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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CloudServiceRoleInstancesGetInstanceView_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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -487,13 +1183,13 @@ public partial class CloudService case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceView.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstanceView.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -548,7 +1244,7 @@ public partial class CloudService /// public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesGetRemoteDesktopFile(string roleInstanceName, string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -592,7 +1288,7 @@ public partial class CloudService /// public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesGetRemoteDesktopFileViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -723,9 +1419,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesGetViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes? Expand, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesGetViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes? Expand, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -781,7 +1477,7 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CloudServiceRoleInstancesGet_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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CloudServiceRoleInstancesGet_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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -799,13 +1495,13 @@ public partial class CloudService case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstance.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstance.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -864,9 +1560,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesList(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes? Expand, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesList(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes? Expand, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -912,9 +1608,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesListViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes? Expand, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesListViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes? Expand, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -968,7 +1664,7 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CloudServiceRoleInstancesList_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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CloudServiceRoleInstancesList_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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -986,13 +1682,13 @@ public partial class CloudService case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstanceListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1050,9 +1746,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesRebuild(string roleInstanceName, string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesRebuild(string roleInstanceName, string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1098,9 +1794,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesRebuildViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesRebuildViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1155,7 +1851,7 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CloudServiceRoleInstancesRebuild_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CloudServiceRoleInstancesRebuild_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1278,7 +1974,7 @@ public partial class CloudService default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1333,9 +2029,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesReimage(string roleInstanceName, string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesReimage(string roleInstanceName, string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1379,9 +2075,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesReimageViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesReimageViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1436,7 +2132,7 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CloudServiceRoleInstancesReimage_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CloudServiceRoleInstancesReimage_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1559,7 +2255,7 @@ public partial class CloudService default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1614,9 +2310,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesRestart(string roleInstanceName, string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesRestart(string roleInstanceName, string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1660,9 +2356,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesRestartViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesRestartViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1717,7 +2413,7 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CloudServiceRoleInstancesRestart_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CloudServiceRoleInstancesRestart_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1840,7 +2536,7 @@ public partial class CloudService default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1893,9 +2589,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServiceRolesGet(string roleName, string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServiceRolesGet(string roleName, string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1936,9 +2632,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServiceRolesGetViaIdentity(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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServiceRolesGetViaIdentity(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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1992,7 +2688,7 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CloudServiceRolesGet_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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CloudServiceRolesGet_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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2010,13 +2706,13 @@ public partial class CloudService case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRole.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRole.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2071,9 +2767,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServiceRolesList(string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServiceRolesList(string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2116,9 +2812,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServiceRolesListViaIdentity(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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServiceRolesListViaIdentity(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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2170,7 +2866,7 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CloudServiceRolesList_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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CloudServiceRolesList_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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2188,13 +2884,13 @@ public partial class CloudService case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2247,9 +2943,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServicesCreateOrUpdate(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServicesCreateOrUpdate(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2295,9 +2991,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServicesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServicesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2352,7 +3048,7 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CloudServicesCreateOrUpdate_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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CloudServicesCreateOrUpdate_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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2468,13 +3164,13 @@ public partial class CloudService case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudService.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2502,7 +3198,7 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CloudServicesCreateOrUpdate_Validate(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService body, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task CloudServicesCreateOrUpdate_Validate(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService body, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -2528,9 +3224,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServicesDelete(string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServicesDelete(string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2573,9 +3269,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServicesDeleteInstances(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServicesDeleteInstances(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2620,9 +3316,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServicesDeleteInstancesViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServicesDeleteInstancesViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2678,7 +3374,7 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CloudServicesDeleteInstances_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CloudServicesDeleteInstances_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2801,7 +3497,7 @@ public partial class CloudService default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2829,7 +3525,7 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CloudServicesDeleteInstances_Validate(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances body, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task CloudServicesDeleteInstances_Validate(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances body, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -2852,9 +3548,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServicesDeleteViaIdentity(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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServicesDeleteViaIdentity(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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2906,7 +3602,7 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CloudServicesDelete_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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CloudServicesDelete_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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3035,7 +3731,7 @@ public partial class CloudService default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3085,9 +3781,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServicesGet(string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServicesGet(string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3129,9 +3825,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServicesGetInstanceView(string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServicesGetInstanceView(string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3171,9 +3867,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServicesGetInstanceViewViaIdentity(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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServicesGetInstanceViewViaIdentity(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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3225,7 +3921,7 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CloudServicesGetInstanceView_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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CloudServicesGetInstanceView_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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3243,13 +3939,13 @@ public partial class CloudService case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceInstanceView.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceInstanceView.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3296,9 +3992,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServicesGetViaIdentity(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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServicesGetViaIdentity(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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3349,7 +4045,7 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CloudServicesGet_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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CloudServicesGet_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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3367,13 +4063,13 @@ public partial class CloudService case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudService.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3425,9 +4121,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServicesList(string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServicesList(string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3469,9 +4165,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServicesListAll(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServicesListAll(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3510,9 +4206,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServicesListAllViaIdentity(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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServicesListAllViaIdentity(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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3558,7 +4254,7 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CloudServicesListAll_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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CloudServicesListAll_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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3576,13 +4272,13 @@ public partial class CloudService case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3628,9 +4324,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServicesListViaIdentity(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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServicesListViaIdentity(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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3679,7 +4375,7 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CloudServicesList_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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CloudServicesList_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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3697,13 +4393,13 @@ public partial class CloudService case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3753,9 +4449,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServicesPowerOff(string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServicesPowerOff(string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3797,9 +4493,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServicesPowerOffViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServicesPowerOffViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3851,7 +4547,7 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CloudServicesPowerOff_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CloudServicesPowerOff_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3974,7 +4670,7 @@ public partial class CloudService default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4028,9 +4724,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServicesRebuild(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServicesRebuild(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4078,9 +4774,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServicesRebuildViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServicesRebuildViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4136,7 +4832,7 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CloudServicesRebuild_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CloudServicesRebuild_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4259,7 +4955,7 @@ public partial class CloudService default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4287,7 +4983,7 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CloudServicesRebuild_Validate(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances body, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task CloudServicesRebuild_Validate(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances body, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -4315,9 +5011,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServicesReimage(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServicesReimage(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4364,9 +5060,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServicesReimageViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServicesReimageViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4422,7 +5118,7 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CloudServicesReimage_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CloudServicesReimage_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4545,7 +5241,7 @@ public partial class CloudService default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4573,7 +5269,7 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CloudServicesReimage_Validate(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances body, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task CloudServicesReimage_Validate(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances body, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -4599,9 +5295,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServicesRestart(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServicesRestart(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4646,9 +5342,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServicesRestartViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServicesRestartViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4704,7 +5400,7 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CloudServicesRestart_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CloudServicesRestart_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4827,7 +5523,7 @@ public partial class CloudService default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4855,7 +5551,7 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CloudServicesRestart_Validate(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances body, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task CloudServicesRestart_Validate(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances body, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -4880,9 +5576,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServicesStart(string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServicesStart(string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4922,9 +5618,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServicesStartViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServicesStartViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4976,7 +5672,7 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CloudServicesStart_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CloudServicesStart_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5099,7 +5795,7 @@ public partial class CloudService default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5150,9 +5846,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServicesUpdate(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServicesUpdate(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5203,9 +5899,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServicesUpdateDomainGetUpdateDomain(string resourceGroupName, string cloudServiceName, int updateDomain, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServicesUpdateDomainGetUpdateDomain(string resourceGroupName, string cloudServiceName, int updateDomain, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5249,9 +5945,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServicesUpdateDomainGetUpdateDomainViaIdentity(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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServicesUpdateDomainGetUpdateDomainViaIdentity(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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5307,7 +6003,7 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CloudServicesUpdateDomainGetUpdateDomain_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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CloudServicesUpdateDomainGetUpdateDomain_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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5325,13 +6021,13 @@ public partial class CloudService case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.UpdateDomain.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.UpdateDomain.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5383,9 +6079,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServicesUpdateDomainListUpdateDomains(string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServicesUpdateDomainListUpdateDomains(string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5425,9 +6121,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServicesUpdateDomainListUpdateDomainsViaIdentity(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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServicesUpdateDomainListUpdateDomainsViaIdentity(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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5481,7 +6177,7 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CloudServicesUpdateDomainListUpdateDomains_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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CloudServicesUpdateDomainListUpdateDomains_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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5499,13 +6195,13 @@ public partial class CloudService case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.UpdateDomainListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.UpdateDomainListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5558,9 +6254,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServicesUpdateDomainWalkUpdateDomain(string resourceGroupName, string cloudServiceName, int updateDomain, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServicesUpdateDomainWalkUpdateDomain(string resourceGroupName, string cloudServiceName, int updateDomain, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomain body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5606,9 +6302,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServicesUpdateDomainWalkUpdateDomainViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServicesUpdateDomainWalkUpdateDomainViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomain body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5668,7 +6364,7 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CloudServicesUpdateDomainWalkUpdateDomain_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CloudServicesUpdateDomainWalkUpdateDomain_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5790,7 +6486,7 @@ public partial class CloudService default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5820,7 +6516,7 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CloudServicesUpdateDomainWalkUpdateDomain_Validate(string resourceGroupName, string cloudServiceName, int updateDomain, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain body, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task CloudServicesUpdateDomainWalkUpdateDomain_Validate(string resourceGroupName, string cloudServiceName, int updateDomain, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomain body, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -5843,9 +6539,9 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudServicesUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudServicesUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { - var apiVersion = @"2020-10-01-preview"; + var apiVersion = @"2021-03-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5900,7 +6596,7 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CloudServicesUpdate_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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CloudServicesUpdate_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.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -6016,13 +6712,13 @@ public partial class CloudService case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudService.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6050,7 +6746,7 @@ public partial class CloudService /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CloudServicesUpdate_Validate(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdate body, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task CloudServicesUpdate_Validate(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceUpdate body, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudService.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudService.PowerShell.cs deleted file mode 100644 index 17f45f51fe46..000000000000 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudService.PowerShell.cs +++ /dev/null @@ -1,163 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; - - /// Describes the cloud service. - [System.ComponentModel.TypeConverter(typeof(CloudServiceTypeConverter))] - public partial class CloudService - { - - /// - /// 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 CloudService(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServicePropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Location, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceTagsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).RoleProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile) content.GetValueForProperty("RoleProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).RoleProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).PackageUrl = (string) content.GetValueForProperty("PackageUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).PackageUrl, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).ConfigurationUrl = (string) content.GetValueForProperty("ConfigurationUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).ConfigurationUrl, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).StartCloudService = (bool?) content.GetValueForProperty("StartCloudService",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).StartCloudService, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).UpgradeMode = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode?) content.GetValueForProperty("UpgradeMode",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).UpgradeMode, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Configuration = (string) content.GetValueForProperty("Configuration",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Configuration, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).OSProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile) content.GetValueForProperty("OSProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).OSProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceOSProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).NetworkProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile) content.GetValueForProperty("NetworkProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).NetworkProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceNetworkProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).ExtensionProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile) content.GetValueForProperty("ExtensionProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).ExtensionProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceExtensionProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).ProvisioningState, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).UniqueId = (string) content.GetValueForProperty("UniqueId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).UniqueId, 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 CloudService(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServicePropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Location, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceTagsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).RoleProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile) content.GetValueForProperty("RoleProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).RoleProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).PackageUrl = (string) content.GetValueForProperty("PackageUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).PackageUrl, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).ConfigurationUrl = (string) content.GetValueForProperty("ConfigurationUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).ConfigurationUrl, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).StartCloudService = (bool?) content.GetValueForProperty("StartCloudService",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).StartCloudService, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).UpgradeMode = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode?) content.GetValueForProperty("UpgradeMode",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).UpgradeMode, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Configuration = (string) content.GetValueForProperty("Configuration",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Configuration, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).OSProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile) content.GetValueForProperty("OSProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).OSProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceOSProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).NetworkProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile) content.GetValueForProperty("NetworkProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).NetworkProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceNetworkProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).ExtensionProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile) content.GetValueForProperty("ExtensionProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).ExtensionProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceExtensionProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).ProvisioningState, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).UniqueId = (string) content.GetValueForProperty("UniqueId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).UniqueId, 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.CloudService.Models.Api20201001Preview.ICloudService DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CloudService(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.CloudService.Models.Api20201001Preview.ICloudService DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CloudService(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.CloudService.Models.Api20201001Preview.ICloudService FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Describes the cloud service. - [System.ComponentModel.TypeConverter(typeof(CloudServiceTypeConverter))] - public partial interface ICloudService - - { - - } -} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProperties.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProperties.PowerShell.cs deleted file mode 100644 index 3008709a5b1d..000000000000 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProperties.PowerShell.cs +++ /dev/null @@ -1,157 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; - - /// Extension Properties. - [System.ComponentModel.TypeConverter(typeof(CloudServiceExtensionPropertiesTypeConverter))] - public partial class CloudServiceExtensionProperties - { - - /// - /// 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 CloudServiceExtensionProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingsFromKeyVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference) content.GetValueForProperty("ProtectedSettingsFromKeyVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingsFromKeyVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultAndSecretReferenceTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).Publisher = (string) content.GetValueForProperty("Publisher",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).Publisher, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).TypeHandlerVersion = (string) content.GetValueForProperty("TypeHandlerVersion",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).TypeHandlerVersion, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).AutoUpgradeMinorVersion = (bool?) content.GetValueForProperty("AutoUpgradeMinorVersion",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).AutoUpgradeMinorVersion, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).Setting = (string) content.GetValueForProperty("Setting",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).Setting, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProtectedSetting = (string) content.GetValueForProperty("ProtectedSetting",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProtectedSetting, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ForceUpdateTag = (string) content.GetValueForProperty("ForceUpdateTag",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ForceUpdateTag, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).RolesAppliedTo = (string[]) content.GetValueForProperty("RolesAppliedTo",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).RolesAppliedTo, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingFromKeyVaultSourceVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("ProtectedSettingFromKeyVaultSourceVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingFromKeyVaultSourceVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingFromKeyVaultSecretUrl = (string) content.GetValueForProperty("ProtectedSettingFromKeyVaultSecretUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingFromKeyVaultSecretUrl, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).SourceVaultId = (string) content.GetValueForProperty("SourceVaultId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).SourceVaultId, 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 CloudServiceExtensionProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingsFromKeyVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference) content.GetValueForProperty("ProtectedSettingsFromKeyVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingsFromKeyVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultAndSecretReferenceTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).Publisher = (string) content.GetValueForProperty("Publisher",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).Publisher, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).TypeHandlerVersion = (string) content.GetValueForProperty("TypeHandlerVersion",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).TypeHandlerVersion, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).AutoUpgradeMinorVersion = (bool?) content.GetValueForProperty("AutoUpgradeMinorVersion",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).AutoUpgradeMinorVersion, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).Setting = (string) content.GetValueForProperty("Setting",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).Setting, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProtectedSetting = (string) content.GetValueForProperty("ProtectedSetting",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProtectedSetting, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ForceUpdateTag = (string) content.GetValueForProperty("ForceUpdateTag",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ForceUpdateTag, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).RolesAppliedTo = (string[]) content.GetValueForProperty("RolesAppliedTo",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).RolesAppliedTo, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingFromKeyVaultSourceVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("ProtectedSettingFromKeyVaultSourceVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingFromKeyVaultSourceVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingFromKeyVaultSecretUrl = (string) content.GetValueForProperty("ProtectedSettingFromKeyVaultSecretUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingFromKeyVaultSecretUrl, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).SourceVaultId = (string) content.GetValueForProperty("SourceVaultId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).SourceVaultId, 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.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CloudServiceExtensionProperties(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.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CloudServiceExtensionProperties(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.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Extension Properties. - [System.ComponentModel.TypeConverter(typeof(CloudServiceExtensionPropertiesTypeConverter))] - public partial interface ICloudServiceExtensionProperties - - { - - } -} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceNetworkProfile.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceNetworkProfile.cs deleted file mode 100644 index d9cf0a651a9d..000000000000 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceNetworkProfile.cs +++ /dev/null @@ -1,62 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview -{ - using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; - - /// Network Profile for the cloud service. - public partial class CloudServiceNetworkProfile : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfileInternal - { - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfiguration[] _loadBalancerConfiguration; - - /// The list of load balancer configurations for the cloud service. - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfiguration[] LoadBalancerConfiguration { get => this._loadBalancerConfiguration; set => this._loadBalancerConfiguration = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource _swappableCloudService; - - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource SwappableCloudService { get => (this._swappableCloudService = this._swappableCloudService ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResource()); set => this._swappableCloudService = value; } - - /// Creates an new instance. - public CloudServiceNetworkProfile() - { - - } - } - /// Network Profile for the cloud service. - public partial interface ICloudServiceNetworkProfile : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable - { - /// The list of load balancer configurations for the cloud service. - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The list of load balancer configurations for the cloud service.", - SerializedName = @"loadBalancerConfigurations", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfiguration) })] - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfiguration[] LoadBalancerConfiguration { get; set; } - - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"", - SerializedName = @"swappableCloudService", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) })] - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource SwappableCloudService { get; set; } - - } - /// Network Profile for the cloud service. - internal partial interface ICloudServiceNetworkProfileInternal - - { - /// The list of load balancer configurations for the cloud service. - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfiguration[] LoadBalancerConfiguration { get; set; } - - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource SwappableCloudService { get; set; } - - } -} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceProperties.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceProperties.PowerShell.cs deleted file mode 100644 index da1f86aba97a..000000000000 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceProperties.PowerShell.cs +++ /dev/null @@ -1,153 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; - - /// Cloud service properties - [System.ComponentModel.TypeConverter(typeof(CloudServicePropertiesTypeConverter))] - public partial class CloudServiceProperties - { - - /// - /// 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 CloudServiceProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).PackageUrl = (string) content.GetValueForProperty("PackageUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).PackageUrl, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).Configuration = (string) content.GetValueForProperty("Configuration",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).Configuration, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).ConfigurationUrl = (string) content.GetValueForProperty("ConfigurationUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).ConfigurationUrl, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).StartCloudService = (bool?) content.GetValueForProperty("StartCloudService",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).StartCloudService, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).UpgradeMode = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode?) content.GetValueForProperty("UpgradeMode",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).UpgradeMode, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).RoleProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile) content.GetValueForProperty("RoleProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).RoleProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).OSProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile) content.GetValueForProperty("OSProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).OSProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceOSProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).NetworkProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile) content.GetValueForProperty("NetworkProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).NetworkProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceNetworkProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).ExtensionProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile) content.GetValueForProperty("ExtensionProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).ExtensionProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceExtensionProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).UniqueId = (string) content.GetValueForProperty("UniqueId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).UniqueId, 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 CloudServiceProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).PackageUrl = (string) content.GetValueForProperty("PackageUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).PackageUrl, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).Configuration = (string) content.GetValueForProperty("Configuration",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).Configuration, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).ConfigurationUrl = (string) content.GetValueForProperty("ConfigurationUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).ConfigurationUrl, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).StartCloudService = (bool?) content.GetValueForProperty("StartCloudService",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).StartCloudService, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).UpgradeMode = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode?) content.GetValueForProperty("UpgradeMode",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).UpgradeMode, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).RoleProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile) content.GetValueForProperty("RoleProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).RoleProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).OSProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile) content.GetValueForProperty("OSProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).OSProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceOSProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).NetworkProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile) content.GetValueForProperty("NetworkProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).NetworkProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceNetworkProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).ExtensionProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile) content.GetValueForProperty("ExtensionProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).ExtensionProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceExtensionProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).UniqueId = (string) content.GetValueForProperty("UniqueId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).UniqueId, 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.CloudService.Models.Api20201001Preview.ICloudServiceProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CloudServiceProperties(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.CloudService.Models.Api20201001Preview.ICloudServiceProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CloudServiceProperties(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.CloudService.Models.Api20201001Preview.ICloudServiceProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Cloud service properties - [System.ComponentModel.TypeConverter(typeof(CloudServicePropertiesTypeConverter))] - public partial interface ICloudServiceProperties - - { - - } -} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/Extension.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/Extension.PowerShell.cs deleted file mode 100644 index 33f3c2eaf45e..000000000000 --- a/src/CloudService/generated/api/Models/Api20201001Preview/Extension.PowerShell.cs +++ /dev/null @@ -1,159 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; - - /// Describes a cloud service Extension. - [System.ComponentModel.TypeConverter(typeof(ExtensionTypeConverter))] - public partial class Extension - { - - /// - /// 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.CloudService.Models.Api20201001Preview.IExtension DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new Extension(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.CloudService.Models.Api20201001Preview.IExtension DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new Extension(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal Extension(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceExtensionPropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProtectedSetting = (string) content.GetValueForProperty("ProtectedSetting",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProtectedSetting, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProtectedSettingsFromKeyVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference) content.GetValueForProperty("ProtectedSettingsFromKeyVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProtectedSettingsFromKeyVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultAndSecretReferenceTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).TypeHandlerVersion = (string) content.GetValueForProperty("TypeHandlerVersion",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).TypeHandlerVersion, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).AutoUpgradeMinorVersion = (bool?) content.GetValueForProperty("AutoUpgradeMinorVersion",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).AutoUpgradeMinorVersion, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Setting = (string) content.GetValueForProperty("Setting",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Setting, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Publisher = (string) content.GetValueForProperty("Publisher",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Publisher, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ForceUpdateTag = (string) content.GetValueForProperty("ForceUpdateTag",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ForceUpdateTag, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProvisioningState, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).RolesAppliedTo = (string[]) content.GetValueForProperty("RolesAppliedTo",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).RolesAppliedTo, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProtectedSettingFromKeyVaultSourceVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("ProtectedSettingFromKeyVaultSourceVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProtectedSettingFromKeyVaultSourceVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProtectedSettingFromKeyVaultSecretUrl = (string) content.GetValueForProperty("ProtectedSettingFromKeyVaultSecretUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProtectedSettingFromKeyVaultSecretUrl, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).SourceVaultId = (string) content.GetValueForProperty("SourceVaultId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).SourceVaultId, 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 Extension(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceExtensionPropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProtectedSetting = (string) content.GetValueForProperty("ProtectedSetting",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProtectedSetting, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProtectedSettingsFromKeyVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference) content.GetValueForProperty("ProtectedSettingsFromKeyVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProtectedSettingsFromKeyVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultAndSecretReferenceTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).TypeHandlerVersion = (string) content.GetValueForProperty("TypeHandlerVersion",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).TypeHandlerVersion, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).AutoUpgradeMinorVersion = (bool?) content.GetValueForProperty("AutoUpgradeMinorVersion",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).AutoUpgradeMinorVersion, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Setting = (string) content.GetValueForProperty("Setting",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Setting, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Publisher = (string) content.GetValueForProperty("Publisher",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Publisher, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ForceUpdateTag = (string) content.GetValueForProperty("ForceUpdateTag",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ForceUpdateTag, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProvisioningState, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).RolesAppliedTo = (string[]) content.GetValueForProperty("RolesAppliedTo",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).RolesAppliedTo, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProtectedSettingFromKeyVaultSourceVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("ProtectedSettingFromKeyVaultSourceVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProtectedSettingFromKeyVaultSourceVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProtectedSettingFromKeyVaultSecretUrl = (string) content.GetValueForProperty("ProtectedSettingFromKeyVaultSecretUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProtectedSettingFromKeyVaultSecretUrl, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).SourceVaultId = (string) content.GetValueForProperty("SourceVaultId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).SourceVaultId, global::System.Convert.ToString); - 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.CloudService.Models.Api20201001Preview.IExtension FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Describes a cloud service Extension. - [System.ComponentModel.TypeConverter(typeof(ExtensionTypeConverter))] - public partial interface IExtension - - { - - } -} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfiguration.cs b/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfiguration.cs deleted file mode 100644 index e3557788de51..000000000000 --- a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfiguration.cs +++ /dev/null @@ -1,74 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview -{ - using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; - - /// Describes the load balancer configuration. - public partial class LoadBalancerConfiguration : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfiguration, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationInternal - { - - /// List of IP - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 1)] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration[] FrontendIPConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationPropertiesInternal)Property).FrontendIPConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationPropertiesInternal)Property).FrontendIPConfiguration = value ?? null /* arrayOf */; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationProperties Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfigurationProperties()); set { {_property = value;} } } - - /// Backing field for property. - private string _name; - - /// Resource Name - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 0)] - public string Name { get => this._name; set => this._name = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationProperties _property; - - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] - internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfigurationProperties()); set => this._property = value; } - - /// Creates an new instance. - public LoadBalancerConfiguration() - { - - } - } - /// Describes the load balancer configuration. - public partial interface ILoadBalancerConfiguration : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable - { - /// List of IP - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"List of IP", - SerializedName = @"frontendIPConfigurations", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration) })] - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration[] FrontendIPConfiguration { get; set; } - /// Resource Name - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource Name", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; set; } - - } - /// Describes the load balancer configuration. - internal partial interface ILoadBalancerConfigurationInternal - - { - /// List of IP - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration[] FrontendIPConfiguration { get; set; } - /// Resource Name - string Name { get; set; } - - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationProperties Property { get; set; } - - } -} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfigurationProperties.cs b/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfigurationProperties.cs deleted file mode 100644 index de5b083ee2d4..000000000000 --- a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfigurationProperties.cs +++ /dev/null @@ -1,43 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview -{ - using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; - - public partial class LoadBalancerConfigurationProperties : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationProperties, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationPropertiesInternal - { - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration[] _frontendIPConfiguration; - - /// List of IP - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration[] FrontendIPConfiguration { get => this._frontendIPConfiguration; set => this._frontendIPConfiguration = value; } - - /// Creates an new instance. - public LoadBalancerConfigurationProperties() - { - - } - } - public partial interface ILoadBalancerConfigurationProperties : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable - { - /// List of IP - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"List of IP", - SerializedName = @"frontendIPConfigurations", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration) })] - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration[] FrontendIPConfiguration { get; set; } - - } - internal partial interface ILoadBalancerConfigurationPropertiesInternal - - { - /// List of IP - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration[] FrontendIPConfiguration { get; set; } - - } -} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfiguration.cs b/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfiguration.cs deleted file mode 100644 index 74d2d7d61f3c..000000000000 --- a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfiguration.cs +++ /dev/null @@ -1,104 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview -{ - using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; - - public partial class LoadBalancerFrontendIPConfiguration : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal - { - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationProperties Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfigurationProperties()); set { {_property = value;} } } - - /// Internal Acessors for PublicIPAddress - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal.PublicIPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)Property).PublicIPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)Property).PublicIPAddress = value; } - - /// Internal Acessors for Subnet - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal.Subnet { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)Property).Subnet; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)Property).Subnet = value; } - - /// Backing field for property. - private string _name; - - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] - public string Name { get => this._name; set => this._name = value; } - - /// The private IP address referenced by the cloud service. - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] - public string PrivateIPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)Property).PrivateIPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)Property).PrivateIPAddress = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationProperties _property; - - /// Describes a cloud service IP Configuration - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfigurationProperties()); set => this._property = value; } - - /// Resource Id - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] - public string PublicIPAddressId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)Property).PublicIPAddressId; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)Property).PublicIPAddressId = value ?? null; } - - /// Resource Id - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] - public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)Property).SubnetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)Property).SubnetId = value ?? null; } - - /// Creates an new instance. - public LoadBalancerFrontendIPConfiguration() - { - - } - } - public partial interface ILoadBalancerFrontendIPConfiguration : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable - { - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; set; } - /// The private IP address referenced by the cloud service. - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The private IP address referenced by the cloud service.", - SerializedName = @"privateIPAddress", - PossibleTypes = new [] { typeof(string) })] - string PrivateIPAddress { get; set; } - /// Resource Id - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource Id", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string PublicIPAddressId { get; set; } - /// Resource Id - [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource Id", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string SubnetId { get; set; } - - } - internal partial interface ILoadBalancerFrontendIPConfigurationInternal - - { - string Name { get; set; } - /// The private IP address referenced by the cloud service. - string PrivateIPAddress { get; set; } - /// Describes a cloud service IP Configuration - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationProperties Property { get; set; } - - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource PublicIPAddress { get; set; } - /// Resource Id - string PublicIPAddressId { get; set; } - - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource Subnet { get; set; } - /// Resource Id - string SubnetId { get; set; } - - } -} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstance.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstance.PowerShell.cs deleted file mode 100644 index 6fb34db25a8d..000000000000 --- a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstance.PowerShell.cs +++ /dev/null @@ -1,159 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; - - [System.ComponentModel.TypeConverter(typeof(RoleInstanceTypeConverter))] - public partial class RoleInstance - { - - /// - /// 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.CloudService.Models.Api20201001Preview.IRoleInstance DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RoleInstance(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.CloudService.Models.Api20201001Preview.IRoleInstance DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RoleInstance(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.CloudService.Models.Api20201001Preview.IRoleInstance FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RoleInstance(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InstanceSkuTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstancePropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Location, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceTagsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).SkuName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).SkuTier, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).NetworkProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile) content.GetValueForProperty("NetworkProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).NetworkProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceNetworkProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceViewTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).NetworkProfileNetworkInterface = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[]) content.GetValueForProperty("NetworkProfileNetworkInterface",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).NetworkProfileNetworkInterface, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceViewPlatformUpdateDomain = (int?) content.GetValueForProperty("InstanceViewPlatformUpdateDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceViewPlatformUpdateDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceViewPlatformFaultDomain = (int?) content.GetValueForProperty("InstanceViewPlatformFaultDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceViewPlatformFaultDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceViewPrivateId = (string) content.GetValueForProperty("InstanceViewPrivateId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceViewPrivateId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceViewStatuses = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[]) content.GetValueForProperty("InstanceViewStatuses",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceViewStatuses, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ResourceInstanceViewStatusTypeConverter.ConvertFrom)); - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RoleInstance(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InstanceSkuTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstancePropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Location, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceTagsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).SkuName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).SkuTier, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).NetworkProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile) content.GetValueForProperty("NetworkProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).NetworkProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceNetworkProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceViewTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).NetworkProfileNetworkInterface = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[]) content.GetValueForProperty("NetworkProfileNetworkInterface",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).NetworkProfileNetworkInterface, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceViewPlatformUpdateDomain = (int?) content.GetValueForProperty("InstanceViewPlatformUpdateDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceViewPlatformUpdateDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceViewPlatformFaultDomain = (int?) content.GetValueForProperty("InstanceViewPlatformFaultDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceViewPlatformFaultDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceViewPrivateId = (string) content.GetValueForProperty("InstanceViewPrivateId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceViewPrivateId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceViewStatuses = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[]) content.GetValueForProperty("InstanceViewStatuses",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceViewStatuses, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ResourceInstanceViewStatusTypeConverter.ConvertFrom)); - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - [System.ComponentModel.TypeConverter(typeof(RoleInstanceTypeConverter))] - public partial interface IRoleInstance - - { - - } -} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceProperties.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceProperties.PowerShell.cs deleted file mode 100644 index 3d6fc9f413c0..000000000000 --- a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceProperties.PowerShell.cs +++ /dev/null @@ -1,143 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; - - [System.ComponentModel.TypeConverter(typeof(RoleInstancePropertiesTypeConverter))] - public partial class RoleInstanceProperties - { - - /// - /// 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.CloudService.Models.Api20201001Preview.IRoleInstanceProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RoleInstanceProperties(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.CloudService.Models.Api20201001Preview.IRoleInstanceProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RoleInstanceProperties(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.CloudService.Models.Api20201001Preview.IRoleInstanceProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RoleInstanceProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).NetworkProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile) content.GetValueForProperty("NetworkProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).NetworkProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceNetworkProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceViewTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).NetworkProfileNetworkInterface = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[]) content.GetValueForProperty("NetworkProfileNetworkInterface",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).NetworkProfileNetworkInterface, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceViewPlatformUpdateDomain = (int?) content.GetValueForProperty("InstanceViewPlatformUpdateDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceViewPlatformUpdateDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceViewPlatformFaultDomain = (int?) content.GetValueForProperty("InstanceViewPlatformFaultDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceViewPlatformFaultDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceViewPrivateId = (string) content.GetValueForProperty("InstanceViewPrivateId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceViewPrivateId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceViewStatuses = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[]) content.GetValueForProperty("InstanceViewStatuses",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceViewStatuses, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ResourceInstanceViewStatusTypeConverter.ConvertFrom)); - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RoleInstanceProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).NetworkProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile) content.GetValueForProperty("NetworkProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).NetworkProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceNetworkProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceViewTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).NetworkProfileNetworkInterface = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[]) content.GetValueForProperty("NetworkProfileNetworkInterface",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).NetworkProfileNetworkInterface, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceViewPlatformUpdateDomain = (int?) content.GetValueForProperty("InstanceViewPlatformUpdateDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceViewPlatformUpdateDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceViewPlatformFaultDomain = (int?) content.GetValueForProperty("InstanceViewPlatformFaultDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceViewPlatformFaultDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceViewPrivateId = (string) content.GetValueForProperty("InstanceViewPrivateId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceViewPrivateId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceViewStatuses = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[]) content.GetValueForProperty("InstanceViewStatuses",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceViewStatuses, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ResourceInstanceViewStatusTypeConverter.ConvertFrom)); - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - [System.ComponentModel.TypeConverter(typeof(RoleInstancePropertiesTypeConverter))] - public partial interface IRoleInstanceProperties - - { - - } -} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/ApiError.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/ApiError.PowerShell.cs similarity index 57% rename from src/CloudService/generated/api/Models/Api20201001Preview/ApiError.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/ApiError.PowerShell.cs index 0a94cc87f7a2..52b770216e11 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/ApiError.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/ApiError.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class ApiError 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,18 +61,18 @@ internal ApiError(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Innererror = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerError) content.GetValueForProperty("Innererror",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Innererror, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InnerErrorTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ApiErrorBaseTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Code, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Message, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Target, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).InnererrorExceptiontype = (string) content.GetValueForProperty("InnererrorExceptiontype",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).InnererrorExceptiontype, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).InnererrorErrordetail = (string) content.GetValueForProperty("InnererrorErrordetail",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).InnererrorErrordetail, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)this).Innererror = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInnerError) content.GetValueForProperty("Innererror",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)this).Innererror, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.InnerErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBase[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ApiErrorBaseTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)this).InnererrorExceptiontype = (string) content.GetValueForProperty("InnererrorExceptiontype",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)this).InnererrorExceptiontype, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)this).InnererrorErrordetail = (string) content.GetValueForProperty("InnererrorErrordetail",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)this).InnererrorErrordetail, 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. @@ -85,38 +85,38 @@ internal ApiError(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Innererror = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerError) content.GetValueForProperty("Innererror",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Innererror, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InnerErrorTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ApiErrorBaseTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Code, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Message, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Target, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).InnererrorExceptiontype = (string) content.GetValueForProperty("InnererrorExceptiontype",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).InnererrorExceptiontype, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).InnererrorErrordetail = (string) content.GetValueForProperty("InnererrorErrordetail",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).InnererrorErrordetail, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)this).Innererror = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInnerError) content.GetValueForProperty("Innererror",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)this).Innererror, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.InnerErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBase[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ApiErrorBaseTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)this).InnererrorExceptiontype = (string) content.GetValueForProperty("InnererrorExceptiontype",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)this).InnererrorExceptiontype, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)this).InnererrorErrordetail = (string) content.GetValueForProperty("InnererrorErrordetail",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)this).InnererrorErrordetail, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiError DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiError DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ApiError(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.CloudService.Models.Api20201001Preview.IApiError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ApiError(content); } @@ -126,7 +126,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/ApiError.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/ApiError.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/ApiError.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/ApiError.TypeConverter.cs index 434c0e880036..1ef7be4b0876 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/ApiError.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/ApiError.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.IApiError ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiError ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiError).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiError).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/ApiError.cs b/src/CloudService/generated/api/Models/Api20210301/ApiError.cs similarity index 80% rename from src/CloudService/generated/api/Models/Api20201001Preview/ApiError.cs rename to src/CloudService/generated/api/Models/Api20210301/ApiError.cs index 359d74da28e6..8854046a5eaa 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/ApiError.cs +++ b/src/CloudService/generated/api/Models/Api20210301/ApiError.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; /// Api error. public partial class ApiError : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiError, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiError, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal { /// Backing field for property. @@ -16,26 +16,26 @@ public partial class ApiError : public string Code { get => this._code; set => this._code = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase[] _detail; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBase[] _detail; /// The Api error details [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase[] Detail { get => this._detail; set => this._detail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBase[] Detail { get => this._detail; set => this._detail = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerError _innererror; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInnerError _innererror; /// The Api inner error [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerError Innererror { get => (this._innererror = this._innererror ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InnerError()); set => this._innererror = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInnerError Innererror { get => (this._innererror = this._innererror ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.InnerError()); set => this._innererror = value; } /// The internal error message or exception dump. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] - public string InnererrorErrordetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerErrorInternal)Innererror).Errordetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerErrorInternal)Innererror).Errordetail = value ?? null; } + public string InnererrorErrordetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInnerErrorInternal)Innererror).Errordetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInnerErrorInternal)Innererror).Errordetail = value ?? null; } /// The exception type. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] - public string InnererrorExceptiontype { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerErrorInternal)Innererror).Exceptiontype; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerErrorInternal)Innererror).Exceptiontype = value ?? null; } + public string InnererrorExceptiontype { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInnerErrorInternal)Innererror).Exceptiontype; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInnerErrorInternal)Innererror).Exceptiontype = value ?? null; } /// Backing field for property. private string _message; @@ -45,7 +45,7 @@ public partial class ApiError : public string Message { get => this._message; set => this._message = value; } /// Internal Acessors for Innererror - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerError Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal.Innererror { get => (this._innererror = this._innererror ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InnerError()); set { {_innererror = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInnerError Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal.Innererror { get => (this._innererror = this._innererror ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.InnerError()); set { {_innererror = value;} } } /// Backing field for property. private string _target; @@ -78,8 +78,8 @@ public partial interface IApiError : ReadOnly = false, Description = @"The Api error details", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase) })] - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase[] Detail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBase) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBase[] Detail { get; set; } /// The internal error message or exception dump. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( Required = false, @@ -121,9 +121,9 @@ internal partial interface IApiErrorInternal /// The error code. string Code { get; set; } /// The Api error details - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBase[] Detail { get; set; } /// The Api inner error - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerError Innererror { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInnerError Innererror { get; set; } /// The internal error message or exception dump. string InnererrorErrordetail { get; set; } /// The exception type. diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/ApiError.json.cs b/src/CloudService/generated/api/Models/Api20210301/ApiError.json.cs similarity index 92% rename from src/CloudService/generated/api/Models/Api20201001Preview/ApiError.json.cs rename to src/CloudService/generated/api/Models/Api20210301/ApiError.json.cs index df91bb1b85c0..a9c94de71c0a 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/ApiError.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/ApiError.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -58,8 +58,8 @@ internal ApiError(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.J { return; } - {_innererror = If( json?.PropertyT("innererror"), out var __jsonInnererror) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InnerError.FromJson(__jsonInnererror) : Innererror;} - {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.IApiErrorBase) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ApiErrorBase.FromJson(__u) )) ))() : null : Detail;} + {_innererror = If( json?.PropertyT("innererror"), out var __jsonInnererror) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.InnerError.FromJson(__jsonInnererror) : Innererror;} + {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20210301.IApiErrorBase) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ApiErrorBase.FromJson(__u) )) ))() : null : Detail;} {_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;} @@ -67,13 +67,13 @@ internal ApiError(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.J } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiError. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiError. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiError. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiError. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiError FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiError FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new ApiError(json) : null; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/ApiErrorBase.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/ApiErrorBase.PowerShell.cs similarity index 74% rename from src/CloudService/generated/api/Models/Api20201001Preview/ApiErrorBase.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/ApiErrorBase.PowerShell.cs index f44b22c864d5..f428b0cdf2f8 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/ApiErrorBase.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/ApiErrorBase.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class ApiErrorBase 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 ApiErrorBase(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBaseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBaseInternal)this).Code, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBaseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBaseInternal)this).Message, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBaseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBaseInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBaseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBaseInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBaseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBaseInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBaseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBaseInternal)this).Target, 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,34 +81,34 @@ internal ApiErrorBase(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBaseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBaseInternal)this).Code, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBaseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBaseInternal)this).Message, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBaseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBaseInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBaseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBaseInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBaseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBaseInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBaseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBaseInternal)this).Target, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBase DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ApiErrorBase(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.CloudService.Models.Api20201001Preview.IApiErrorBase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ApiErrorBase(content); } @@ -118,7 +118,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBase FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/ApiErrorBase.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/ApiErrorBase.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/ApiErrorBase.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/ApiErrorBase.TypeConverter.cs index a7257258979f..d8885359b3b1 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/ApiErrorBase.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/ApiErrorBase.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.IApiErrorBase ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBase ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBase).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/ApiErrorBase.cs b/src/CloudService/generated/api/Models/Api20210301/ApiErrorBase.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/ApiErrorBase.cs rename to src/CloudService/generated/api/Models/Api20210301/ApiErrorBase.cs index 8d89531098c1..80ccbfc29fd9 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/ApiErrorBase.cs +++ b/src/CloudService/generated/api/Models/Api20210301/ApiErrorBase.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; /// Api error base. public partial class ApiErrorBase : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBase, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBaseInternal { /// Backing field for property. diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/ApiErrorBase.json.cs b/src/CloudService/generated/api/Models/Api20210301/ApiErrorBase.json.cs similarity index 96% rename from src/CloudService/generated/api/Models/Api20201001Preview/ApiErrorBase.json.cs rename to src/CloudService/generated/api/Models/Api20210301/ApiErrorBase.json.cs index bdb5f56d72bf..05f0ba2a664c 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/ApiErrorBase.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/ApiErrorBase.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -65,13 +65,13 @@ internal ApiErrorBase(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Js } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBase. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBase. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBase FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new ApiErrorBase(json) : null; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudError.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/CloudError.PowerShell.cs similarity index 54% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudError.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudError.PowerShell.cs index e85c9f425b5d..54e339959b2f 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudError.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudError.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class CloudError 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,19 +61,19 @@ internal CloudError(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ApiErrorTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Innererror = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerError) content.GetValueForProperty("Innererror",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Innererror, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InnerErrorTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ApiErrorBaseTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Code, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Message, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Target, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).InnererrorExceptiontype = (string) content.GetValueForProperty("InnererrorExceptiontype",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).InnererrorExceptiontype, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).InnererrorErrordetail = (string) content.GetValueForProperty("InnererrorErrordetail",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).InnererrorErrordetail, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ApiErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal)this).Innererror = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInnerError) content.GetValueForProperty("Innererror",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal)this).Innererror, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.InnerErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBase[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ApiErrorBaseTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal)this).InnererrorExceptiontype = (string) content.GetValueForProperty("InnererrorExceptiontype",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal)this).InnererrorExceptiontype, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal)this).InnererrorErrordetail = (string) content.GetValueForProperty("InnererrorErrordetail",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal)this).InnererrorErrordetail, 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. @@ -86,39 +86,39 @@ internal CloudError(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ApiErrorTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Innererror = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerError) content.GetValueForProperty("Innererror",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Innererror, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InnerErrorTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ApiErrorBaseTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Code, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Message, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Target, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).InnererrorExceptiontype = (string) content.GetValueForProperty("InnererrorExceptiontype",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).InnererrorExceptiontype, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).InnererrorErrordetail = (string) content.GetValueForProperty("InnererrorErrordetail",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).InnererrorErrordetail, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ApiErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal)this).Innererror = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInnerError) content.GetValueForProperty("Innererror",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal)this).Innererror, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.InnerErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBase[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ApiErrorBaseTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal)this).InnererrorExceptiontype = (string) content.GetValueForProperty("InnererrorExceptiontype",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal)this).InnererrorExceptiontype, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal)this).InnererrorErrordetail = (string) content.GetValueForProperty("InnererrorErrordetail",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal)this).InnererrorErrordetail, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudError DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudError DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CloudError(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.CloudService.Models.Api20201001Preview.ICloudError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CloudError(content); } @@ -128,7 +128,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudError.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/CloudError.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudError.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudError.TypeConverter.cs index 636c2035ef51..e29ed0e0e401 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudError.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudError.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.ICloudError ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudError ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudError).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudError).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudError.cs b/src/CloudService/generated/api/Models/Api20210301/CloudError.cs similarity index 69% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudError.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudError.cs index fb53452550e2..1ed550f6167b 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudError.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudError.cs @@ -1,49 +1,49 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; /// An error response from the Compute service. public partial class CloudError : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudError, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudError, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal { /// The error code. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)Error).Code = value ?? null; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)Error).Code = value ?? null; } /// The Api error details [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)Error).Detail = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBase[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)Error).Detail = value ?? null /* arrayOf */; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiError _error; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiError _error; /// Api error. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ApiError()); set => this._error = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ApiError()); set => this._error = value; } /// The internal error message or exception dump. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] - public string InnererrorErrordetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)Error).InnererrorErrordetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)Error).InnererrorErrordetail = value ?? null; } + public string InnererrorErrordetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)Error).InnererrorErrordetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)Error).InnererrorErrordetail = value ?? null; } /// The exception type. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] - public string InnererrorExceptiontype { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)Error).InnererrorExceptiontype; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)Error).InnererrorExceptiontype = value ?? null; } + public string InnererrorExceptiontype { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)Error).InnererrorExceptiontype; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)Error).InnererrorExceptiontype = value ?? null; } /// The error message. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)Error).Message = value ?? null; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)Error).Message = value ?? null; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiError Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ApiError()); set { {_error = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiError Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ApiError()); set { {_error = value;} } } /// Internal Acessors for Innererror - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerError Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal.Innererror { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)Error).Innererror; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)Error).Innererror = value; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInnerError Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudErrorInternal.Innererror { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)Error).Innererror; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)Error).Innererror = value; } /// The target of the particular error. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)Error).Target = value ?? null; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorInternal)Error).Target = value ?? null; } /// Creates an new instance. public CloudError() @@ -69,8 +69,8 @@ public partial interface ICloudError : ReadOnly = false, Description = @"The Api error details", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase) })] - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase[] Detail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBase) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBase[] Detail { get; set; } /// The internal error message or exception dump. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( Required = false, @@ -112,11 +112,11 @@ internal partial interface ICloudErrorInternal /// The error code. string Code { get; set; } /// The Api error details - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiErrorBase[] Detail { get; set; } /// Api error. - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiError Error { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IApiError Error { get; set; } /// The Api inner error - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerError Innererror { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInnerError Innererror { get; set; } /// The internal error message or exception dump. string InnererrorErrordetail { get; set; } /// The exception type. diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudError.json.cs b/src/CloudService/generated/api/Models/Api20210301/CloudError.json.cs similarity index 95% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudError.json.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudError.json.cs index cd92520d458f..9fe54afcd789 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudError.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudError.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -58,18 +58,18 @@ internal CloudError(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json { return; } - {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ApiError.FromJson(__jsonError) : Error;} + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ApiError.FromJson(__jsonError) : Error;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudError. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudError. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudError. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudError. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudError FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudError FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudError(json) : null; } diff --git a/src/CloudService/generated/api/Models/Api20210301/CloudService.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/CloudService.PowerShell.cs new file mode 100644 index 000000000000..9960da156068 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/CloudService.PowerShell.cs @@ -0,0 +1,165 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// Describes the cloud service. + [System.ComponentModel.TypeConverter(typeof(CloudServiceTypeConverter))] + public partial class CloudService + { + + /// + /// 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 CloudService(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServicePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).RoleProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfile) content.GetValueForProperty("RoleProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).RoleProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).PackageUrl = (string) content.GetValueForProperty("PackageUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).PackageUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).ConfigurationUrl = (string) content.GetValueForProperty("ConfigurationUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).ConfigurationUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).StartCloudService = (bool?) content.GetValueForProperty("StartCloudService",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).StartCloudService, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).AllowModelOverride = (bool?) content.GetValueForProperty("AllowModelOverride",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).AllowModelOverride, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).UpgradeMode = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode?) content.GetValueForProperty("UpgradeMode",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).UpgradeMode, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).Configuration = (string) content.GetValueForProperty("Configuration",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).Configuration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).OSProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceOSProfile) content.GetValueForProperty("OSProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).OSProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceOSProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).NetworkProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfile) content.GetValueForProperty("NetworkProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).NetworkProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceNetworkProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).ExtensionProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProfile) content.GetValueForProperty("ExtensionProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).ExtensionProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceExtensionProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).UniqueId = (string) content.GetValueForProperty("UniqueId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).UniqueId, 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 CloudService(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServicePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).RoleProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfile) content.GetValueForProperty("RoleProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).RoleProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).PackageUrl = (string) content.GetValueForProperty("PackageUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).PackageUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).ConfigurationUrl = (string) content.GetValueForProperty("ConfigurationUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).ConfigurationUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).StartCloudService = (bool?) content.GetValueForProperty("StartCloudService",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).StartCloudService, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).AllowModelOverride = (bool?) content.GetValueForProperty("AllowModelOverride",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).AllowModelOverride, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).UpgradeMode = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode?) content.GetValueForProperty("UpgradeMode",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).UpgradeMode, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).Configuration = (string) content.GetValueForProperty("Configuration",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).Configuration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).OSProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceOSProfile) content.GetValueForProperty("OSProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).OSProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceOSProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).NetworkProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfile) content.GetValueForProperty("NetworkProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).NetworkProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceNetworkProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).ExtensionProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProfile) content.GetValueForProperty("ExtensionProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).ExtensionProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceExtensionProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).UniqueId = (string) content.GetValueForProperty("UniqueId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal)this).UniqueId, 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.CloudService.Models.Api20210301.ICloudService DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CloudService(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.CloudService.Models.Api20210301.ICloudService DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CloudService(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.CloudService.Models.Api20210301.ICloudService FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Describes the cloud service. + [System.ComponentModel.TypeConverter(typeof(CloudServiceTypeConverter))] + public partial interface ICloudService + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudService.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/CloudService.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudService.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudService.TypeConverter.cs index 0246405369f6..4790d016cd88 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudService.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudService.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.ICloudService ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudService.cs b/src/CloudService/generated/api/Models/Api20210301/CloudService.cs similarity index 73% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudService.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudService.cs index ec1d6d921a6d..8400d4f13186 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudService.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudService.cs @@ -1,17 +1,26 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; /// Describes the cloud service. public partial class CloudService : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal { + /// + /// (Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override + /// the role instance count and vm size specified in the .cscfg and .csdef respectively. + /// The default value is `false`. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public bool? AllowModelOverride { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)Property).AllowModelOverride; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)Property).AllowModelOverride = value ?? default(bool); } + /// Specifies the XML service configuration (.cscfg) for the cloud service. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] - public string Configuration { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).Configuration = value ?? null; } + public string Configuration { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)Property).Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)Property).Configuration = value ?? null; } /// /// Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL @@ -20,12 +29,12 @@ public partial class CloudService : /// [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] - public string ConfigurationUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).ConfigurationUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).ConfigurationUrl = value ?? null; } + public string ConfigurationUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)Property).ConfigurationUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)Property).ConfigurationUrl = value ?? null; } /// Describes a cloud service extension profile. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile ExtensionProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).ExtensionProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).ExtensionProfile = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProfile ExtensionProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)Property).ExtensionProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)Property).ExtensionProfile = value ?? null /* model class */; } /// Backing field for property. private string _id; @@ -44,22 +53,22 @@ public partial class CloudService : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceProperties Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceProperties Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal.Type { get => this._type; set { {_type = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal.Type { get => this._type; set { {_type = value;} } } /// Internal Acessors for UniqueId - string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal.UniqueId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).UniqueId; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).UniqueId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInternal.UniqueId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)Property).UniqueId; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)Property).UniqueId = value; } /// Backing field for property. private string _name; @@ -72,12 +81,12 @@ public partial class CloudService : /// Network Profile for the cloud service. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile NetworkProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).NetworkProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).NetworkProfile = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfile NetworkProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)Property).NetworkProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)Property).NetworkProfile = value ?? null /* model class */; } /// Describes the OS profile for the cloud service. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile OSProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).OSProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).OSProfile = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceOSProfile OSProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)Property).OSProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)Property).OSProfile = value ?? null /* model class */; } /// /// Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be @@ -86,25 +95,25 @@ public partial class CloudService : /// [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] - public string PackageUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).PackageUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).PackageUrl = value ?? null; } + public string PackageUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)Property).PackageUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)Property).PackageUrl = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceProperties _property; /// Cloud service properties [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] - internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceProperties()); set => this._property = value; } /// The provisioning state, which only appears in the response. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 3)] - public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).ProvisioningState; } + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)Property).ProvisioningState; } /// Describes the role profile for the cloud service. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile RoleProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).RoleProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).RoleProfile = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfile RoleProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)Property).RoleProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)Property).RoleProfile = value ?? null /* model class */; } /// /// (Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`. @@ -114,15 +123,15 @@ public partial class CloudService : /// [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] - public bool? StartCloudService { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).StartCloudService; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).StartCloudService = value ?? default(bool); } + public bool? StartCloudService { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)Property).StartCloudService; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)Property).StartCloudService = value ?? default(bool); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceTags _tag; /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceTags()); set => this._tag = value; } /// Backing field for property. private string _type; @@ -135,7 +144,7 @@ public partial class CloudService : /// The unique identifier for the cloud service. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] - public string UniqueId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).UniqueId; } + public string UniqueId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)Property).UniqueId; } /// /// Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates @@ -146,7 +155,7 @@ public partial class CloudService : /// [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode? UpgradeMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).UpgradeMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).UpgradeMode = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode)""); } + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode? UpgradeMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)Property).UpgradeMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)Property).UpgradeMode = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode)""); } /// Creates an new instance. public CloudService() @@ -158,6 +167,19 @@ public CloudService() public partial interface ICloudService : Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable { + /// + /// (Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override + /// the role instance count and vm size specified in the .cscfg and .csdef respectively. + /// The default value is `false`. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"(Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override the role instance count and vm size specified in the .cscfg and .csdef respectively. + The default value is `false`.", + SerializedName = @"allowModelOverride", + PossibleTypes = new [] { typeof(bool) })] + bool? AllowModelOverride { get; set; } /// Specifies the XML service configuration (.cscfg) for the cloud service. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( Required = false, @@ -185,8 +207,8 @@ public partial interface ICloudService : ReadOnly = false, Description = @"Describes a cloud service extension profile.", SerializedName = @"extensionProfile", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile) })] - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile ExtensionProfile { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProfile) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProfile ExtensionProfile { get; set; } /// Resource Id. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( Required = false, @@ -217,16 +239,16 @@ public partial interface ICloudService : ReadOnly = false, Description = @"Network Profile for the cloud service.", SerializedName = @"networkProfile", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile) })] - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile NetworkProfile { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfile) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfile NetworkProfile { get; set; } /// Describes the OS profile for the cloud service. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( Required = false, ReadOnly = false, Description = @"Describes the OS profile for the cloud service.", SerializedName = @"osProfile", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile) })] - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile OSProfile { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceOSProfile) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceOSProfile OSProfile { get; set; } /// /// Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be /// Shared Access Signature (SAS) URI from any storage account. @@ -254,8 +276,8 @@ public partial interface ICloudService : ReadOnly = false, Description = @"Describes the role profile for the cloud service.", SerializedName = @"roleProfile", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile) })] - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile RoleProfile { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfile) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfile RoleProfile { get; set; } /// /// (Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`. /// If false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff @@ -276,8 +298,8 @@ public partial interface ICloudService : ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTags) })] - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceTags) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceTags Tag { get; set; } /// Resource type. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( Required = false, @@ -316,6 +338,12 @@ Possible Values are

**Auto**

**Manual**

**Sim internal partial interface ICloudServiceInternal { + /// + /// (Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override + /// the role instance count and vm size specified in the .cscfg and .csdef respectively. + /// The default value is `false`. + /// + bool? AllowModelOverride { get; set; } /// Specifies the XML service configuration (.cscfg) for the cloud service. string Configuration { get; set; } /// @@ -325,7 +353,7 @@ internal partial interface ICloudServiceInternal /// string ConfigurationUrl { get; set; } /// Describes a cloud service extension profile. - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile ExtensionProfile { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProfile ExtensionProfile { get; set; } /// Resource Id. string Id { get; set; } /// Resource location. @@ -333,9 +361,9 @@ internal partial interface ICloudServiceInternal /// Resource name. string Name { get; set; } /// Network Profile for the cloud service. - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile NetworkProfile { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfile NetworkProfile { get; set; } /// Describes the OS profile for the cloud service. - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile OSProfile { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceOSProfile OSProfile { get; set; } /// /// Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be /// Shared Access Signature (SAS) URI from any storage account. @@ -343,11 +371,11 @@ internal partial interface ICloudServiceInternal /// string PackageUrl { get; set; } /// Cloud service properties - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceProperties Property { get; set; } /// The provisioning state, which only appears in the response. string ProvisioningState { get; set; } /// Describes the role profile for the cloud service. - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile RoleProfile { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfile RoleProfile { get; set; } /// /// (Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`. /// If false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff @@ -356,7 +384,7 @@ internal partial interface ICloudServiceInternal /// bool? StartCloudService { get; set; } /// Resource tags. - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceTags Tag { get; set; } /// Resource type. string Type { get; set; } /// The unique identifier for the cloud service. diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudService.json.cs b/src/CloudService/generated/api/Models/Api20210301/CloudService.json.cs similarity index 95% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudService.json.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudService.json.cs index 7e46c318c1bd..0cb7783d95c0 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudService.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudService.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -58,23 +58,23 @@ internal CloudService(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Js { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceProperties.FromJson(__jsonProperties) : Property;} {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceTags.FromJson(__jsonTags) : Tag;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudService(json) : null; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProfile.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceExtensionProfile.PowerShell.cs similarity index 75% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProfile.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceExtensionProfile.PowerShell.cs index 5bb1e23cae7b..f06c9fc0d082 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProfile.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceExtensionProfile.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class CloudServiceExtensionProfile 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,12 +61,12 @@ internal CloudServiceExtensionProfile(global::System.Collections.IDictionary con return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfileInternal)this).Extension = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtension[]) content.GetValueForProperty("Extension",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfileInternal)this).Extension, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ExtensionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProfileInternal)this).Extension = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtension[]) content.GetValueForProperty("Extension",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProfileInternal)this).Extension, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ExtensionTypeConverter.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. @@ -79,34 +79,34 @@ internal CloudServiceExtensionProfile(global::System.Management.Automation.PSObj return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfileInternal)this).Extension = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtension[]) content.GetValueForProperty("Extension",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfileInternal)this).Extension, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ExtensionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProfileInternal)this).Extension = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtension[]) content.GetValueForProperty("Extension",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProfileInternal)this).Extension, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ExtensionTypeConverter.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.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProfile DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CloudServiceExtensionProfile(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.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProfile DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CloudServiceExtensionProfile(content); } @@ -116,7 +116,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 ///
/// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProfile FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProfile.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceExtensionProfile.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProfile.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceExtensionProfile.TypeConverter.cs index 02e9ccaa6764..d1b2e73c9cde 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProfile.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceExtensionProfile.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProfile ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProfile).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProfile.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceExtensionProfile.cs similarity index 80% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProfile.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceExtensionProfile.cs index 701cad17843b..770fb13804d9 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProfile.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceExtensionProfile.cs @@ -1,19 +1,19 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; /// Describes a cloud service extension profile. public partial class CloudServiceExtensionProfile : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfileInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProfile, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProfileInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtension[] _extension; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtension[] _extension; /// List of extensions for the cloud service. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtension[] Extension { get => this._extension; set => this._extension = value; } + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtension[] Extension { get => this._extension; set => this._extension = value; } /// Creates an new instance. public CloudServiceExtensionProfile() @@ -31,8 +31,8 @@ public partial interface ICloudServiceExtensionProfile : ReadOnly = false, Description = @"List of extensions for the cloud service.", SerializedName = @"extensions", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtension) })] - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtension[] Extension { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtension) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtension[] Extension { get; set; } } /// Describes a cloud service extension profile. @@ -40,7 +40,7 @@ internal partial interface ICloudServiceExtensionProfileInternal { /// List of extensions for the cloud service. - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtension[] Extension { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtension[] Extension { get; set; } } } \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProfile.json.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceExtensionProfile.json.cs similarity index 91% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProfile.json.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceExtensionProfile.json.cs index 4dafdd58a5db..48a9d68c142e 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProfile.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceExtensionProfile.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -58,18 +58,18 @@ internal CloudServiceExtensionProfile(Microsoft.Azure.PowerShell.Cmdlets.CloudSe { return; } - {_extension = If( json?.PropertyT("extensions"), out var __jsonExtensions) ? If( __jsonExtensions as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.IExtension) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension.FromJson(__u) )) ))() : null : Extension;} + {_extension = If( json?.PropertyT("extensions"), out var __jsonExtensions) ? If( __jsonExtensions as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20210301.IExtension) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.Extension.FromJson(__u) )) ))() : null : Extension;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProfile. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProfile. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProfile FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceExtensionProfile(json) : null; } diff --git a/src/CloudService/generated/api/Models/Api20210301/CloudServiceExtensionProperties.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceExtensionProperties.PowerShell.cs new file mode 100644 index 000000000000..f820001eaf89 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceExtensionProperties.PowerShell.cs @@ -0,0 +1,157 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// Extension Properties. + [System.ComponentModel.TypeConverter(typeof(CloudServiceExtensionPropertiesTypeConverter))] + public partial class CloudServiceExtensionProperties + { + + /// + /// 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 CloudServiceExtensionProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingsFromKeyVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReference) content.GetValueForProperty("ProtectedSettingsFromKeyVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingsFromKeyVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceVaultAndSecretReferenceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).Publisher = (string) content.GetValueForProperty("Publisher",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).Publisher, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).TypeHandlerVersion = (string) content.GetValueForProperty("TypeHandlerVersion",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).TypeHandlerVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).AutoUpgradeMinorVersion = (bool?) content.GetValueForProperty("AutoUpgradeMinorVersion",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).AutoUpgradeMinorVersion, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).Setting = (string) content.GetValueForProperty("Setting",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).Setting, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).ProtectedSetting = (string) content.GetValueForProperty("ProtectedSetting",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).ProtectedSetting, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).ForceUpdateTag = (string) content.GetValueForProperty("ForceUpdateTag",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).ForceUpdateTag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).RolesAppliedTo = (string[]) content.GetValueForProperty("RolesAppliedTo",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).RolesAppliedTo, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingFromKeyVaultSourceVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource) content.GetValueForProperty("ProtectedSettingFromKeyVaultSourceVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingFromKeyVaultSourceVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingFromKeyVaultSecretUrl = (string) content.GetValueForProperty("ProtectedSettingFromKeyVaultSecretUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingFromKeyVaultSecretUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).SourceVaultId = (string) content.GetValueForProperty("SourceVaultId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).SourceVaultId, 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 CloudServiceExtensionProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingsFromKeyVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReference) content.GetValueForProperty("ProtectedSettingsFromKeyVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingsFromKeyVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceVaultAndSecretReferenceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).Publisher = (string) content.GetValueForProperty("Publisher",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).Publisher, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).TypeHandlerVersion = (string) content.GetValueForProperty("TypeHandlerVersion",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).TypeHandlerVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).AutoUpgradeMinorVersion = (bool?) content.GetValueForProperty("AutoUpgradeMinorVersion",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).AutoUpgradeMinorVersion, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).Setting = (string) content.GetValueForProperty("Setting",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).Setting, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).ProtectedSetting = (string) content.GetValueForProperty("ProtectedSetting",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).ProtectedSetting, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).ForceUpdateTag = (string) content.GetValueForProperty("ForceUpdateTag",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).ForceUpdateTag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).RolesAppliedTo = (string[]) content.GetValueForProperty("RolesAppliedTo",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).RolesAppliedTo, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingFromKeyVaultSourceVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource) content.GetValueForProperty("ProtectedSettingFromKeyVaultSourceVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingFromKeyVaultSourceVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingFromKeyVaultSecretUrl = (string) content.GetValueForProperty("ProtectedSettingFromKeyVaultSecretUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingFromKeyVaultSecretUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).SourceVaultId = (string) content.GetValueForProperty("SourceVaultId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)this).SourceVaultId, 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.CloudService.Models.Api20210301.ICloudServiceExtensionProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CloudServiceExtensionProperties(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.CloudService.Models.Api20210301.ICloudServiceExtensionProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CloudServiceExtensionProperties(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.CloudService.Models.Api20210301.ICloudServiceExtensionProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Extension Properties. + [System.ComponentModel.TypeConverter(typeof(CloudServiceExtensionPropertiesTypeConverter))] + public partial interface ICloudServiceExtensionProperties + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProperties.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceExtensionProperties.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProperties.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceExtensionProperties.TypeConverter.cs index 283bfef2e0ee..0b2cfd4bdfbb 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProperties.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceExtensionProperties.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProperties.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceExtensionProperties.cs similarity index 87% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProperties.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceExtensionProperties.cs index 89c3fffc225b..0776461a8520 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProperties.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceExtensionProperties.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; /// Extension Properties. public partial class CloudServiceExtensionProperties : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProperties, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProperties, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal { /// Backing field for property. @@ -33,13 +33,13 @@ public partial class CloudServiceExtensionProperties : public string ForceUpdateTag { get => this._forceUpdateTag; set => this._forceUpdateTag = value; } /// Internal Acessors for ProtectedSettingFromKeyVaultSourceVault - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal.ProtectedSettingFromKeyVaultSourceVault { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)ProtectedSettingsFromKeyVault).SourceVault; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)ProtectedSettingsFromKeyVault).SourceVault = value; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal.ProtectedSettingFromKeyVaultSourceVault { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReferenceInternal)ProtectedSettingsFromKeyVault).SourceVault; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReferenceInternal)ProtectedSettingsFromKeyVault).SourceVault = value; } /// Internal Acessors for ProtectedSettingsFromKeyVault - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal.ProtectedSettingsFromKeyVault { get => (this._protectedSettingsFromKeyVault = this._protectedSettingsFromKeyVault ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultAndSecretReference()); set { {_protectedSettingsFromKeyVault = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReference Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal.ProtectedSettingsFromKeyVault { get => (this._protectedSettingsFromKeyVault = this._protectedSettingsFromKeyVault ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceVaultAndSecretReference()); set { {_protectedSettingsFromKeyVault = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Backing field for property. private string _protectedSetting; @@ -51,13 +51,13 @@ public partial class CloudServiceExtensionProperties : public string ProtectedSetting { get => this._protectedSetting; set => this._protectedSetting = value; } [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] - public string ProtectedSettingFromKeyVaultSecretUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)ProtectedSettingsFromKeyVault).SecretUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)ProtectedSettingsFromKeyVault).SecretUrl = value ?? null; } + public string ProtectedSettingFromKeyVaultSecretUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReferenceInternal)ProtectedSettingsFromKeyVault).SecretUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReferenceInternal)ProtectedSettingsFromKeyVault).SecretUrl = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference _protectedSettingsFromKeyVault; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReference _protectedSettingsFromKeyVault; [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference ProtectedSettingsFromKeyVault { get => (this._protectedSettingsFromKeyVault = this._protectedSettingsFromKeyVault ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultAndSecretReference()); set => this._protectedSettingsFromKeyVault = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReference ProtectedSettingsFromKeyVault { get => (this._protectedSettingsFromKeyVault = this._protectedSettingsFromKeyVault ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceVaultAndSecretReference()); set => this._protectedSettingsFromKeyVault = value; } /// Backing field for property. private string _provisioningState; @@ -95,7 +95,7 @@ public partial class CloudServiceExtensionProperties : /// Resource Id [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] - public string SourceVaultId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)ProtectedSettingsFromKeyVault).SourceVaultId; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)ProtectedSettingsFromKeyVault).SourceVaultId = value ?? null; } + public string SourceVaultId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReferenceInternal)ProtectedSettingsFromKeyVault).SourceVaultId; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReferenceInternal)ProtectedSettingsFromKeyVault).SourceVaultId = value ?? null; } /// Backing field for property. private string _type; @@ -270,9 +270,9 @@ internal partial interface ICloudServiceExtensionPropertiesInternal string ProtectedSettingFromKeyVaultSecretUrl { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource ProtectedSettingFromKeyVaultSourceVault { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource ProtectedSettingFromKeyVaultSourceVault { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference ProtectedSettingsFromKeyVault { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReference ProtectedSettingsFromKeyVault { get; set; } /// The provisioning state, which only appears in the response. string ProvisioningState { get; set; } /// The name of the extension handler publisher. diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProperties.json.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceExtensionProperties.json.cs similarity index 96% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProperties.json.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceExtensionProperties.json.cs index f05f1703b0f2..4545949bb9cd 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProperties.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceExtensionProperties.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -58,7 +58,7 @@ internal CloudServiceExtensionProperties(Microsoft.Azure.PowerShell.Cmdlets.Clou { return; } - {_protectedSettingsFromKeyVault = If( json?.PropertyT("protectedSettingsFromKeyVault"), out var __jsonProtectedSettingsFromKeyVault) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultAndSecretReference.FromJson(__jsonProtectedSettingsFromKeyVault) : ProtectedSettingsFromKeyVault;} + {_protectedSettingsFromKeyVault = If( json?.PropertyT("protectedSettingsFromKeyVault"), out var __jsonProtectedSettingsFromKeyVault) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceVaultAndSecretReference.FromJson(__jsonProtectedSettingsFromKeyVault) : ProtectedSettingsFromKeyVault;} {_publisher = If( json?.PropertyT("publisher"), out var __jsonPublisher) ? (string)__jsonPublisher : (string)Publisher;} {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} {_typeHandlerVersion = If( json?.PropertyT("typeHandlerVersion"), out var __jsonTypeHandlerVersion) ? (string)__jsonTypeHandlerVersion : (string)TypeHandlerVersion;} @@ -72,13 +72,13 @@ internal CloudServiceExtensionProperties(Microsoft.Azure.PowerShell.Cmdlets.Clou } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceExtensionProperties(json) : null; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceInstanceView.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceInstanceView.PowerShell.cs similarity index 56% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceInstanceView.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceInstanceView.PowerShell.cs index eda4baef3db3..90629ddf0697 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceInstanceView.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceInstanceView.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class CloudServiceInstanceView 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,15 +61,16 @@ internal CloudServiceInstanceView(global::System.Collections.IDictionary content return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal)this).RoleInstance = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummary) content.GetValueForProperty("RoleInstance",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal)this).RoleInstance, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InstanceViewStatusesSummaryTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal)this).SdkVersion = (string) content.GetValueForProperty("SdkVersion",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal)this).SdkVersion, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal)this).Statuses = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[]) content.GetValueForProperty("Statuses",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal)this).Statuses, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ResourceInstanceViewStatusTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal)this).RoleInstanceStatusesSummary = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount[]) content.GetValueForProperty("RoleInstanceStatusesSummary",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal)this).RoleInstanceStatusesSummary, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.StatusCodeCountTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal)this).RoleInstance = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceViewStatusesSummary) content.GetValueForProperty("RoleInstance",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal)this).RoleInstance, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.InstanceViewStatusesSummaryTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal)this).SdkVersion = (string) content.GetValueForProperty("SdkVersion",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal)this).SdkVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal)this).PrivateId = (string[]) content.GetValueForProperty("PrivateId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal)this).PrivateId, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal)this).Statuses = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus[]) content.GetValueForProperty("Statuses",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal)this).Statuses, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ResourceInstanceViewStatusTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal)this).RoleInstanceStatusesSummary = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCount[]) content.GetValueForProperty("RoleInstanceStatusesSummary",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal)this).RoleInstanceStatusesSummary, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.StatusCodeCountTypeConverter.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. @@ -82,37 +83,38 @@ internal CloudServiceInstanceView(global::System.Management.Automation.PSObject return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal)this).RoleInstance = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummary) content.GetValueForProperty("RoleInstance",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal)this).RoleInstance, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InstanceViewStatusesSummaryTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal)this).SdkVersion = (string) content.GetValueForProperty("SdkVersion",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal)this).SdkVersion, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal)this).Statuses = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[]) content.GetValueForProperty("Statuses",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal)this).Statuses, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ResourceInstanceViewStatusTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal)this).RoleInstanceStatusesSummary = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount[]) content.GetValueForProperty("RoleInstanceStatusesSummary",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal)this).RoleInstanceStatusesSummary, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.StatusCodeCountTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal)this).RoleInstance = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceViewStatusesSummary) content.GetValueForProperty("RoleInstance",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal)this).RoleInstance, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.InstanceViewStatusesSummaryTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal)this).SdkVersion = (string) content.GetValueForProperty("SdkVersion",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal)this).SdkVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal)this).PrivateId = (string[]) content.GetValueForProperty("PrivateId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal)this).PrivateId, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal)this).Statuses = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus[]) content.GetValueForProperty("Statuses",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal)this).Statuses, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ResourceInstanceViewStatusTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal)this).RoleInstanceStatusesSummary = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCount[]) content.GetValueForProperty("RoleInstanceStatusesSummary",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal)this).RoleInstanceStatusesSummary, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.StatusCodeCountTypeConverter.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.CloudService.Models.Api20201001Preview.ICloudServiceInstanceView DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceView DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CloudServiceInstanceView(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.CloudService.Models.Api20201001Preview.ICloudServiceInstanceView DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceView DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CloudServiceInstanceView(content); } @@ -122,7 +124,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 ///
/// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceView FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceView FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceInstanceView.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceInstanceView.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceInstanceView.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceInstanceView.TypeConverter.cs index 84475e32b798..3bb722e3b603 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceInstanceView.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceInstanceView.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.ICloudServiceInstanceView ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceView ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceView).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceView).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceInstanceView.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceInstanceView.cs similarity index 51% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceInstanceView.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceInstanceView.cs index 02afc5306d57..5fb02fea933d 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceInstanceView.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceInstanceView.cs @@ -1,36 +1,50 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; /// InstanceView of CloudService as a whole public partial class CloudServiceInstanceView : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceView, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceView, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal { + /// Internal Acessors for PrivateId + string[] Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal.PrivateId { get => this._privateId; set { {_privateId = value;} } } + /// Internal Acessors for RoleInstance - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummary Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal.RoleInstance { get => (this._roleInstance = this._roleInstance ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InstanceViewStatusesSummary()); set { {_roleInstance = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceViewStatusesSummary Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal.RoleInstance { get => (this._roleInstance = this._roleInstance ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.InstanceViewStatusesSummary()); set { {_roleInstance = value;} } } /// Internal Acessors for RoleInstanceStatusesSummary - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount[] Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal.RoleInstanceStatusesSummary { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummaryInternal)RoleInstance).StatusesSummary; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummaryInternal)RoleInstance).StatusesSummary = value; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCount[] Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal.RoleInstanceStatusesSummary { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceViewStatusesSummaryInternal)RoleInstance).StatusesSummary; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceViewStatusesSummaryInternal)RoleInstance).StatusesSummary = value; } /// Internal Acessors for SdkVersion - string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal.SdkVersion { get => this._sdkVersion; set { {_sdkVersion = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal.SdkVersion { get => this._sdkVersion; set { {_sdkVersion = value;} } } /// Internal Acessors for Statuses - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal.Statuses { get => this._statuses; set { {_statuses = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus[] Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceViewInternal.Statuses { get => this._statuses; set { {_statuses = value;} } } + + /// Backing field for property. + private string[] _privateId; + + /// + /// Specifies a list of unique identifiers generated internally for the cloud service.

NOTE: If you are using + /// Azure Diagnostics extension, this property can be used as 'DeploymentId' for querying details. + ///
+ [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public string[] PrivateId { get => this._privateId; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummary _roleInstance; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceViewStatusesSummary _roleInstance; /// Instance view statuses. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] - internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummary RoleInstance { get => (this._roleInstance = this._roleInstance ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InstanceViewStatusesSummary()); set => this._roleInstance = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceViewStatusesSummary RoleInstance { get => (this._roleInstance = this._roleInstance ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.InstanceViewStatusesSummary()); set => this._roleInstance = value; } [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 1)] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount[] RoleInstanceStatusesSummary { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummaryInternal)RoleInstance).StatusesSummary; } + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCount[] RoleInstanceStatusesSummary { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceViewStatusesSummaryInternal)RoleInstance).StatusesSummary; } /// Backing field for property. private string _sdkVersion; @@ -43,11 +57,11 @@ public partial class CloudServiceInstanceView : public string SdkVersion { get => this._sdkVersion; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] _statuses; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus[] _statuses; [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 0)] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] Statuses { get => this._statuses; } + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus[] Statuses { get => this._statuses; } /// Creates an new instance. public CloudServiceInstanceView() @@ -59,13 +73,25 @@ public CloudServiceInstanceView() public partial interface ICloudServiceInstanceView : Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable { + /// + /// Specifies a list of unique identifiers generated internally for the cloud service.

NOTE: If you are using + /// Azure Diagnostics extension, this property can be used as 'DeploymentId' for querying details. + ///
+ [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Specifies a list of unique identifiers generated internally for the cloud service.

NOTE: If you are using Azure Diagnostics extension, this property can be used as 'DeploymentId' for querying details.", + SerializedName = @"privateIds", + PossibleTypes = new [] { typeof(string) })] + string[] PrivateId { get; } + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( Required = false, ReadOnly = true, Description = @"", SerializedName = @"statusesSummary", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount) })] - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount[] RoleInstanceStatusesSummary { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCount) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCount[] RoleInstanceStatusesSummary { get; } /// /// The version of the SDK that was used to generate the package for the cloud service. /// @@ -82,24 +108,29 @@ public partial interface ICloudServiceInstanceView : ReadOnly = true, Description = @"", SerializedName = @"statuses", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus) })] - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] Statuses { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus[] Statuses { get; } } /// InstanceView of CloudService as a whole internal partial interface ICloudServiceInstanceViewInternal { + /// + /// Specifies a list of unique identifiers generated internally for the cloud service.

NOTE: If you are using + /// Azure Diagnostics extension, this property can be used as 'DeploymentId' for querying details. + ///
+ string[] PrivateId { get; set; } /// Instance view statuses. - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummary RoleInstance { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceViewStatusesSummary RoleInstance { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount[] RoleInstanceStatusesSummary { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCount[] RoleInstanceStatusesSummary { get; set; } /// /// The version of the SDK that was used to generate the package for the cloud service. /// string SdkVersion { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] Statuses { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus[] Statuses { get; set; } } } \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceInstanceView.json.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceInstanceView.json.cs similarity index 77% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceInstanceView.json.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceInstanceView.json.cs index 0d9c3dbd30a1..f9f23ddc8c85 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceInstanceView.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceInstanceView.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -58,20 +58,21 @@ internal CloudServiceInstanceView(Microsoft.Azure.PowerShell.Cmdlets.CloudServic { return; } - {_roleInstance = If( json?.PropertyT("roleInstance"), out var __jsonRoleInstance) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InstanceViewStatusesSummary.FromJson(__jsonRoleInstance) : RoleInstance;} + {_roleInstance = If( json?.PropertyT("roleInstance"), out var __jsonRoleInstance) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.InstanceViewStatusesSummary.FromJson(__jsonRoleInstance) : RoleInstance;} {_sdkVersion = If( json?.PropertyT("sdkVersion"), out var __jsonSdkVersion) ? (string)__jsonSdkVersion : (string)SdkVersion;} - {_statuses = If( json?.PropertyT("statuses"), out var __jsonStatuses) ? If( __jsonStatuses as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ResourceInstanceViewStatus.FromJson(__u) )) ))() : null : Statuses;} + {_privateId = If( json?.PropertyT("privateIds"), out var __jsonPrivateIds) ? If( __jsonPrivateIds as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : PrivateId;} + {_statuses = If( json?.PropertyT("statuses"), out var __jsonStatuses) ? If( __jsonStatuses as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20210301.IResourceInstanceViewStatus) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ResourceInstanceViewStatus.FromJson(__p) )) ))() : null : Statuses;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceView. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceView. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceView. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceView. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceView FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceView FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceInstanceView(json) : null; } @@ -102,14 +103,26 @@ public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJ } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) { - if (null != this._statuses) + if (null != this._privateId) { var __w = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.XNodeArray(); - foreach( var __x in this._statuses ) + foreach( var __x in this._privateId ) + { + AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); + } + container.Add("privateIds",__w); + } + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._statuses) + { + var __r = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.XNodeArray(); + foreach( var __s in this._statuses ) { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + AddIf(__s?.ToJson(null, serializationMode) ,__r.Add); } - container.Add("statuses",__w); + container.Add("statuses",__r); } } AfterToJson(ref container); diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceListResult.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceListResult.PowerShell.cs similarity index 71% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceListResult.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceListResult.PowerShell.cs index 5e36e6397fd5..8fd45e2c8f3f 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceListResult.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceListResult.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -47,7 +47,7 @@ public partial class CloudServiceListResult 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,13 +60,13 @@ internal CloudServiceListResult(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceListResultInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -79,35 +79,35 @@ internal CloudServiceListResult(global::System.Management.Automation.PSObject co return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceListResultInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CloudServiceListResult(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.CloudService.Models.Api20201001Preview.ICloudServiceListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CloudServiceListResult(content); } @@ -117,7 +117,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceListResult.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceListResult.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceListResult.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceListResult.TypeConverter.cs index 86236fd55240..72ba6853bed4 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceListResult.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceListResult.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.ICloudServiceListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceListResult.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceListResult.cs similarity index 82% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceListResult.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceListResult.cs index fe2793d1ac0c..fd8e4af4e245 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceListResult.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceListResult.cs @@ -1,10 +1,10 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; public partial class CloudServiceListResult : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceListResult, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceListResult, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceListResultInternal { /// Backing field for property. @@ -14,10 +14,10 @@ public partial class CloudServiceListResult : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService[] _value; [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public CloudServiceListResult() @@ -41,8 +41,8 @@ public partial interface ICloudServiceListResult : ReadOnly = false, Description = @"", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService) })] - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService[] Value { get; set; } } internal partial interface ICloudServiceListResultInternal @@ -50,7 +50,7 @@ internal partial interface ICloudServiceListResultInternal { string NextLink { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService[] Value { get; set; } } } \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceListResult.json.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceListResult.json.cs similarity index 92% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceListResult.json.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceListResult.json.cs index d3c517553469..fcecfca0ecd3 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceListResult.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceListResult.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -57,19 +57,19 @@ internal CloudServiceListResult(Microsoft.Azure.PowerShell.Cmdlets.CloudService. { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.ICloudService) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20210301.ICloudService) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudService.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceListResult(json) : null; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceNetworkProfile.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceNetworkProfile.PowerShell.cs similarity index 67% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceNetworkProfile.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceNetworkProfile.PowerShell.cs index dd92da352a9f..ccdecc00c8d4 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceNetworkProfile.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceNetworkProfile.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class CloudServiceNetworkProfile 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 CloudServiceNetworkProfile(global::System.Collections.IDictionary conte return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfileInternal)this).LoadBalancerConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfiguration[]) content.GetValueForProperty("LoadBalancerConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfileInternal)this).LoadBalancerConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfigurationTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfileInternal)this).SwappableCloudService = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("SwappableCloudService",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfileInternal)this).SwappableCloudService, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfileInternal)this).LoadBalancerConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfiguration[]) content.GetValueForProperty("LoadBalancerConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfileInternal)this).LoadBalancerConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerConfigurationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfileInternal)this).SwappableCloudService = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource) content.GetValueForProperty("SwappableCloudService",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfileInternal)this).SwappableCloudService, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResourceTypeConverter.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 CloudServiceNetworkProfile(global::System.Management.Automation.PSObjec return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfileInternal)this).LoadBalancerConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfiguration[]) content.GetValueForProperty("LoadBalancerConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfileInternal)this).LoadBalancerConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfigurationTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfileInternal)this).SwappableCloudService = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("SwappableCloudService",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfileInternal)this).SwappableCloudService, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfileInternal)this).LoadBalancerConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfiguration[]) content.GetValueForProperty("LoadBalancerConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfileInternal)this).LoadBalancerConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerConfigurationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfileInternal)this).SwappableCloudService = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource) content.GetValueForProperty("SwappableCloudService",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfileInternal)this).SwappableCloudService, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResourceTypeConverter.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.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfile DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CloudServiceNetworkProfile(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.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfile DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CloudServiceNetworkProfile(content); } @@ -118,7 +118,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfile FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceNetworkProfile.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceNetworkProfile.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceNetworkProfile.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceNetworkProfile.TypeConverter.cs index db4cc96c04a2..0f50afbca5f5 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceNetworkProfile.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceNetworkProfile.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfile ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfile).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20210301/CloudServiceNetworkProfile.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceNetworkProfile.cs new file mode 100644 index 000000000000..df3b99ed69a1 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceNetworkProfile.cs @@ -0,0 +1,84 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Network Profile for the cloud service. + public partial class CloudServiceNetworkProfile : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfile, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfileInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfiguration[] _loadBalancerConfiguration; + + /// + /// List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to + /// a Public Load Balancer and an Internal Load Balancer. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfiguration[] LoadBalancerConfiguration { get => this._loadBalancerConfiguration; set => this._loadBalancerConfiguration = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource _swappableCloudService; + + /// + /// The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap. + /// This property cannot be updated once it is set. The swappable cloud service referred by this id must be present otherwise + /// an error will be thrown. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource SwappableCloudService { get => (this._swappableCloudService = this._swappableCloudService ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResource()); set => this._swappableCloudService = value; } + + /// Creates an new instance. + public CloudServiceNetworkProfile() + { + + } + } + /// Network Profile for the cloud service. + public partial interface ICloudServiceNetworkProfile : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// + /// List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to + /// a Public Load Balancer and an Internal Load Balancer. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to a Public Load Balancer and an Internal Load Balancer.", + SerializedName = @"loadBalancerConfigurations", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfiguration) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfiguration[] LoadBalancerConfiguration { get; set; } + /// + /// The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap. + /// This property cannot be updated once it is set. The swappable cloud service referred by this id must be present otherwise + /// an error will be thrown. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap. This property cannot be updated once it is set. The swappable cloud service referred by this id must be present otherwise an error will be thrown.", + SerializedName = @"swappableCloudService", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource SwappableCloudService { get; set; } + + } + /// Network Profile for the cloud service. + internal partial interface ICloudServiceNetworkProfileInternal + + { + /// + /// List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to + /// a Public Load Balancer and an Internal Load Balancer. + /// + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfiguration[] LoadBalancerConfiguration { get; set; } + /// + /// The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap. + /// This property cannot be updated once it is set. The swappable cloud service referred by this id must be present otherwise + /// an error will be thrown. + /// + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource SwappableCloudService { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceNetworkProfile.json.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceNetworkProfile.json.cs similarity index 90% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceNetworkProfile.json.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceNetworkProfile.json.cs index dd3fd56a42df..9149a5b76bb6 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceNetworkProfile.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceNetworkProfile.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -58,19 +58,19 @@ internal CloudServiceNetworkProfile(Microsoft.Azure.PowerShell.Cmdlets.CloudServ { return; } - {_loadBalancerConfiguration = If( json?.PropertyT("loadBalancerConfigurations"), out var __jsonLoadBalancerConfigurations) ? If( __jsonLoadBalancerConfigurations as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.ILoadBalancerConfiguration) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfiguration.FromJson(__u) )) ))() : null : LoadBalancerConfiguration;} - {_swappableCloudService = If( json?.PropertyT("swappableCloudService"), out var __jsonSwappableCloudService) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResource.FromJson(__jsonSwappableCloudService) : SwappableCloudService;} + {_loadBalancerConfiguration = If( json?.PropertyT("loadBalancerConfigurations"), out var __jsonLoadBalancerConfigurations) ? If( __jsonLoadBalancerConfigurations as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20210301.ILoadBalancerConfiguration) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerConfiguration.FromJson(__u) )) ))() : null : LoadBalancerConfiguration;} + {_swappableCloudService = If( json?.PropertyT("swappableCloudService"), out var __jsonSwappableCloudService) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResource.FromJson(__jsonSwappableCloudService) : SwappableCloudService;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfile. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfile. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfile FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceNetworkProfile(json) : null; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceOSProfile.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceOSProfile.PowerShell.cs similarity index 75% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceOSProfile.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceOSProfile.PowerShell.cs index 2e0173bc7acb..1225bb61be26 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceOSProfile.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceOSProfile.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class CloudServiceOSProfile 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,12 +61,12 @@ internal CloudServiceOSProfile(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfileInternal)this).Secret = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroup[]) content.GetValueForProperty("Secret",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfileInternal)this).Secret, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultSecretGroupTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceOSProfileInternal)this).Secret = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultSecretGroup[]) content.GetValueForProperty("Secret",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceOSProfileInternal)this).Secret, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceVaultSecretGroupTypeConverter.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. @@ -79,34 +79,32 @@ internal CloudServiceOSProfile(global::System.Management.Automation.PSObject con return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfileInternal)this).Secret = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroup[]) content.GetValueForProperty("Secret",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfileInternal)this).Secret, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultSecretGroupTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceOSProfileInternal)this).Secret = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultSecretGroup[]) content.GetValueForProperty("Secret",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceOSProfileInternal)this).Secret, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceVaultSecretGroupTypeConverter.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 . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceOSProfile DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CloudServiceOSProfile(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.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceOSProfile DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CloudServiceOSProfile(content); } @@ -116,7 +114,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceOSProfile FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceOSProfile.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceOSProfile.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceOSProfile.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceOSProfile.TypeConverter.cs index ddaddf25bfed..fb1612c6dd79 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceOSProfile.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceOSProfile.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceOSProfile ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceOSProfile).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceOSProfile.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceOSProfile.cs similarity index 79% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceOSProfile.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceOSProfile.cs index c6497982c5a8..0ae20134cffb 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceOSProfile.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceOSProfile.cs @@ -1,19 +1,19 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; /// Describes the OS profile for the cloud service. public partial class CloudServiceOSProfile : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfileInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceOSProfile, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceOSProfileInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroup[] _secret; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultSecretGroup[] _secret; /// Specifies set of certificates that should be installed onto the role instances. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroup[] Secret { get => this._secret; set => this._secret = value; } + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultSecretGroup[] Secret { get => this._secret; set => this._secret = value; } /// Creates an new instance. public CloudServiceOSProfile() @@ -31,8 +31,8 @@ public partial interface ICloudServiceOSProfile : ReadOnly = false, Description = @"Specifies set of certificates that should be installed onto the role instances.", SerializedName = @"secrets", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroup) })] - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroup[] Secret { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultSecretGroup) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultSecretGroup[] Secret { get; set; } } /// Describes the OS profile for the cloud service. @@ -40,7 +40,7 @@ internal partial interface ICloudServiceOSProfileInternal { /// Specifies set of certificates that should be installed onto the role instances. - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroup[] Secret { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultSecretGroup[] Secret { get; set; } } } \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceOSProfile.json.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceOSProfile.json.cs similarity index 90% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceOSProfile.json.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceOSProfile.json.cs index 7b7dbd2aa246..cdc6692d94a9 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceOSProfile.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceOSProfile.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -58,18 +58,18 @@ internal CloudServiceOSProfile(Microsoft.Azure.PowerShell.Cmdlets.CloudService.R { return; } - {_secret = If( json?.PropertyT("secrets"), out var __jsonSecrets) ? If( __jsonSecrets as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroup) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultSecretGroup.FromJson(__u) )) ))() : null : Secret;} + {_secret = If( json?.PropertyT("secrets"), out var __jsonSecrets) ? If( __jsonSecrets as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20210301.ICloudServiceVaultSecretGroup) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceVaultSecretGroup.FromJson(__u) )) ))() : null : Secret;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceOSProfile. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceOSProfile. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceOSProfile FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceOSProfile(json) : null; } diff --git a/src/CloudService/generated/api/Models/Api20210301/CloudServiceProperties.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceProperties.PowerShell.cs new file mode 100644 index 000000000000..dbfe4470023c --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceProperties.PowerShell.cs @@ -0,0 +1,155 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// Cloud service properties + [System.ComponentModel.TypeConverter(typeof(CloudServicePropertiesTypeConverter))] + public partial class CloudServiceProperties + { + + /// + /// 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 CloudServiceProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).PackageUrl = (string) content.GetValueForProperty("PackageUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).PackageUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).Configuration = (string) content.GetValueForProperty("Configuration",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).Configuration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).ConfigurationUrl = (string) content.GetValueForProperty("ConfigurationUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).ConfigurationUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).StartCloudService = (bool?) content.GetValueForProperty("StartCloudService",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).StartCloudService, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).AllowModelOverride = (bool?) content.GetValueForProperty("AllowModelOverride",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).AllowModelOverride, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).UpgradeMode = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode?) content.GetValueForProperty("UpgradeMode",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).UpgradeMode, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).RoleProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfile) content.GetValueForProperty("RoleProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).RoleProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).OSProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceOSProfile) content.GetValueForProperty("OSProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).OSProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceOSProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).NetworkProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfile) content.GetValueForProperty("NetworkProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).NetworkProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceNetworkProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).ExtensionProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProfile) content.GetValueForProperty("ExtensionProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).ExtensionProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceExtensionProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).UniqueId = (string) content.GetValueForProperty("UniqueId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).UniqueId, 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 CloudServiceProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).PackageUrl = (string) content.GetValueForProperty("PackageUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).PackageUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).Configuration = (string) content.GetValueForProperty("Configuration",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).Configuration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).ConfigurationUrl = (string) content.GetValueForProperty("ConfigurationUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).ConfigurationUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).StartCloudService = (bool?) content.GetValueForProperty("StartCloudService",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).StartCloudService, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).AllowModelOverride = (bool?) content.GetValueForProperty("AllowModelOverride",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).AllowModelOverride, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).UpgradeMode = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode?) content.GetValueForProperty("UpgradeMode",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).UpgradeMode, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).RoleProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfile) content.GetValueForProperty("RoleProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).RoleProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).OSProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceOSProfile) content.GetValueForProperty("OSProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).OSProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceOSProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).NetworkProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfile) content.GetValueForProperty("NetworkProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).NetworkProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceNetworkProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).ExtensionProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProfile) content.GetValueForProperty("ExtensionProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).ExtensionProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceExtensionProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).UniqueId = (string) content.GetValueForProperty("UniqueId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal)this).UniqueId, 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.CloudService.Models.Api20210301.ICloudServiceProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CloudServiceProperties(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.CloudService.Models.Api20210301.ICloudServiceProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CloudServiceProperties(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.CloudService.Models.Api20210301.ICloudServiceProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Cloud service properties + [System.ComponentModel.TypeConverter(typeof(CloudServicePropertiesTypeConverter))] + public partial interface ICloudServiceProperties + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceProperties.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceProperties.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceProperties.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceProperties.TypeConverter.cs index 9096e1ebe23e..86e4a2c68d5b 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceProperties.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceProperties.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.ICloudServiceProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceProperties.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceProperties.cs similarity index 80% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceProperties.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceProperties.cs index b6725739fe68..a5919f32763b 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceProperties.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceProperties.cs @@ -1,13 +1,24 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; /// Cloud service properties public partial class CloudServiceProperties : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceProperties, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceProperties, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal { + /// Backing field for property. + private bool? _allowModelOverride; + + /// + /// (Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override + /// the role instance count and vm size specified in the .cscfg and .csdef respectively. + /// The default value is `false`. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public bool? AllowModelOverride { get => this._allowModelOverride; set => this._allowModelOverride = value; } + /// Backing field for property. private string _configuration; @@ -27,31 +38,31 @@ public partial class CloudServiceProperties : public string ConfigurationUrl { get => this._configurationUrl; set => this._configurationUrl = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile _extensionProfile; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProfile _extensionProfile; /// Describes a cloud service extension profile. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile ExtensionProfile { get => (this._extensionProfile = this._extensionProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceExtensionProfile()); set => this._extensionProfile = value; } + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProfile ExtensionProfile { get => (this._extensionProfile = this._extensionProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceExtensionProfile()); set => this._extensionProfile = value; } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for UniqueId - string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal.UniqueId { get => this._uniqueId; set { {_uniqueId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServicePropertiesInternal.UniqueId { get => this._uniqueId; set { {_uniqueId = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile _networkProfile; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfile _networkProfile; /// Network Profile for the cloud service. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile NetworkProfile { get => (this._networkProfile = this._networkProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceNetworkProfile()); set => this._networkProfile = value; } + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfile NetworkProfile { get => (this._networkProfile = this._networkProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceNetworkProfile()); set => this._networkProfile = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile _oSProfile; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceOSProfile _oSProfile; /// Describes the OS profile for the cloud service. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile OSProfile { get => (this._oSProfile = this._oSProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceOSProfile()); set => this._oSProfile = value; } + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceOSProfile OSProfile { get => (this._oSProfile = this._oSProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceOSProfile()); set => this._oSProfile = value; } /// Backing field for property. private string _packageUrl; @@ -72,11 +83,11 @@ public partial class CloudServiceProperties : public string ProvisioningState { get => this._provisioningState; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile _roleProfile; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfile _roleProfile; /// Describes the role profile for the cloud service. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile RoleProfile { get => (this._roleProfile = this._roleProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfile()); set => this._roleProfile = value; } + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfile RoleProfile { get => (this._roleProfile = this._roleProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleProfile()); set => this._roleProfile = value; } /// Backing field for property. private bool? _startCloudService; @@ -120,6 +131,19 @@ public CloudServiceProperties() public partial interface ICloudServiceProperties : Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable { + /// + /// (Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override + /// the role instance count and vm size specified in the .cscfg and .csdef respectively. + /// The default value is `false`. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"(Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override the role instance count and vm size specified in the .cscfg and .csdef respectively. + The default value is `false`.", + SerializedName = @"allowModelOverride", + PossibleTypes = new [] { typeof(bool) })] + bool? AllowModelOverride { get; set; } /// Specifies the XML service configuration (.cscfg) for the cloud service. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( Required = false, @@ -147,24 +171,24 @@ public partial interface ICloudServiceProperties : ReadOnly = false, Description = @"Describes a cloud service extension profile.", SerializedName = @"extensionProfile", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile) })] - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile ExtensionProfile { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProfile) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProfile ExtensionProfile { get; set; } /// Network Profile for the cloud service. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( Required = false, ReadOnly = false, Description = @"Network Profile for the cloud service.", SerializedName = @"networkProfile", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile) })] - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile NetworkProfile { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfile) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfile NetworkProfile { get; set; } /// Describes the OS profile for the cloud service. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( Required = false, ReadOnly = false, Description = @"Describes the OS profile for the cloud service.", SerializedName = @"osProfile", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile) })] - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile OSProfile { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceOSProfile) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceOSProfile OSProfile { get; set; } /// /// Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be /// Shared Access Signature (SAS) URI from any storage account. @@ -192,8 +216,8 @@ public partial interface ICloudServiceProperties : ReadOnly = false, Description = @"Describes the role profile for the cloud service.", SerializedName = @"roleProfile", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile) })] - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile RoleProfile { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfile) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfile RoleProfile { get; set; } /// /// (Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`. /// If false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff @@ -238,6 +262,12 @@ Possible Values are

**Auto**

**Manual**

**Sim internal partial interface ICloudServicePropertiesInternal { + /// + /// (Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override + /// the role instance count and vm size specified in the .cscfg and .csdef respectively. + /// The default value is `false`. + /// + bool? AllowModelOverride { get; set; } /// Specifies the XML service configuration (.cscfg) for the cloud service. string Configuration { get; set; } /// @@ -247,11 +277,11 @@ internal partial interface ICloudServicePropertiesInternal /// string ConfigurationUrl { get; set; } /// Describes a cloud service extension profile. - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile ExtensionProfile { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProfile ExtensionProfile { get; set; } /// Network Profile for the cloud service. - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile NetworkProfile { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfile NetworkProfile { get; set; } /// Describes the OS profile for the cloud service. - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile OSProfile { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceOSProfile OSProfile { get; set; } /// /// Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be /// Shared Access Signature (SAS) URI from any storage account. @@ -261,7 +291,7 @@ internal partial interface ICloudServicePropertiesInternal /// The provisioning state, which only appears in the response. string ProvisioningState { get; set; } /// Describes the role profile for the cloud service. - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile RoleProfile { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfile RoleProfile { get; set; } /// /// (Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`. /// If false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceProperties.json.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceProperties.json.cs similarity index 90% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceProperties.json.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceProperties.json.cs index 8599305bb3c1..81e4016fd256 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceProperties.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceProperties.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -62,24 +62,25 @@ internal CloudServiceProperties(Microsoft.Azure.PowerShell.Cmdlets.CloudService. {_configuration = If( json?.PropertyT("configuration"), out var __jsonConfiguration) ? (string)__jsonConfiguration : (string)Configuration;} {_configurationUrl = If( json?.PropertyT("configurationUrl"), out var __jsonConfigurationUrl) ? (string)__jsonConfigurationUrl : (string)ConfigurationUrl;} {_startCloudService = If( json?.PropertyT("startCloudService"), out var __jsonStartCloudService) ? (bool?)__jsonStartCloudService : StartCloudService;} + {_allowModelOverride = If( json?.PropertyT("allowModelOverride"), out var __jsonAllowModelOverride) ? (bool?)__jsonAllowModelOverride : AllowModelOverride;} {_upgradeMode = If( json?.PropertyT("upgradeMode"), out var __jsonUpgradeMode) ? (string)__jsonUpgradeMode : (string)UpgradeMode;} - {_roleProfile = If( json?.PropertyT("roleProfile"), out var __jsonRoleProfile) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfile.FromJson(__jsonRoleProfile) : RoleProfile;} - {_oSProfile = If( json?.PropertyT("osProfile"), out var __jsonOSProfile) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceOSProfile.FromJson(__jsonOSProfile) : OSProfile;} - {_networkProfile = If( json?.PropertyT("networkProfile"), out var __jsonNetworkProfile) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceNetworkProfile.FromJson(__jsonNetworkProfile) : NetworkProfile;} - {_extensionProfile = If( json?.PropertyT("extensionProfile"), out var __jsonExtensionProfile) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceExtensionProfile.FromJson(__jsonExtensionProfile) : ExtensionProfile;} + {_roleProfile = If( json?.PropertyT("roleProfile"), out var __jsonRoleProfile) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleProfile.FromJson(__jsonRoleProfile) : RoleProfile;} + {_oSProfile = If( json?.PropertyT("osProfile"), out var __jsonOSProfile) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceOSProfile.FromJson(__jsonOSProfile) : OSProfile;} + {_networkProfile = If( json?.PropertyT("networkProfile"), out var __jsonNetworkProfile) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceNetworkProfile.FromJson(__jsonNetworkProfile) : NetworkProfile;} + {_extensionProfile = If( json?.PropertyT("extensionProfile"), out var __jsonExtensionProfile) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceExtensionProfile.FromJson(__jsonExtensionProfile) : ExtensionProfile;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} {_uniqueId = If( json?.PropertyT("uniqueId"), out var __jsonUniqueId) ? (string)__jsonUniqueId : (string)UniqueId;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceProperties(json) : null; } @@ -107,6 +108,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJ AddIf( null != (((object)this._configuration)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._configuration.ToString()) : null, "configuration" ,container.Add ); AddIf( null != (((object)this._configurationUrl)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._configurationUrl.ToString()) : null, "configurationUrl" ,container.Add ); AddIf( null != this._startCloudService ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonBoolean((bool)this._startCloudService) : null, "startCloudService" ,container.Add ); + AddIf( null != this._allowModelOverride ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonBoolean((bool)this._allowModelOverride) : null, "allowModelOverride" ,container.Add ); AddIf( null != (((object)this._upgradeMode)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._upgradeMode.ToString()) : null, "upgradeMode" ,container.Add ); AddIf( null != this._roleProfile ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) this._roleProfile.ToJson(null,serializationMode) : null, "roleProfile" ,container.Add ); AddIf( null != this._oSProfile ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) this._oSProfile.ToJson(null,serializationMode) : null, "osProfile" ,container.Add ); diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRole.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRole.PowerShell.cs similarity index 52% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRole.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceRole.PowerShell.cs index b448f49e1728..2a20afdd3b08 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRole.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRole.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class CloudServiceRole 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,21 +61,21 @@ internal CloudServiceRole(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleSkuTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRolePropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Location, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).SkuName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).SkuTier, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).SkuCapacity = (long?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).SkuCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).UniqueId = (string) content.GetValueForProperty("UniqueId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).UniqueId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleSkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRolePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).SkuName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).SkuTier, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).SkuCapacity = (long?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).SkuCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).UniqueId = (string) content.GetValueForProperty("UniqueId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).UniqueId, 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. @@ -88,43 +88,41 @@ internal CloudServiceRole(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleSkuTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRolePropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Location, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).SkuName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).SkuTier, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).SkuCapacity = (long?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).SkuCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).UniqueId = (string) content.GetValueForProperty("UniqueId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).UniqueId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleSkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRolePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).SkuName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).SkuTier, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).SkuCapacity = (long?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).SkuCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).UniqueId = (string) content.GetValueForProperty("UniqueId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal)this).UniqueId, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRole DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRole DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CloudServiceRole(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.CloudService.Models.Api20201001Preview.ICloudServiceRole DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRole DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CloudServiceRole(content); } @@ -134,7 +132,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRole FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRole FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRole.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRole.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRole.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceRole.TypeConverter.cs index 7b53bc96f28b..1b2590285799 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRole.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRole.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.ICloudServiceRole ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRole ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRole).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRole).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRole.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRole.cs similarity index 76% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRole.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceRole.cs index 62f0d65b44e0..6e8fca072938 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRole.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRole.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; /// Describes a role of the cloud service. public partial class CloudServiceRole : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRole, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRole, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal { /// Backing field for property. @@ -23,25 +23,25 @@ public partial class CloudServiceRole : public string Location { get => this._location; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for Location - string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal.Location { get => this._location; set { {_location = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal.Location { get => this._location; set { {_location = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProperties Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProperties Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleProperties()); set { {_property = value;} } } /// Internal Acessors for Sku - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleSku()); set { {_sku = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSku Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleSku()); set { {_sku = value;} } } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal.Type { get => this._type; set { {_type = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal.Type { get => this._type; set { {_type = value;} } } /// Internal Acessors for UniqueId - string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal.UniqueId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRolePropertiesInternal)Property).UniqueId; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRolePropertiesInternal)Property).UniqueId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleInternal.UniqueId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRolePropertiesInternal)Property).UniqueId; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRolePropertiesInternal)Property).UniqueId = value; } /// Backing field for property. private string _name; @@ -51,34 +51,34 @@ public partial class CloudServiceRole : public string Name { get => this._name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProperties _property; [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleProperties()); set => this._property = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku _sku; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSku _sku; /// Describes the cloud service role sku. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleSku()); set => this._sku = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSku Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleSku()); set => this._sku = value; } /// Specifies the number of role instances in the cloud service. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] - public long? SkuCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)Sku).Capacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)Sku).Capacity = value ?? default(long); } + public long? SkuCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSkuInternal)Sku).Capacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSkuInternal)Sku).Capacity = value ?? default(long); } /// /// The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete /// and recreate the cloud service or move back to the old sku. /// [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] - public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)Sku).Name = value ?? null; } + public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSkuInternal)Sku).Name = value ?? null; } /// /// Specifies the tier of the cloud service. Possible Values are

**Standard**

**Basic** ///
[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] - public string SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)Sku).Tier; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)Sku).Tier = value ?? null; } + public string SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSkuInternal)Sku).Tier; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSkuInternal)Sku).Tier = value ?? null; } /// Backing field for property. private string _type; @@ -89,7 +89,7 @@ public partial class CloudServiceRole : /// Specifies the ID which uniquely identifies a cloud service role. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] - public string UniqueId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRolePropertiesInternal)Property).UniqueId; } + public string UniqueId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRolePropertiesInternal)Property).UniqueId; } /// Creates an new instance. public CloudServiceRole() @@ -183,9 +183,9 @@ internal partial interface ICloudServiceRoleInternal /// Resource name string Name { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProperties Property { get; set; } /// Describes the cloud service role sku. - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku Sku { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSku Sku { get; set; } /// Specifies the number of role instances in the cloud service. long? SkuCapacity { get; set; } /// diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRole.json.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRole.json.cs similarity index 95% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRole.json.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceRole.json.cs index d45867b25d70..bb8aa38c1266 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRole.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRole.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -58,8 +58,8 @@ internal CloudServiceRole(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtim { return; } - {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleSku.FromJson(__jsonSku) : Sku;} - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProperties.FromJson(__jsonProperties) : Property;} + {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleSku.FromJson(__jsonSku) : Sku;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleProperties.FromJson(__jsonProperties) : Property;} {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} @@ -68,13 +68,13 @@ internal CloudServiceRole(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtim } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRole. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRole. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRole. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRole. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRole FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRole FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceRole(json) : null; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleListResult.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleListResult.PowerShell.cs similarity index 71% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleListResult.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleListResult.PowerShell.cs index 98cab0eb4a23..12ba562b31d3 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleListResult.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleListResult.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -47,7 +47,7 @@ public partial class CloudServiceRoleListResult 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,13 +60,13 @@ internal CloudServiceRoleListResult(global::System.Collections.IDictionary conte return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRole[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRole[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleListResultInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -79,35 +79,35 @@ internal CloudServiceRoleListResult(global::System.Management.Automation.PSObjec return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRole[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRole[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleListResultInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CloudServiceRoleListResult(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.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CloudServiceRoleListResult(content); } @@ -117,7 +117,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleListResult.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleListResult.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleListResult.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleListResult.TypeConverter.cs index e747d60dc0d1..4c096e3023a1 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleListResult.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleListResult.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleListResult.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleListResult.cs similarity index 82% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleListResult.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleListResult.cs index 4d75e8a7c5ee..f814c293c311 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleListResult.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleListResult.cs @@ -1,10 +1,10 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; public partial class CloudServiceRoleListResult : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResult, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleListResult, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleListResultInternal { /// Backing field for property. @@ -14,10 +14,10 @@ public partial class CloudServiceRoleListResult : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRole[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRole[] _value; [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRole[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRole[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public CloudServiceRoleListResult() @@ -41,8 +41,8 @@ public partial interface ICloudServiceRoleListResult : ReadOnly = false, Description = @"", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRole) })] - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRole[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRole) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRole[] Value { get; set; } } internal partial interface ICloudServiceRoleListResultInternal @@ -50,7 +50,7 @@ internal partial interface ICloudServiceRoleListResultInternal { string NextLink { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRole[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRole[] Value { get; set; } } } \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleListResult.json.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleListResult.json.cs similarity index 91% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleListResult.json.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleListResult.json.cs index af6f499afbda..4fbaeed7eba1 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleListResult.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleListResult.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -57,19 +57,19 @@ internal CloudServiceRoleListResult(Microsoft.Azure.PowerShell.Cmdlets.CloudServ { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.ICloudServiceRole) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRole.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20210301.ICloudServiceRole) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRole.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceRoleListResult(json) : null; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfile.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProfile.PowerShell.cs similarity index 75% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfile.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProfile.PowerShell.cs index e19f7d157c22..dc5aed78cf67 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfile.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProfile.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class CloudServiceRoleProfile 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,12 +61,12 @@ internal CloudServiceRoleProfile(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileInternal)this).Role = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileProperties[]) content.GetValueForProperty("Role",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileInternal)this).Role, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfilePropertiesTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfileInternal)this).Role = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfileProperties[]) content.GetValueForProperty("Role",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfileInternal)this).Role, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleProfilePropertiesTypeConverter.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. @@ -79,34 +79,34 @@ internal CloudServiceRoleProfile(global::System.Management.Automation.PSObject c return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileInternal)this).Role = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileProperties[]) content.GetValueForProperty("Role",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileInternal)this).Role, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfilePropertiesTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfileInternal)this).Role = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfileProperties[]) content.GetValueForProperty("Role",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfileInternal)this).Role, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleProfilePropertiesTypeConverter.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.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfile DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CloudServiceRoleProfile(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.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfile DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CloudServiceRoleProfile(content); } @@ -116,7 +116,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 ///
/// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfile FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfile.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProfile.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfile.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProfile.TypeConverter.cs index c75faebf105c..07dadab32cbc 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfile.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProfile.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfile ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfile).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfile.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProfile.cs similarity index 77% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfile.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProfile.cs index 047f65739cf3..f2685a087070 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfile.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProfile.cs @@ -1,19 +1,19 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; /// Describes the role profile for the cloud service. public partial class CloudServiceRoleProfile : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfile, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfileInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileProperties[] _role; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfileProperties[] _role; /// List of roles for the cloud service. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileProperties[] Role { get => this._role; set => this._role = value; } + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfileProperties[] Role { get => this._role; set => this._role = value; } /// Creates an new instance. public CloudServiceRoleProfile() @@ -31,8 +31,8 @@ public partial interface ICloudServiceRoleProfile : ReadOnly = false, Description = @"List of roles for the cloud service.", SerializedName = @"roles", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileProperties) })] - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileProperties[] Role { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfileProperties) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfileProperties[] Role { get; set; } } /// Describes the role profile for the cloud service. @@ -40,7 +40,7 @@ internal partial interface ICloudServiceRoleProfileInternal { /// List of roles for the cloud service. - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileProperties[] Role { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfileProperties[] Role { get; set; } } } \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfile.json.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProfile.json.cs similarity index 90% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfile.json.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProfile.json.cs index c3d4243d025e..b6ccbb116d52 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfile.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProfile.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -58,18 +58,18 @@ internal CloudServiceRoleProfile(Microsoft.Azure.PowerShell.Cmdlets.CloudService { return; } - {_role = If( json?.PropertyT("roles"), out var __jsonRoles) ? If( __jsonRoles as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileProperties) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfileProperties.FromJson(__u) )) ))() : null : Role;} + {_role = If( json?.PropertyT("roles"), out var __jsonRoles) ? If( __jsonRoles as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20210301.ICloudServiceRoleProfileProperties) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleProfileProperties.FromJson(__u) )) ))() : null : Role;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfile. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfile. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfile FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceRoleProfile(json) : null; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfileProperties.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProfileProperties.PowerShell.cs similarity index 63% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfileProperties.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProfileProperties.PowerShell.cs index 99b94169b52b..e1d356fb29e4 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfileProperties.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProfileProperties.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class CloudServiceRoleProfileProperties 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,16 +61,16 @@ internal CloudServiceRoleProfileProperties(global::System.Collections.IDictionar return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleSkuTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).SkuName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).SkuTier, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).SkuCapacity = (long?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).SkuCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfilePropertiesInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfilePropertiesInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleSkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfilePropertiesInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfilePropertiesInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfilePropertiesInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfilePropertiesInternal)this).SkuName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfilePropertiesInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfilePropertiesInternal)this).SkuTier, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfilePropertiesInternal)this).SkuCapacity = (long?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfilePropertiesInternal)this).SkuCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); 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. @@ -83,38 +83,38 @@ internal CloudServiceRoleProfileProperties(global::System.Management.Automation. return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleSkuTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).SkuName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).SkuTier, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).SkuCapacity = (long?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).SkuCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfilePropertiesInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfilePropertiesInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleSkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfilePropertiesInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfilePropertiesInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfilePropertiesInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfilePropertiesInternal)this).SkuName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfilePropertiesInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfilePropertiesInternal)this).SkuTier, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfilePropertiesInternal)this).SkuCapacity = (long?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfilePropertiesInternal)this).SkuCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); 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.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfileProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CloudServiceRoleProfileProperties(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.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfileProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CloudServiceRoleProfileProperties(content); } @@ -124,7 +124,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 ///
/// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfileProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfileProperties.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProfileProperties.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfileProperties.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProfileProperties.TypeConverter.cs index dffafcc564c9..055a733363b2 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfileProperties.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProfileProperties.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfileProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfileProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfileProperties.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProfileProperties.cs similarity index 80% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfileProperties.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProfileProperties.cs index 23615d5b8d05..69a4270bd4b2 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfileProperties.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProfileProperties.cs @@ -1,15 +1,15 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; /// Describes the role properties. public partial class CloudServiceRoleProfileProperties : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileProperties, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfileProperties, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfilePropertiesInternal { /// Internal Acessors for Sku - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleSku()); set { {_sku = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSku Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfilePropertiesInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleSku()); set { {_sku = value;} } } /// Backing field for property. private string _name; @@ -20,17 +20,17 @@ public partial class CloudServiceRoleProfileProperties : public string Name { get => this._name; set => this._name = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku _sku; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSku _sku; /// Describes the cloud service role sku. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] - internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleSku()); set => this._sku = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSku Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleSku()); set => this._sku = value; } /// Specifies the number of role instances in the cloud service. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 3)] - public long? SkuCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)Sku).Capacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)Sku).Capacity = value ?? default(long); } + public long? SkuCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSkuInternal)Sku).Capacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSkuInternal)Sku).Capacity = value ?? default(long); } /// /// The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete @@ -38,14 +38,14 @@ public partial class CloudServiceRoleProfileProperties : /// [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 1)] - public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)Sku).Name = value ?? null; } + public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSkuInternal)Sku).Name = value ?? null; } /// /// Specifies the tier of the cloud service. Possible Values are

**Standard**

**Basic** ///
[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 2)] - public string SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)Sku).Tier; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)Sku).Tier = value ?? null; } + public string SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSkuInternal)Sku).Tier; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSkuInternal)Sku).Tier = value ?? null; } /// Creates an new instance. public CloudServiceRoleProfileProperties() @@ -103,7 +103,7 @@ internal partial interface ICloudServiceRoleProfilePropertiesInternal /// Resource name. string Name { get; set; } /// Describes the cloud service role sku. - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku Sku { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSku Sku { get; set; } /// Specifies the number of role instances in the cloud service. long? SkuCapacity { get; set; } /// diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfileProperties.json.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProfileProperties.json.cs similarity index 94% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfileProperties.json.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProfileProperties.json.cs index ddf0bfc44d4a..8d44e7037e3a 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfileProperties.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProfileProperties.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -58,19 +58,19 @@ internal CloudServiceRoleProfileProperties(Microsoft.Azure.PowerShell.Cmdlets.Cl { return; } - {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleSku.FromJson(__jsonSku) : Sku;} + {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleSku.FromJson(__jsonSku) : Sku;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfileProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfileProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfileProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceRoleProfileProperties(json) : null; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProperties.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProperties.PowerShell.cs similarity index 81% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProperties.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProperties.PowerShell.cs index 6b7a8f3add23..9b57dedeb1c0 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProperties.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProperties.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -47,7 +47,7 @@ public partial class CloudServiceRoleProperties 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 +60,12 @@ internal CloudServiceRoleProperties(global::System.Collections.IDictionary conte return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRolePropertiesInternal)this).UniqueId = (string) content.GetValueForProperty("UniqueId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRolePropertiesInternal)this).UniqueId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRolePropertiesInternal)this).UniqueId = (string) content.GetValueForProperty("UniqueId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRolePropertiesInternal)this).UniqueId, 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,34 @@ internal CloudServiceRoleProperties(global::System.Management.Automation.PSObjec return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRolePropertiesInternal)this).UniqueId = (string) content.GetValueForProperty("UniqueId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRolePropertiesInternal)this).UniqueId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRolePropertiesInternal)this).UniqueId = (string) content.GetValueForProperty("UniqueId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRolePropertiesInternal)this).UniqueId, 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.CloudService.Models.Api20201001Preview.ICloudServiceRoleProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CloudServiceRoleProperties(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.CloudService.Models.Api20201001Preview.ICloudServiceRoleProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CloudServiceRoleProperties(content); } @@ -115,7 +115,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProperties.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProperties.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProperties.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProperties.TypeConverter.cs index d252b62a25ec..431977d538c3 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProperties.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProperties.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.ICloudServiceRoleProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProperties.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProperties.cs similarity index 88% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProperties.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProperties.cs index b5c0d224266d..70271e8f8c5c 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProperties.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProperties.cs @@ -1,14 +1,14 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; public partial class CloudServiceRoleProperties : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProperties, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRolePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProperties, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRolePropertiesInternal { /// Internal Acessors for UniqueId - string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRolePropertiesInternal.UniqueId { get => this._uniqueId; set { {_uniqueId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRolePropertiesInternal.UniqueId { get => this._uniqueId; set { {_uniqueId = value;} } } /// Backing field for property. private string _uniqueId; diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProperties.json.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProperties.json.cs similarity index 96% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProperties.json.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProperties.json.cs index ca7ee28fcd1b..4d9e794c2461 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProperties.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleProperties.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -62,13 +62,13 @@ internal CloudServiceRoleProperties(Microsoft.Azure.PowerShell.Cmdlets.CloudServ } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceRoleProperties(json) : null; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleSku.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleSku.PowerShell.cs similarity index 72% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleSku.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleSku.PowerShell.cs index 0f051229609c..3aa90ceec1a2 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleSku.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleSku.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class CloudServiceRoleSku 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 CloudServiceRoleSku(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)this).Tier = (string) content.GetValueForProperty("Tier",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)this).Tier, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)this).Capacity = (long?) content.GetValueForProperty("Capacity",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)this).Capacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSkuInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSkuInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSkuInternal)this).Tier = (string) content.GetValueForProperty("Tier",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSkuInternal)this).Tier, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSkuInternal)this).Capacity = (long?) content.GetValueForProperty("Capacity",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSkuInternal)this).Capacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); 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,34 @@ internal CloudServiceRoleSku(global::System.Management.Automation.PSObject conte return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)this).Tier = (string) content.GetValueForProperty("Tier",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)this).Tier, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)this).Capacity = (long?) content.GetValueForProperty("Capacity",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)this).Capacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSkuInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSkuInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSkuInternal)this).Tier = (string) content.GetValueForProperty("Tier",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSkuInternal)this).Tier, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSkuInternal)this).Capacity = (long?) content.GetValueForProperty("Capacity",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSkuInternal)this).Capacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSku DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CloudServiceRoleSku(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.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSku DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CloudServiceRoleSku(content); } @@ -120,7 +118,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 ///
/// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSku FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleSku.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleSku.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleSku.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleSku.TypeConverter.cs index 32f04327c9d7..157b541657e5 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleSku.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleSku.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSku ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSku).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleSku.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleSku.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleSku.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleSku.cs index cc01653c0ef4..1a1482c927c1 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleSku.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleSku.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; /// Describes the cloud service role sku. public partial class CloudServiceRoleSku : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSku, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSkuInternal { /// Backing field for property. diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleSku.json.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleSku.json.cs similarity index 96% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleSku.json.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleSku.json.cs index ae11ba569ce7..69b484813af5 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleSku.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceRoleSku.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -65,13 +65,13 @@ internal CloudServiceRoleSku(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Run } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSku. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSku. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleSku FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceRoleSku(json) : null; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceTags.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceTags.PowerShell.cs similarity index 87% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceTags.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceTags.PowerShell.cs index 603a804ea851..742533ed2aca 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceTags.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceTags.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class CloudServiceTags 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 CloudServiceTags(global::System.Collections.IDictionary content) } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -86,29 +86,27 @@ internal CloudServiceTags(global::System.Management.Automation.PSObject content) } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CloudServiceTags(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.CloudService.Models.Api20201001Preview.ICloudServiceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CloudServiceTags(content); } @@ -118,7 +116,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceTags.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceTags.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceTags.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceTags.TypeConverter.cs index cabdc69fddda..c4d820befe77 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceTags.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceTags.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.ICloudServiceTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceTags.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceTags.cs similarity index 89% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceTags.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceTags.cs index 3f3d63ac7ebf..515ce05bf035 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceTags.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceTags.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; /// Resource tags. public partial class CloudServiceTags : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTags, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceTags, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceTagsInternal { /// Creates an new instance. diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceTags.dictionary.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceTags.dictionary.cs similarity index 96% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceTags.dictionary.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceTags.dictionary.cs index 8305af77eb22..867eccec3797 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceTags.dictionary.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceTags.dictionary.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.CloudServiceTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceTags.json.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceTags.json.cs similarity index 96% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceTags.json.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceTags.json.cs index 35d320c98ba9..45e3b5f5b159 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceTags.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceTags.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -64,13 +64,13 @@ internal CloudServiceTags(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtim } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceTags(json) : null; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdate.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceUpdate.PowerShell.cs similarity index 78% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdate.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceUpdate.PowerShell.cs index 6c5a7e5a1fc6..1260c59f56cd 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdate.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceUpdate.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -47,7 +47,7 @@ public partial class CloudServiceUpdate 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 +60,12 @@ internal CloudServiceUpdate(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceUpdateTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceUpdateTagsTypeConverter.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. @@ -78,34 +78,32 @@ internal CloudServiceUpdate(global::System.Management.Automation.PSObject conten return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceUpdateTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceUpdateTagsTypeConverter.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 . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CloudServiceUpdate(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.CloudService.Models.Api20201001Preview.ICloudServiceUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CloudServiceUpdate(content); } @@ -115,7 +113,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdate.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceUpdate.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdate.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceUpdate.TypeConverter.cs index d3322c0a0611..443a9a14cc05 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdate.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceUpdate.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.ICloudServiceUpdate ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceUpdate ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdate).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceUpdate).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdate.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceUpdate.cs similarity index 73% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdate.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceUpdate.cs index c97e79b0ae77..455afb1cd7d3 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdate.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceUpdate.cs @@ -1,18 +1,18 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; public partial class CloudServiceUpdate : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdate, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceUpdate, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceUpdateInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceUpdateTags _tag; /// Resource tags [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceUpdateTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceUpdateTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceUpdateTags()); set => this._tag = value; } /// Creates an new instance. public CloudServiceUpdate() @@ -29,15 +29,15 @@ public partial interface ICloudServiceUpdate : ReadOnly = false, Description = @"Resource tags", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateTags) })] - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceUpdateTags) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceUpdateTags Tag { get; set; } } internal partial interface ICloudServiceUpdateInternal { /// Resource tags - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceUpdateTags Tag { get; set; } } } \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdate.json.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceUpdate.json.cs similarity index 95% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdate.json.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceUpdate.json.cs index 0f8fa6aa9e14..d54e8ed7fa48 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdate.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceUpdate.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -57,18 +57,18 @@ internal CloudServiceUpdate(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runt { return; } - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceUpdateTags.FromJson(__jsonTags) : Tag;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceUpdateTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdate. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceUpdate. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdate. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceUpdate. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceUpdate(json) : null; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdateTags.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceUpdateTags.PowerShell.cs similarity index 87% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdateTags.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceUpdateTags.PowerShell.cs index c285ff39da7f..d4430d503c24 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdateTags.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceUpdateTags.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class CloudServiceUpdateTags 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 CloudServiceUpdateTags(global::System.Collections.IDictionary content) } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -86,29 +86,29 @@ internal CloudServiceUpdateTags(global::System.Management.Automation.PSObject co } /// - /// 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.CloudService.Models.Api20201001Preview.ICloudServiceUpdateTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceUpdateTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CloudServiceUpdateTags(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.CloudService.Models.Api20201001Preview.ICloudServiceUpdateTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceUpdateTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CloudServiceUpdateTags(content); } @@ -118,7 +118,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceUpdateTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdateTags.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceUpdateTags.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdateTags.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceUpdateTags.TypeConverter.cs index b452b742c445..10d2c5bbf6e1 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdateTags.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceUpdateTags.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.ICloudServiceUpdateTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceUpdateTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceUpdateTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdateTags.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceUpdateTags.cs similarity index 88% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdateTags.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceUpdateTags.cs index 7a5cb0839b03..85c16c5ddba7 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdateTags.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceUpdateTags.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; /// Resource tags public partial class CloudServiceUpdateTags : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateTags, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceUpdateTags, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceUpdateTagsInternal { /// Creates an new instance. diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdateTags.dictionary.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceUpdateTags.dictionary.cs similarity index 96% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdateTags.dictionary.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceUpdateTags.dictionary.cs index 4490517ab8cd..e06355759b2d 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdateTags.dictionary.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceUpdateTags.dictionary.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.CloudServiceUpdateTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceUpdateTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdateTags.json.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceUpdateTags.json.cs similarity index 96% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdateTags.json.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceUpdateTags.json.cs index daa3be919a88..ed8fbe85cccf 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdateTags.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceUpdateTags.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -64,13 +64,13 @@ internal CloudServiceUpdateTags(Microsoft.Azure.PowerShell.Cmdlets.CloudService. } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceUpdateTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceUpdateTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceUpdateTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceUpdateTags(json) : null; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultAndSecretReference.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultAndSecretReference.PowerShell.cs similarity index 68% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultAndSecretReference.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultAndSecretReference.PowerShell.cs index 100088504726..ba9d942b8cc0 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultAndSecretReference.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultAndSecretReference.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -47,7 +47,7 @@ public partial class CloudServiceVaultAndSecretReference 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,14 +60,14 @@ internal CloudServiceVaultAndSecretReference(global::System.Collections.IDiction return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)this).SourceVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("SourceVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)this).SourceVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)this).SecretUrl = (string) content.GetValueForProperty("SecretUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)this).SecretUrl, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)this).SourceVaultId = (string) content.GetValueForProperty("SourceVaultId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)this).SourceVaultId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReferenceInternal)this).SourceVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource) content.GetValueForProperty("SourceVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReferenceInternal)this).SourceVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReferenceInternal)this).SecretUrl = (string) content.GetValueForProperty("SecretUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReferenceInternal)this).SecretUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReferenceInternal)this).SourceVaultId = (string) content.GetValueForProperty("SourceVaultId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReferenceInternal)this).SourceVaultId, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -80,36 +80,36 @@ internal CloudServiceVaultAndSecretReference(global::System.Management.Automatio return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)this).SourceVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("SourceVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)this).SourceVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)this).SecretUrl = (string) content.GetValueForProperty("SecretUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)this).SecretUrl, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)this).SourceVaultId = (string) content.GetValueForProperty("SourceVaultId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)this).SourceVaultId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReferenceInternal)this).SourceVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource) content.GetValueForProperty("SourceVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReferenceInternal)this).SourceVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReferenceInternal)this).SecretUrl = (string) content.GetValueForProperty("SecretUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReferenceInternal)this).SecretUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReferenceInternal)this).SourceVaultId = (string) content.GetValueForProperty("SourceVaultId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReferenceInternal)this).SourceVaultId, 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.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReference DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CloudServiceVaultAndSecretReference(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.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReference DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CloudServiceVaultAndSecretReference(content); } @@ -119,7 +119,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReference FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultAndSecretReference.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultAndSecretReference.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultAndSecretReference.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultAndSecretReference.TypeConverter.cs index 2a8698571440..3c4f36aafb47 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultAndSecretReference.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultAndSecretReference.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -102,14 +102,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReference ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReference).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultAndSecretReference.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultAndSecretReference.cs similarity index 71% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultAndSecretReference.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultAndSecretReference.cs index 57ddc73c732b..f76e6ac91d59 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultAndSecretReference.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultAndSecretReference.cs @@ -1,14 +1,14 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; public partial class CloudServiceVaultAndSecretReference : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReference, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReferenceInternal { /// Internal Acessors for SourceVault - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal.SourceVault { get => (this._sourceVault = this._sourceVault ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResource()); set { {_sourceVault = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReferenceInternal.SourceVault { get => (this._sourceVault = this._sourceVault ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResource()); set { {_sourceVault = value;} } } /// Backing field for property. private string _secretUrl; @@ -17,14 +17,14 @@ public partial class CloudServiceVaultAndSecretReference : public string SecretUrl { get => this._secretUrl; set => this._secretUrl = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource _sourceVault; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource _sourceVault; [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource SourceVault { get => (this._sourceVault = this._sourceVault ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResource()); set => this._sourceVault = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource SourceVault { get => (this._sourceVault = this._sourceVault ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResource()); set => this._sourceVault = value; } /// Resource Id [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] - public string SourceVaultId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResourceInternal)SourceVault).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResourceInternal)SourceVault).Id = value ?? null; } + public string SourceVaultId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResourceInternal)SourceVault).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResourceInternal)SourceVault).Id = value ?? null; } /// Creates an new instance. public CloudServiceVaultAndSecretReference() @@ -57,7 +57,7 @@ internal partial interface ICloudServiceVaultAndSecretReferenceInternal { string SecretUrl { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource SourceVault { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource SourceVault { get; set; } /// Resource Id string SourceVaultId { get; set; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultAndSecretReference.json.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultAndSecretReference.json.cs similarity index 94% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultAndSecretReference.json.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultAndSecretReference.json.cs index 54d6c4b28e68..07839169e45c 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultAndSecretReference.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultAndSecretReference.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -57,19 +57,19 @@ internal CloudServiceVaultAndSecretReference(Microsoft.Azure.PowerShell.Cmdlets. { return; } - {_sourceVault = If( json?.PropertyT("sourceVault"), out var __jsonSourceVault) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResource.FromJson(__jsonSourceVault) : SourceVault;} + {_sourceVault = If( json?.PropertyT("sourceVault"), out var __jsonSourceVault) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResource.FromJson(__jsonSourceVault) : SourceVault;} {_secretUrl = If( json?.PropertyT("secretUrl"), out var __jsonSecretUrl) ? (string)__jsonSecretUrl : (string)SecretUrl;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReference. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReference. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReference FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceVaultAndSecretReference(json) : null; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultCertificate.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultCertificate.PowerShell.cs similarity index 81% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultCertificate.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultCertificate.PowerShell.cs index ab5d76d2d08e..f9dc614fc05a 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultCertificate.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultCertificate.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -50,7 +50,7 @@ public partial class CloudServiceVaultCertificate partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -63,12 +63,12 @@ internal CloudServiceVaultCertificate(global::System.Collections.IDictionary con return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificateInternal)this).CertificateUrl = (string) content.GetValueForProperty("CertificateUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificateInternal)this).CertificateUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultCertificateInternal)this).CertificateUrl = (string) content.GetValueForProperty("CertificateUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultCertificateInternal)this).CertificateUrl, 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,34 +81,34 @@ internal CloudServiceVaultCertificate(global::System.Management.Automation.PSObj return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificateInternal)this).CertificateUrl = (string) content.GetValueForProperty("CertificateUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificateInternal)this).CertificateUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultCertificateInternal)this).CertificateUrl = (string) content.GetValueForProperty("CertificateUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultCertificateInternal)this).CertificateUrl, 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.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificate DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultCertificate DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CloudServiceVaultCertificate(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.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultCertificate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CloudServiceVaultCertificate(content); } @@ -118,7 +118,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultCertificate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultCertificate.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultCertificate.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultCertificate.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultCertificate.TypeConverter.cs index 44096f42431b..78d79f050416 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultCertificate.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultCertificate.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificate ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultCertificate ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificate).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultCertificate).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultCertificate.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultCertificate.cs similarity index 95% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultCertificate.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultCertificate.cs index fb9ba5f9c9fb..36f3f2b72b8d 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultCertificate.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultCertificate.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -6,8 +6,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Prev /// Describes a single certificate reference in a Key Vault, and where the certificate should reside on the role instance. /// public partial class CloudServiceVaultCertificate : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificate, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificateInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultCertificate, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultCertificateInternal { /// Backing field for property. diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultCertificate.json.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultCertificate.json.cs similarity index 95% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultCertificate.json.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultCertificate.json.cs index c8a1399369eb..ea215af86390 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultCertificate.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultCertificate.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -65,13 +65,13 @@ internal CloudServiceVaultCertificate(Microsoft.Azure.PowerShell.Cmdlets.CloudSe } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificate. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultCertificate. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificate. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultCertificate. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificate FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultCertificate FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceVaultCertificate(json) : null; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultSecretGroup.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultSecretGroup.PowerShell.cs similarity index 66% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultSecretGroup.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultSecretGroup.PowerShell.cs index 21fac065b726..160a02565aea 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultSecretGroup.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultSecretGroup.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class CloudServiceVaultSecretGroup 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 CloudServiceVaultSecretGroup(global::System.Collections.IDictionary con return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroupInternal)this).SourceVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("SourceVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroupInternal)this).SourceVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroupInternal)this).VaultCertificate = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificate[]) content.GetValueForProperty("VaultCertificate",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroupInternal)this).VaultCertificate, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultCertificateTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroupInternal)this).SourceVaultId = (string) content.GetValueForProperty("SourceVaultId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroupInternal)this).SourceVaultId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultSecretGroupInternal)this).SourceVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource) content.GetValueForProperty("SourceVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultSecretGroupInternal)this).SourceVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultSecretGroupInternal)this).VaultCertificate = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultCertificate[]) content.GetValueForProperty("VaultCertificate",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultSecretGroupInternal)this).VaultCertificate, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceVaultCertificateTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultSecretGroupInternal)this).SourceVaultId = (string) content.GetValueForProperty("SourceVaultId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultSecretGroupInternal)this).SourceVaultId, 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 CloudServiceVaultSecretGroup(global::System.Management.Automation.PSObj return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroupInternal)this).SourceVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("SourceVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroupInternal)this).SourceVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroupInternal)this).VaultCertificate = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificate[]) content.GetValueForProperty("VaultCertificate",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroupInternal)this).VaultCertificate, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultCertificateTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroupInternal)this).SourceVaultId = (string) content.GetValueForProperty("SourceVaultId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroupInternal)this).SourceVaultId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultSecretGroupInternal)this).SourceVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource) content.GetValueForProperty("SourceVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultSecretGroupInternal)this).SourceVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultSecretGroupInternal)this).VaultCertificate = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultCertificate[]) content.GetValueForProperty("VaultCertificate",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultSecretGroupInternal)this).VaultCertificate, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceVaultCertificateTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultSecretGroupInternal)this).SourceVaultId = (string) content.GetValueForProperty("SourceVaultId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultSecretGroupInternal)this).SourceVaultId, 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.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroup DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultSecretGroup DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CloudServiceVaultSecretGroup(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.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroup DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultSecretGroup DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CloudServiceVaultSecretGroup(content); } @@ -120,7 +120,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroup FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultSecretGroup FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultSecretGroup.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultSecretGroup.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultSecretGroup.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultSecretGroup.TypeConverter.cs index 21e44e7cd536..a5076f133cc6 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultSecretGroup.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultSecretGroup.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroup ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultSecretGroup ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroup).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultSecretGroup).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultSecretGroup.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultSecretGroup.cs similarity index 70% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultSecretGroup.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultSecretGroup.cs index 4f260c95599f..d9b517517e20 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultSecretGroup.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultSecretGroup.cs @@ -1,35 +1,35 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; /// Describes a set of certificates which are all in the same Key Vault. public partial class CloudServiceVaultSecretGroup : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroup, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroupInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultSecretGroup, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultSecretGroupInternal { /// Internal Acessors for SourceVault - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroupInternal.SourceVault { get => (this._sourceVault = this._sourceVault ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResource()); set { {_sourceVault = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultSecretGroupInternal.SourceVault { get => (this._sourceVault = this._sourceVault ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResource()); set { {_sourceVault = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource _sourceVault; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource _sourceVault; /// /// The relative URL of the Key Vault containing all of the certificates in VaultCertificates. /// [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource SourceVault { get => (this._sourceVault = this._sourceVault ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResource()); set => this._sourceVault = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource SourceVault { get => (this._sourceVault = this._sourceVault ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResource()); set => this._sourceVault = value; } /// Resource Id [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] - public string SourceVaultId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResourceInternal)SourceVault).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResourceInternal)SourceVault).Id = value ?? null; } + public string SourceVaultId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResourceInternal)SourceVault).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResourceInternal)SourceVault).Id = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificate[] _vaultCertificate; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultCertificate[] _vaultCertificate; /// The list of key vault references in SourceVault which contain certificates. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificate[] VaultCertificate { get => this._vaultCertificate; set => this._vaultCertificate = value; } + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultCertificate[] VaultCertificate { get => this._vaultCertificate; set => this._vaultCertificate = value; } /// Creates an new instance. public CloudServiceVaultSecretGroup() @@ -55,8 +55,8 @@ public partial interface ICloudServiceVaultSecretGroup : ReadOnly = false, Description = @"The list of key vault references in SourceVault which contain certificates.", SerializedName = @"vaultCertificates", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificate) })] - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificate[] VaultCertificate { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultCertificate) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultCertificate[] VaultCertificate { get; set; } } /// Describes a set of certificates which are all in the same Key Vault. @@ -66,11 +66,11 @@ internal partial interface ICloudServiceVaultSecretGroupInternal /// /// The relative URL of the Key Vault containing all of the certificates in VaultCertificates. /// - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource SourceVault { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource SourceVault { get; set; } /// Resource Id string SourceVaultId { get; set; } /// The list of key vault references in SourceVault which contain certificates. - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificate[] VaultCertificate { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultCertificate[] VaultCertificate { get; set; } } } \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultSecretGroup.json.cs b/src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultSecretGroup.json.cs similarity index 90% rename from src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultSecretGroup.json.cs rename to src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultSecretGroup.json.cs index 364ed52e280d..62aee7aa245d 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultSecretGroup.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/CloudServiceVaultSecretGroup.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -58,19 +58,19 @@ internal CloudServiceVaultSecretGroup(Microsoft.Azure.PowerShell.Cmdlets.CloudSe { return; } - {_sourceVault = If( json?.PropertyT("sourceVault"), out var __jsonSourceVault) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResource.FromJson(__jsonSourceVault) : SourceVault;} - {_vaultCertificate = If( json?.PropertyT("vaultCertificates"), out var __jsonVaultCertificates) ? If( __jsonVaultCertificates as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificate) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultCertificate.FromJson(__u) )) ))() : null : VaultCertificate;} + {_sourceVault = If( json?.PropertyT("sourceVault"), out var __jsonSourceVault) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResource.FromJson(__jsonSourceVault) : SourceVault;} + {_vaultCertificate = If( json?.PropertyT("vaultCertificates"), out var __jsonVaultCertificates) ? If( __jsonVaultCertificates as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20210301.ICloudServiceVaultCertificate) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceVaultCertificate.FromJson(__u) )) ))() : null : VaultCertificate;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroup. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultSecretGroup. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroup. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultSecretGroup. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroup FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultSecretGroup FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceVaultSecretGroup(json) : null; } diff --git a/src/CloudService/generated/api/Models/Api20210301/Extension.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/Extension.PowerShell.cs new file mode 100644 index 000000000000..be9e4e5b3e19 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/Extension.PowerShell.cs @@ -0,0 +1,159 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// Describes a cloud service Extension. + [System.ComponentModel.TypeConverter(typeof(ExtensionTypeConverter))] + public partial class Extension + { + + /// + /// 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.CloudService.Models.Api20210301.IExtension DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Extension(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.CloudService.Models.Api20210301.IExtension DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Extension(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Extension(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceExtensionPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).ProtectedSetting = (string) content.GetValueForProperty("ProtectedSetting",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).ProtectedSetting, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).ProtectedSettingsFromKeyVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReference) content.GetValueForProperty("ProtectedSettingsFromKeyVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).ProtectedSettingsFromKeyVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceVaultAndSecretReferenceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).TypeHandlerVersion = (string) content.GetValueForProperty("TypeHandlerVersion",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).TypeHandlerVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).AutoUpgradeMinorVersion = (bool?) content.GetValueForProperty("AutoUpgradeMinorVersion",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).AutoUpgradeMinorVersion, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).Setting = (string) content.GetValueForProperty("Setting",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).Setting, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).Publisher = (string) content.GetValueForProperty("Publisher",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).Publisher, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).ForceUpdateTag = (string) content.GetValueForProperty("ForceUpdateTag",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).ForceUpdateTag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).RolesAppliedTo = (string[]) content.GetValueForProperty("RolesAppliedTo",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).RolesAppliedTo, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).ProtectedSettingFromKeyVaultSourceVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource) content.GetValueForProperty("ProtectedSettingFromKeyVaultSourceVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).ProtectedSettingFromKeyVaultSourceVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).ProtectedSettingFromKeyVaultSecretUrl = (string) content.GetValueForProperty("ProtectedSettingFromKeyVaultSecretUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).ProtectedSettingFromKeyVaultSecretUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).SourceVaultId = (string) content.GetValueForProperty("SourceVaultId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).SourceVaultId, 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 Extension(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceExtensionPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).ProtectedSetting = (string) content.GetValueForProperty("ProtectedSetting",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).ProtectedSetting, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).ProtectedSettingsFromKeyVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReference) content.GetValueForProperty("ProtectedSettingsFromKeyVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).ProtectedSettingsFromKeyVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceVaultAndSecretReferenceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).TypeHandlerVersion = (string) content.GetValueForProperty("TypeHandlerVersion",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).TypeHandlerVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).AutoUpgradeMinorVersion = (bool?) content.GetValueForProperty("AutoUpgradeMinorVersion",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).AutoUpgradeMinorVersion, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).Setting = (string) content.GetValueForProperty("Setting",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).Setting, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).Publisher = (string) content.GetValueForProperty("Publisher",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).Publisher, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).ForceUpdateTag = (string) content.GetValueForProperty("ForceUpdateTag",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).ForceUpdateTag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).RolesAppliedTo = (string[]) content.GetValueForProperty("RolesAppliedTo",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).RolesAppliedTo, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).ProtectedSettingFromKeyVaultSourceVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource) content.GetValueForProperty("ProtectedSettingFromKeyVaultSourceVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).ProtectedSettingFromKeyVaultSourceVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).ProtectedSettingFromKeyVaultSecretUrl = (string) content.GetValueForProperty("ProtectedSettingFromKeyVaultSecretUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).ProtectedSettingFromKeyVaultSecretUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).SourceVaultId = (string) content.GetValueForProperty("SourceVaultId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal)this).SourceVaultId, global::System.Convert.ToString); + 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.CloudService.Models.Api20210301.IExtension FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Describes a cloud service Extension. + [System.ComponentModel.TypeConverter(typeof(ExtensionTypeConverter))] + public partial interface IExtension + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/Extension.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/Extension.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/Extension.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/Extension.TypeConverter.cs index ddff824ee3dd..ace384b597f4 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/Extension.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/Extension.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.IExtension ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtension ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtension).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtension).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/Extension.cs b/src/CloudService/generated/api/Models/Api20210301/Extension.cs similarity index 77% rename from src/CloudService/generated/api/Models/Api20201001Preview/Extension.cs rename to src/CloudService/generated/api/Models/Api20210301/Extension.cs index 19966dab2b4e..415393b980f6 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/Extension.cs +++ b/src/CloudService/generated/api/Models/Api20210301/Extension.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; /// Describes a cloud service Extension. public partial class Extension : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtension, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtension, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal { /// @@ -14,7 +14,7 @@ public partial class Extension : /// [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] - public bool? AutoUpgradeMinorVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).AutoUpgradeMinorVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).AutoUpgradeMinorVersion = value ?? default(bool); } + public bool? AutoUpgradeMinorVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)Property).AutoUpgradeMinorVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)Property).AutoUpgradeMinorVersion = value ?? default(bool); } /// /// Tag to force apply the provided public and protected settings. @@ -26,19 +26,19 @@ public partial class Extension : /// [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] - public string ForceUpdateTag { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).ForceUpdateTag; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).ForceUpdateTag = value ?? null; } + public string ForceUpdateTag { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)Property).ForceUpdateTag; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)Property).ForceUpdateTag = value ?? null; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProperties Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceExtensionProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProperties Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceExtensionProperties()); set { {_property = value;} } } /// Internal Acessors for ProtectedSettingFromKeyVaultSourceVault - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal.ProtectedSettingFromKeyVaultSourceVault { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).ProtectedSettingFromKeyVaultSourceVault; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).ProtectedSettingFromKeyVaultSourceVault = value; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal.ProtectedSettingFromKeyVaultSourceVault { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)Property).ProtectedSettingFromKeyVaultSourceVault; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)Property).ProtectedSettingFromKeyVaultSourceVault = value; } /// Internal Acessors for ProtectedSettingsFromKeyVault - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal.ProtectedSettingsFromKeyVault { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).ProtectedSettingsFromKeyVault; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).ProtectedSettingsFromKeyVault = value; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReference Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal.ProtectedSettingsFromKeyVault { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)Property).ProtectedSettingsFromKeyVault; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)Property).ProtectedSettingsFromKeyVault = value; } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtensionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)Property).ProvisioningState = value; } /// Backing field for property. private string _name; @@ -49,33 +49,33 @@ public partial class Extension : public string Name { get => this._name; set => this._name = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProperties _property; /// Extension Properties. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] - internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceExtensionProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceExtensionProperties()); set => this._property = value; } /// /// Protected settings for the extension which are encrypted before sent to the role instance. /// [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] - public string ProtectedSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).ProtectedSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).ProtectedSetting = value ?? null; } + public string ProtectedSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)Property).ProtectedSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)Property).ProtectedSetting = value ?? null; } [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] - public string ProtectedSettingFromKeyVaultSecretUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).ProtectedSettingFromKeyVaultSecretUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).ProtectedSettingFromKeyVaultSecretUrl = value ?? null; } + public string ProtectedSettingFromKeyVaultSecretUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)Property).ProtectedSettingFromKeyVaultSecretUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)Property).ProtectedSettingFromKeyVaultSecretUrl = value ?? null; } /// The provisioning state, which only appears in the response. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 4)] - public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).ProvisioningState; } + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)Property).ProvisioningState; } /// The name of the extension handler publisher. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 1)] - public string Publisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).Publisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).Publisher = value ?? null; } + public string Publisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)Property).Publisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)Property).Publisher = value ?? null; } /// /// Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied @@ -83,7 +83,7 @@ public partial class Extension : /// [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] - public string[] RolesAppliedTo { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).RolesAppliedTo; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).RolesAppliedTo = value ?? null /* arrayOf */; } + public string[] RolesAppliedTo { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)Property).RolesAppliedTo; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)Property).RolesAppliedTo = value ?? null /* arrayOf */; } /// /// Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension @@ -91,17 +91,17 @@ public partial class Extension : /// [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] - public string Setting { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).Setting; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).Setting = value ?? null; } + public string Setting { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)Property).Setting; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)Property).Setting = value ?? null; } /// Resource Id [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] - public string SourceVaultId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).SourceVaultId; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).SourceVaultId = value ?? null; } + public string SourceVaultId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)Property).SourceVaultId; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)Property).SourceVaultId = value ?? null; } /// Specifies the type of the extension. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 2)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).Type = value ?? null; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)Property).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)Property).Type = value ?? null; } /// /// Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an @@ -112,7 +112,7 @@ public partial class Extension : /// [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 3)] - public string TypeHandlerVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).TypeHandlerVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).TypeHandlerVersion = value ?? null; } + public string TypeHandlerVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)Property).TypeHandlerVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionPropertiesInternal)Property).TypeHandlerVersion = value ?? null; } /// Creates an new instance. public Extension() @@ -271,7 +271,7 @@ internal partial interface IExtensionInternal /// The name of the extension. string Name { get; set; } /// Extension Properties. - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProperties Property { get; set; } /// /// Protected settings for the extension which are encrypted before sent to the role instance. /// @@ -279,9 +279,9 @@ internal partial interface IExtensionInternal string ProtectedSettingFromKeyVaultSecretUrl { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource ProtectedSettingFromKeyVaultSourceVault { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource ProtectedSettingFromKeyVaultSourceVault { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference ProtectedSettingsFromKeyVault { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceVaultAndSecretReference ProtectedSettingsFromKeyVault { get; set; } /// The provisioning state, which only appears in the response. string ProvisioningState { get; set; } /// The name of the extension handler publisher. diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/Extension.json.cs b/src/CloudService/generated/api/Models/Api20210301/Extension.json.cs similarity index 95% rename from src/CloudService/generated/api/Models/Api20201001Preview/Extension.json.cs rename to src/CloudService/generated/api/Models/Api20210301/Extension.json.cs index 1e8031ac9201..26bf4898f2aa 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/Extension.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/Extension.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -58,19 +58,19 @@ internal Extension(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json. { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceExtensionProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceExtensionProperties.FromJson(__jsonProperties) : Property;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtension. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtension. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtension. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtension. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtension FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IExtension FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new Extension(json) : null; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/InnerError.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/InnerError.PowerShell.cs similarity index 77% rename from src/CloudService/generated/api/Models/Api20201001Preview/InnerError.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/InnerError.PowerShell.cs index 8e815bae310d..18c0642ab45c 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/InnerError.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/InnerError.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -48,27 +48,27 @@ public partial class InnerError 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.CloudService.Models.Api20201001Preview.IInnerError DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInnerError DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InnerError(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.CloudService.Models.Api20201001Preview.IInnerError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInnerError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InnerError(content); } @@ -78,10 +78,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInnerError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -94,13 +94,13 @@ internal InnerError(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerErrorInternal)this).Exceptiontype = (string) content.GetValueForProperty("Exceptiontype",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerErrorInternal)this).Exceptiontype, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerErrorInternal)this).Errordetail = (string) content.GetValueForProperty("Errordetail",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerErrorInternal)this).Errordetail, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInnerErrorInternal)this).Exceptiontype = (string) content.GetValueForProperty("Exceptiontype",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInnerErrorInternal)this).Exceptiontype, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInnerErrorInternal)this).Errordetail = (string) content.GetValueForProperty("Errordetail",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInnerErrorInternal)this).Errordetail, 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,8 +113,8 @@ internal InnerError(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerErrorInternal)this).Exceptiontype = (string) content.GetValueForProperty("Exceptiontype",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerErrorInternal)this).Exceptiontype, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerErrorInternal)this).Errordetail = (string) content.GetValueForProperty("Errordetail",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerErrorInternal)this).Errordetail, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInnerErrorInternal)this).Exceptiontype = (string) content.GetValueForProperty("Exceptiontype",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInnerErrorInternal)this).Exceptiontype, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInnerErrorInternal)this).Errordetail = (string) content.GetValueForProperty("Errordetail",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInnerErrorInternal)this).Errordetail, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/InnerError.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/InnerError.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/InnerError.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/InnerError.TypeConverter.cs index c26afbf9f07a..10b64decd479 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/InnerError.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/InnerError.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.IInnerError ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInnerError ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerError).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInnerError).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/InnerError.cs b/src/CloudService/generated/api/Models/Api20210301/InnerError.cs similarity index 96% rename from src/CloudService/generated/api/Models/Api20201001Preview/InnerError.cs rename to src/CloudService/generated/api/Models/Api20210301/InnerError.cs index a468b718dd7a..276edd36485f 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/InnerError.cs +++ b/src/CloudService/generated/api/Models/Api20210301/InnerError.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; /// Inner error details. public partial class InnerError : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerError, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerErrorInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInnerError, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInnerErrorInternal { /// Backing field for property. diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/InnerError.json.cs b/src/CloudService/generated/api/Models/Api20210301/InnerError.json.cs similarity index 96% rename from src/CloudService/generated/api/Models/Api20201001Preview/InnerError.json.cs rename to src/CloudService/generated/api/Models/Api20210301/InnerError.json.cs index bac5a2799a49..82dd4cfac671 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/InnerError.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/InnerError.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class InnerError partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerError. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInnerError. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerError. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInnerError. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerError FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInnerError FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new InnerError(json) : null; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/InstanceSku.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/InstanceSku.PowerShell.cs similarity index 78% rename from src/CloudService/generated/api/Models/Api20201001Preview/InstanceSku.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/InstanceSku.PowerShell.cs index 55e748e306d8..ca33ff0d36f9 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/InstanceSku.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/InstanceSku.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -47,27 +47,27 @@ public partial class InstanceSku 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.CloudService.Models.Api20201001Preview.IInstanceSku DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceSku DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InstanceSku(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.CloudService.Models.Api20201001Preview.IInstanceSku DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceSku DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InstanceSku(content); } @@ -77,10 +77,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSku FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceSku FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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,13 +93,13 @@ internal InstanceSku(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSkuInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSkuInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSkuInternal)this).Tier = (string) content.GetValueForProperty("Tier",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSkuInternal)this).Tier, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceSkuInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceSkuInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceSkuInternal)this).Tier = (string) content.GetValueForProperty("Tier",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceSkuInternal)this).Tier, 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. @@ -112,8 +112,8 @@ internal InstanceSku(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSkuInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSkuInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSkuInternal)this).Tier = (string) content.GetValueForProperty("Tier",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSkuInternal)this).Tier, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceSkuInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceSkuInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceSkuInternal)this).Tier = (string) content.GetValueForProperty("Tier",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceSkuInternal)this).Tier, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/InstanceSku.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/InstanceSku.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/InstanceSku.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/InstanceSku.TypeConverter.cs index a5827dbd944a..e1b7959744e2 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/InstanceSku.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/InstanceSku.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.IInstanceSku ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceSku ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSku).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceSku).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/InstanceSku.cs b/src/CloudService/generated/api/Models/Api20210301/InstanceSku.cs similarity index 89% rename from src/CloudService/generated/api/Models/Api20201001Preview/InstanceSku.cs rename to src/CloudService/generated/api/Models/Api20210301/InstanceSku.cs index 3612ad25d389..5e4355da457b 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/InstanceSku.cs +++ b/src/CloudService/generated/api/Models/Api20210301/InstanceSku.cs @@ -1,17 +1,17 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; public partial class InstanceSku : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSku, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSkuInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceSku, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceSkuInternal { /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSkuInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceSkuInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for Tier - string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSkuInternal.Tier { get => this._tier; set { {_tier = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceSkuInternal.Tier { get => this._tier; set { {_tier = value;} } } /// Backing field for property. private string _name; diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/InstanceSku.json.cs b/src/CloudService/generated/api/Models/Api20210301/InstanceSku.json.cs similarity index 96% rename from src/CloudService/generated/api/Models/Api20201001Preview/InstanceSku.json.cs rename to src/CloudService/generated/api/Models/Api20210301/InstanceSku.json.cs index 841a53e5cb69..26e7690ba522 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/InstanceSku.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/InstanceSku.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -46,13 +46,13 @@ public partial class InstanceSku partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSku. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceSku. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSku. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceSku. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSku FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceSku FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new InstanceSku(json) : null; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/InstanceViewStatusesSummary.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/InstanceViewStatusesSummary.PowerShell.cs similarity index 75% rename from src/CloudService/generated/api/Models/Api20201001Preview/InstanceViewStatusesSummary.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/InstanceViewStatusesSummary.PowerShell.cs index 7402b5de0341..40e69394b41e 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/InstanceViewStatusesSummary.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/InstanceViewStatusesSummary.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -48,29 +48,29 @@ public partial class InstanceViewStatusesSummary 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.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummary DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceViewStatusesSummary DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InstanceViewStatusesSummary(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.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummary DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceViewStatusesSummary DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InstanceViewStatusesSummary(content); } @@ -80,10 +80,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummary FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceViewStatusesSummary FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,12 +96,12 @@ internal InstanceViewStatusesSummary(global::System.Collections.IDictionary cont return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummaryInternal)this).StatusesSummary = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount[]) content.GetValueForProperty("StatusesSummary",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummaryInternal)this).StatusesSummary, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.StatusCodeCountTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceViewStatusesSummaryInternal)this).StatusesSummary = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCount[]) content.GetValueForProperty("StatusesSummary",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceViewStatusesSummaryInternal)this).StatusesSummary, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.StatusCodeCountTypeConverter.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. @@ -114,7 +114,7 @@ internal InstanceViewStatusesSummary(global::System.Management.Automation.PSObje return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummaryInternal)this).StatusesSummary = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount[]) content.GetValueForProperty("StatusesSummary",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummaryInternal)this).StatusesSummary, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.StatusCodeCountTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceViewStatusesSummaryInternal)this).StatusesSummary = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCount[]) content.GetValueForProperty("StatusesSummary",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceViewStatusesSummaryInternal)this).StatusesSummary, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.StatusCodeCountTypeConverter.ConvertFrom)); AfterDeserializePSObject(content); } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/InstanceViewStatusesSummary.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/InstanceViewStatusesSummary.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/InstanceViewStatusesSummary.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/InstanceViewStatusesSummary.TypeConverter.cs index b4427064f4ef..e72f242f3bfd 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/InstanceViewStatusesSummary.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/InstanceViewStatusesSummary.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummary ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceViewStatusesSummary ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummary).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceViewStatusesSummary).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/InstanceViewStatusesSummary.cs b/src/CloudService/generated/api/Models/Api20210301/InstanceViewStatusesSummary.cs similarity index 70% rename from src/CloudService/generated/api/Models/Api20201001Preview/InstanceViewStatusesSummary.cs rename to src/CloudService/generated/api/Models/Api20210301/InstanceViewStatusesSummary.cs index a19e85c49901..46d4d14d77a5 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/InstanceViewStatusesSummary.cs +++ b/src/CloudService/generated/api/Models/Api20210301/InstanceViewStatusesSummary.cs @@ -1,21 +1,21 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; /// Instance view statuses. public partial class InstanceViewStatusesSummary : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummary, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummaryInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceViewStatusesSummary, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceViewStatusesSummaryInternal { /// Internal Acessors for StatusesSummary - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount[] Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummaryInternal.StatusesSummary { get => this._statusesSummary; set { {_statusesSummary = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCount[] Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceViewStatusesSummaryInternal.StatusesSummary { get => this._statusesSummary; set { {_statusesSummary = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount[] _statusesSummary; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCount[] _statusesSummary; [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount[] StatusesSummary { get => this._statusesSummary; } + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCount[] StatusesSummary { get => this._statusesSummary; } /// Creates an new instance. public InstanceViewStatusesSummary() @@ -32,15 +32,15 @@ public partial interface IInstanceViewStatusesSummary : ReadOnly = true, Description = @"", SerializedName = @"statusesSummary", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount) })] - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount[] StatusesSummary { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCount) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCount[] StatusesSummary { get; } } /// Instance view statuses. internal partial interface IInstanceViewStatusesSummaryInternal { - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount[] StatusesSummary { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCount[] StatusesSummary { get; set; } } } \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/InstanceViewStatusesSummary.json.cs b/src/CloudService/generated/api/Models/Api20210301/InstanceViewStatusesSummary.json.cs similarity index 90% rename from src/CloudService/generated/api/Models/Api20201001Preview/InstanceViewStatusesSummary.json.cs rename to src/CloudService/generated/api/Models/Api20210301/InstanceViewStatusesSummary.json.cs index a054219cc933..4c34536d7074 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/InstanceViewStatusesSummary.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/InstanceViewStatusesSummary.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class InstanceViewStatusesSummary partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummary. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceViewStatusesSummary. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummary. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceViewStatusesSummary. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummary FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceViewStatusesSummary FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new InstanceViewStatusesSummary(json) : null; } @@ -70,7 +70,7 @@ internal InstanceViewStatusesSummary(Microsoft.Azure.PowerShell.Cmdlets.CloudSer { return; } - {_statusesSummary = If( json?.PropertyT("statusesSummary"), out var __jsonStatusesSummary) ? If( __jsonStatusesSummary as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.IStatusCodeCount) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.StatusCodeCount.FromJson(__u) )) ))() : null : StatusesSummary;} + {_statusesSummary = If( json?.PropertyT("statusesSummary"), out var __jsonStatusesSummary) ? If( __jsonStatusesSummary as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20210301.IStatusCodeCount) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.StatusCodeCount.FromJson(__u) )) ))() : null : StatusesSummary;} AfterFromJson(json); } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfiguration.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/LoadBalancerConfiguration.PowerShell.cs similarity index 61% rename from src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfiguration.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/LoadBalancerConfiguration.PowerShell.cs index 54490b4d345e..97745b4c9898 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfiguration.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/LoadBalancerConfiguration.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -48,29 +48,29 @@ public partial class LoadBalancerConfiguration 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.CloudService.Models.Api20201001Preview.ILoadBalancerConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new LoadBalancerConfiguration(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.CloudService.Models.Api20201001Preview.ILoadBalancerConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new LoadBalancerConfiguration(content); } @@ -80,10 +80,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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,14 +96,15 @@ internal LoadBalancerConfiguration(global::System.Collections.IDictionary conten return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfigurationPropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationInternal)this).FrontendIPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration[]) content.GetValueForProperty("FrontendIPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationInternal)this).FrontendIPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfigurationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerConfigurationPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationInternal)this).FrontendIPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfiguration[]) content.GetValueForProperty("FrontendIPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationInternal)this).FrontendIPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerFrontendIPConfigurationTypeConverter.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. @@ -116,9 +117,10 @@ internal LoadBalancerConfiguration(global::System.Management.Automation.PSObject return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfigurationPropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationInternal)this).FrontendIPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration[]) content.GetValueForProperty("FrontendIPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationInternal)this).FrontendIPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfigurationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerConfigurationPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationInternal)this).FrontendIPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfiguration[]) content.GetValueForProperty("FrontendIPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationInternal)this).FrontendIPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerFrontendIPConfigurationTypeConverter.ConvertFrom)); AfterDeserializePSObject(content); } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfiguration.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/LoadBalancerConfiguration.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfiguration.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/LoadBalancerConfiguration.TypeConverter.cs index acef26feed8f..8ab146c8cd09 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfiguration.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/LoadBalancerConfiguration.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.ILoadBalancerConfiguration ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfiguration ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfiguration).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfiguration).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20210301/LoadBalancerConfiguration.cs b/src/CloudService/generated/api/Models/Api20210301/LoadBalancerConfiguration.cs new file mode 100644 index 000000000000..16d4dc56d54b --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/LoadBalancerConfiguration.cs @@ -0,0 +1,102 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Describes the load balancer configuration. + public partial class LoadBalancerConfiguration : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfiguration, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationInternal + { + + /// + /// Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer + /// configuration must have exactly one frontend IP configuration. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 1)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfiguration[] FrontendIPConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationPropertiesInternal)Property).FrontendIPConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationPropertiesInternal)Property).FrontendIPConfiguration = value ; } + + /// Backing field for property. + private string _id; + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public string Id { get => this._id; set => this._id = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationProperties Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerConfigurationProperties()); set { {_property = value;} } } + + /// Backing field for property. + private string _name; + + /// The name of the Load balancer + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 0)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationProperties _property; + + /// Properties of the load balancer configuration. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerConfigurationProperties()); set => this._property = value; } + + /// Creates an new instance. + public LoadBalancerConfiguration() + { + + } + } + /// Describes the load balancer configuration. + public partial interface ILoadBalancerConfiguration : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// + /// Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer + /// configuration must have exactly one frontend IP configuration. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration.", + SerializedName = @"frontendIPConfigurations", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfiguration) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfiguration[] FrontendIPConfiguration { get; set; } + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource Id", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; set; } + /// The name of the Load balancer + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the Load balancer", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + + } + /// Describes the load balancer configuration. + internal partial interface ILoadBalancerConfigurationInternal + + { + /// + /// Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer + /// configuration must have exactly one frontend IP configuration. + /// + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfiguration[] FrontendIPConfiguration { get; set; } + /// Resource Id + string Id { get; set; } + /// The name of the Load balancer + string Name { get; set; } + /// Properties of the load balancer configuration. + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationProperties Property { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfiguration.json.cs b/src/CloudService/generated/api/Models/Api20210301/LoadBalancerConfiguration.json.cs similarity index 89% rename from src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfiguration.json.cs rename to src/CloudService/generated/api/Models/Api20210301/LoadBalancerConfiguration.json.cs index dd2bcc625d36..6789d878b940 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfiguration.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/LoadBalancerConfiguration.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class LoadBalancerConfiguration partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfiguration. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfiguration. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfiguration. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfiguration. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new LoadBalancerConfiguration(json) : null; } @@ -70,7 +70,8 @@ internal LoadBalancerConfiguration(Microsoft.Azure.PowerShell.Cmdlets.CloudServi { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfigurationProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerConfigurationProperties.FromJson(__jsonProperties) : Property;} + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} AfterFromJson(json); } @@ -95,6 +96,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJ return container; } AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); AfterToJson(ref container); return container; diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfigurationProperties.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/LoadBalancerConfigurationProperties.PowerShell.cs similarity index 73% rename from src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfigurationProperties.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/LoadBalancerConfigurationProperties.PowerShell.cs index 81670b0d4a67..6d28faa38d83 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfigurationProperties.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/LoadBalancerConfigurationProperties.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -47,29 +47,29 @@ public partial class LoadBalancerConfigurationProperties 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.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new LoadBalancerConfigurationProperties(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.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new LoadBalancerConfigurationProperties(content); } @@ -79,10 +79,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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. @@ -95,12 +95,12 @@ internal LoadBalancerConfigurationProperties(global::System.Collections.IDiction return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationPropertiesInternal)this).FrontendIPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration[]) content.GetValueForProperty("FrontendIPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationPropertiesInternal)this).FrontendIPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfigurationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationPropertiesInternal)this).FrontendIPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfiguration[]) content.GetValueForProperty("FrontendIPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationPropertiesInternal)this).FrontendIPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerFrontendIPConfigurationTypeConverter.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. @@ -113,7 +113,7 @@ internal LoadBalancerConfigurationProperties(global::System.Management.Automatio return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationPropertiesInternal)this).FrontendIPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration[]) content.GetValueForProperty("FrontendIPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationPropertiesInternal)this).FrontendIPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfigurationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationPropertiesInternal)this).FrontendIPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfiguration[]) content.GetValueForProperty("FrontendIPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationPropertiesInternal)this).FrontendIPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerFrontendIPConfigurationTypeConverter.ConvertFrom)); AfterDeserializePSObject(content); } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfigurationProperties.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/LoadBalancerConfigurationProperties.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfigurationProperties.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/LoadBalancerConfigurationProperties.TypeConverter.cs index 625d809d8b44..7dfce2c209e2 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfigurationProperties.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/LoadBalancerConfigurationProperties.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -102,14 +102,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20210301/LoadBalancerConfigurationProperties.cs b/src/CloudService/generated/api/Models/Api20210301/LoadBalancerConfigurationProperties.cs new file mode 100644 index 000000000000..be011b418bee --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/LoadBalancerConfigurationProperties.cs @@ -0,0 +1,52 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class LoadBalancerConfigurationProperties : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationProperties, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationPropertiesInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfiguration[] _frontendIPConfiguration; + + /// + /// Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer + /// configuration must have exactly one frontend IP configuration. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfiguration[] FrontendIPConfiguration { get => this._frontendIPConfiguration; set => this._frontendIPConfiguration = value; } + + /// Creates an new instance. + public LoadBalancerConfigurationProperties() + { + + } + } + public partial interface ILoadBalancerConfigurationProperties : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// + /// Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer + /// configuration must have exactly one frontend IP configuration. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration.", + SerializedName = @"frontendIPConfigurations", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfiguration) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfiguration[] FrontendIPConfiguration { get; set; } + + } + internal partial interface ILoadBalancerConfigurationPropertiesInternal + + { + /// + /// Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer + /// configuration must have exactly one frontend IP configuration. + /// + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfiguration[] FrontendIPConfiguration { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfigurationProperties.json.cs b/src/CloudService/generated/api/Models/Api20210301/LoadBalancerConfigurationProperties.json.cs similarity index 85% rename from src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfigurationProperties.json.cs rename to src/CloudService/generated/api/Models/Api20210301/LoadBalancerConfigurationProperties.json.cs index c6244a067132..247dd46754e3 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfigurationProperties.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/LoadBalancerConfigurationProperties.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -46,13 +46,13 @@ public partial class LoadBalancerConfigurationProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerConfigurationProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new LoadBalancerConfigurationProperties(json) : null; } @@ -69,8 +69,7 @@ internal LoadBalancerConfigurationProperties(Microsoft.Azure.PowerShell.Cmdlets. { return; } - var frontendIpConfigurationJsonArray = json?.PropertyT("frontendIpConfigurations") as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonArray; - _frontendIPConfiguration = global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(frontendIpConfigurationJsonArray, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfiguration.FromJson(__u) ))); + {_frontendIPConfiguration = If( json?.PropertyT("frontendIPConfigurations"), out var __jsonFrontendIPConfigurations) ? If( __jsonFrontendIPConfigurations as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfiguration) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerFrontendIPConfiguration.FromJson(__u) )) ))() : null : FrontendIPConfiguration;} AfterFromJson(json); } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfiguration.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/LoadBalancerFrontendIPConfiguration.PowerShell.cs similarity index 53% rename from src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfiguration.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/LoadBalancerFrontendIPConfiguration.PowerShell.cs index 7130f8e4bfdf..7b691f1e650f 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfiguration.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/LoadBalancerFrontendIPConfiguration.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -47,29 +47,29 @@ public partial class LoadBalancerFrontendIPConfiguration 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.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new LoadBalancerFrontendIPConfiguration(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.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new LoadBalancerFrontendIPConfiguration(content); } @@ -79,10 +79,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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. @@ -95,18 +95,18 @@ internal LoadBalancerFrontendIPConfiguration(global::System.Collections.IDiction return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfigurationPropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).PublicIPAddress = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("PublicIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).PublicIPAddress, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).PrivateIPAddress = (string) content.GetValueForProperty("PrivateIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).PrivateIPAddress, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).PublicIPAddressId = (string) content.GetValueForProperty("PublicIPAddressId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).PublicIPAddressId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).SubnetId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerFrontendIPConfigurationPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationInternal)this).PublicIPAddress = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource) content.GetValueForProperty("PublicIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationInternal)this).PublicIPAddress, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationInternal)this).PrivateIPAddress = (string) content.GetValueForProperty("PrivateIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationInternal)this).PrivateIPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationInternal)this).PublicIPAddressId = (string) content.GetValueForProperty("PublicIPAddressId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationInternal)this).PublicIPAddressId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationInternal)this).SubnetId, 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. @@ -119,13 +119,13 @@ internal LoadBalancerFrontendIPConfiguration(global::System.Management.Automatio return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfigurationPropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).PublicIPAddress = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("PublicIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).PublicIPAddress, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).PrivateIPAddress = (string) content.GetValueForProperty("PrivateIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).PrivateIPAddress, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).PublicIPAddressId = (string) content.GetValueForProperty("PublicIPAddressId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).PublicIPAddressId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).SubnetId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerFrontendIPConfigurationPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationInternal)this).PublicIPAddress = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource) content.GetValueForProperty("PublicIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationInternal)this).PublicIPAddress, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationInternal)this).PrivateIPAddress = (string) content.GetValueForProperty("PrivateIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationInternal)this).PrivateIPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationInternal)this).PublicIPAddressId = (string) content.GetValueForProperty("PublicIPAddressId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationInternal)this).PublicIPAddressId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationInternal)this).SubnetId, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfiguration.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/LoadBalancerFrontendIPConfiguration.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfiguration.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/LoadBalancerFrontendIPConfiguration.TypeConverter.cs index 14afbc20b969..6ca6e2ff06ea 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfiguration.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/LoadBalancerFrontendIPConfiguration.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -102,14 +102,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfiguration ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfiguration).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20210301/LoadBalancerFrontendIPConfiguration.cs b/src/CloudService/generated/api/Models/Api20210301/LoadBalancerFrontendIPConfiguration.cs new file mode 100644 index 000000000000..8c0cd69303ba --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/LoadBalancerFrontendIPConfiguration.cs @@ -0,0 +1,116 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class LoadBalancerFrontendIPConfiguration : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfiguration, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationInternal + { + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationProperties Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerFrontendIPConfigurationProperties()); set { {_property = value;} } } + + /// Internal Acessors for PublicIPAddress + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationInternal.PublicIPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationPropertiesInternal)Property).PublicIPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationPropertiesInternal)Property).PublicIPAddress = value; } + + /// Internal Acessors for Subnet + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationInternal.Subnet { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationPropertiesInternal)Property).Subnet; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationPropertiesInternal)Property).Subnet = value; } + + /// Backing field for property. + private string _name; + + /// + /// The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name + /// can be used to access the resource. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// The virtual network private IP address of the IP configuration. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + public string PrivateIPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationPropertiesInternal)Property).PrivateIPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationPropertiesInternal)Property).PrivateIPAddress = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationProperties _property; + + /// Properties of load balancer frontend ip configuration. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerFrontendIPConfigurationProperties()); set => this._property = value; } + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + public string PublicIPAddressId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationPropertiesInternal)Property).PublicIPAddressId; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationPropertiesInternal)Property).PublicIPAddressId = value ?? null; } + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationPropertiesInternal)Property).SubnetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationPropertiesInternal)Property).SubnetId = value ?? null; } + + /// Creates an new instance. + public LoadBalancerFrontendIPConfiguration() + { + + } + } + public partial interface ILoadBalancerFrontendIPConfiguration : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// + /// The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name + /// can be used to access the resource. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// The virtual network private IP address of the IP configuration. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The virtual network private IP address of the IP configuration.", + SerializedName = @"privateIPAddress", + PossibleTypes = new [] { typeof(string) })] + string PrivateIPAddress { get; set; } + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource Id", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string PublicIPAddressId { get; set; } + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource Id", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string SubnetId { get; set; } + + } + internal partial interface ILoadBalancerFrontendIPConfigurationInternal + + { + /// + /// The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name + /// can be used to access the resource. + /// + string Name { get; set; } + /// The virtual network private IP address of the IP configuration. + string PrivateIPAddress { get; set; } + /// Properties of load balancer frontend ip configuration. + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationProperties Property { get; set; } + /// The reference to the public ip address resource. + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource PublicIPAddress { get; set; } + /// Resource Id + string PublicIPAddressId { get; set; } + /// The reference to the virtual network subnet resource. + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource Subnet { get; set; } + /// Resource Id + string SubnetId { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfiguration.json.cs b/src/CloudService/generated/api/Models/Api20210301/LoadBalancerFrontendIPConfiguration.json.cs similarity index 94% rename from src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfiguration.json.cs rename to src/CloudService/generated/api/Models/Api20210301/LoadBalancerFrontendIPConfiguration.json.cs index 20dc32802093..863bf985e18b 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfiguration.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/LoadBalancerFrontendIPConfiguration.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -46,13 +46,13 @@ public partial class LoadBalancerFrontendIPConfiguration partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfiguration. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfiguration. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new LoadBalancerFrontendIPConfiguration(json) : null; } @@ -69,7 +69,7 @@ internal LoadBalancerFrontendIPConfiguration(Microsoft.Azure.PowerShell.Cmdlets. { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfigurationProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerFrontendIPConfigurationProperties.FromJson(__jsonProperties) : Property;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} AfterFromJson(json); } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfigurationProperties.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/LoadBalancerFrontendIPConfigurationProperties.PowerShell.cs similarity index 59% rename from src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfigurationProperties.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/LoadBalancerFrontendIPConfigurationProperties.PowerShell.cs index c498f79dc411..d7b3504227cb 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfigurationProperties.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/LoadBalancerFrontendIPConfigurationProperties.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -48,29 +48,29 @@ public partial class LoadBalancerFrontendIPConfigurationProperties 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.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new LoadBalancerFrontendIPConfigurationProperties(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.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new LoadBalancerFrontendIPConfigurationProperties(content); } @@ -81,10 +81,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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. @@ -97,16 +97,16 @@ internal LoadBalancerFrontendIPConfigurationProperties(global::System.Collection return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PublicIPAddress = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("PublicIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PublicIPAddress, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PrivateIPAddress = (string) content.GetValueForProperty("PrivateIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PrivateIPAddress, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PublicIPAddressId = (string) content.GetValueForProperty("PublicIPAddressId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PublicIPAddressId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).SubnetId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PublicIPAddress = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource) content.GetValueForProperty("PublicIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PublicIPAddress, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PrivateIPAddress = (string) content.GetValueForProperty("PrivateIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PrivateIPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PublicIPAddressId = (string) content.GetValueForProperty("PublicIPAddressId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PublicIPAddressId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).SubnetId, 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. @@ -119,11 +119,11 @@ internal LoadBalancerFrontendIPConfigurationProperties(global::System.Management return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PublicIPAddress = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("PublicIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PublicIPAddress, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PrivateIPAddress = (string) content.GetValueForProperty("PrivateIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PrivateIPAddress, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PublicIPAddressId = (string) content.GetValueForProperty("PublicIPAddressId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PublicIPAddressId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).SubnetId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PublicIPAddress = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource) content.GetValueForProperty("PublicIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PublicIPAddress, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PrivateIPAddress = (string) content.GetValueForProperty("PrivateIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PrivateIPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PublicIPAddressId = (string) content.GetValueForProperty("PublicIPAddressId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PublicIPAddressId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).SubnetId, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfigurationProperties.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/LoadBalancerFrontendIPConfigurationProperties.TypeConverter.cs similarity index 96% rename from src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfigurationProperties.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/LoadBalancerFrontendIPConfigurationProperties.TypeConverter.cs index b52b8d874b30..f16a249bac89 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfigurationProperties.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/LoadBalancerFrontendIPConfigurationProperties.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -104,14 +104,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfigurationProperties.cs b/src/CloudService/generated/api/Models/Api20210301/LoadBalancerFrontendIPConfigurationProperties.cs similarity index 61% rename from src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfigurationProperties.cs rename to src/CloudService/generated/api/Models/Api20210301/LoadBalancerFrontendIPConfigurationProperties.cs index 1c309e5adb21..5de7585c7dba 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfigurationProperties.cs +++ b/src/CloudService/generated/api/Models/Api20210301/LoadBalancerFrontendIPConfigurationProperties.cs @@ -1,45 +1,47 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; /// Describes a cloud service IP Configuration public partial class LoadBalancerFrontendIPConfigurationProperties : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationProperties, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationProperties, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationPropertiesInternal { /// Internal Acessors for PublicIPAddress - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal.PublicIPAddress { get => (this._publicIPAddress = this._publicIPAddress ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResource()); set { {_publicIPAddress = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationPropertiesInternal.PublicIPAddress { get => (this._publicIPAddress = this._publicIPAddress ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResource()); set { {_publicIPAddress = value;} } } /// Internal Acessors for Subnet - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal.Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResource()); set { {_subnet = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationPropertiesInternal.Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResource()); set { {_subnet = value;} } } /// Backing field for property. private string _privateIPAddress; - /// The private IP address referenced by the cloud service. + /// The virtual network private IP address of the IP configuration. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] public string PrivateIPAddress { get => this._privateIPAddress; set => this._privateIPAddress = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource _publicIPAddress; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource _publicIPAddress; + /// The reference to the public ip address resource. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource PublicIPAddress { get => (this._publicIPAddress = this._publicIPAddress ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResource()); set => this._publicIPAddress = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource PublicIPAddress { get => (this._publicIPAddress = this._publicIPAddress ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResource()); set => this._publicIPAddress = value; } /// Resource Id [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] - public string PublicIPAddressId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResourceInternal)PublicIPAddress).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResourceInternal)PublicIPAddress).Id = value ?? null; } + public string PublicIPAddressId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResourceInternal)PublicIPAddress).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResourceInternal)PublicIPAddress).Id = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource _subnet; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource _subnet; + /// The reference to the virtual network subnet resource. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResource()); set => this._subnet = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResource()); set => this._subnet = value; } /// Resource Id [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] - public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResourceInternal)Subnet).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResourceInternal)Subnet).Id = value ?? null; } + public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResourceInternal)Subnet).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResourceInternal)Subnet).Id = value ?? null; } /// /// Creates an new instance. @@ -53,11 +55,11 @@ public LoadBalancerFrontendIPConfigurationProperties() public partial interface ILoadBalancerFrontendIPConfigurationProperties : Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable { - /// The private IP address referenced by the cloud service. + /// The virtual network private IP address of the IP configuration. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The private IP address referenced by the cloud service.", + Description = @"The virtual network private IP address of the IP configuration.", SerializedName = @"privateIPAddress", PossibleTypes = new [] { typeof(string) })] string PrivateIPAddress { get; set; } @@ -83,14 +85,14 @@ public partial interface ILoadBalancerFrontendIPConfigurationProperties : internal partial interface ILoadBalancerFrontendIPConfigurationPropertiesInternal { - /// The private IP address referenced by the cloud service. + /// The virtual network private IP address of the IP configuration. string PrivateIPAddress { get; set; } - - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource PublicIPAddress { get; set; } + /// The reference to the public ip address resource. + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource PublicIPAddress { get; set; } /// Resource Id string PublicIPAddressId { get; set; } - - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource Subnet { get; set; } + /// The reference to the virtual network subnet resource. + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource Subnet { get; set; } /// Resource Id string SubnetId { get; set; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfigurationProperties.json.cs b/src/CloudService/generated/api/Models/Api20210301/LoadBalancerFrontendIPConfigurationProperties.json.cs similarity index 93% rename from src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfigurationProperties.json.cs rename to src/CloudService/generated/api/Models/Api20210301/LoadBalancerFrontendIPConfigurationProperties.json.cs index bee5e39904a2..05c946c40953 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfigurationProperties.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/LoadBalancerFrontendIPConfigurationProperties.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class LoadBalancerFrontendIPConfigurationProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfigurationProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new LoadBalancerFrontendIPConfigurationProperties(json) : null; } @@ -71,8 +71,8 @@ internal LoadBalancerFrontendIPConfigurationProperties(Microsoft.Azure.PowerShel { return; } - {_publicIPAddress = If( json?.PropertyT("publicIPAddress"), out var __jsonPublicIPAddress) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResource.FromJson(__jsonPublicIPAddress) : PublicIPAddress;} - {_subnet = If( json?.PropertyT("subnet"), out var __jsonSubnet) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResource.FromJson(__jsonSubnet) : Subnet;} + {_publicIPAddress = If( json?.PropertyT("publicIPAddress"), out var __jsonPublicIPAddress) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResource.FromJson(__jsonPublicIPAddress) : PublicIPAddress;} + {_subnet = If( json?.PropertyT("subnet"), out var __jsonSubnet) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResource.FromJson(__jsonSubnet) : Subnet;} {_privateIPAddress = If( json?.PropertyT("privateIPAddress"), out var __jsonPrivateIPAddress) ? (string)__jsonPrivateIPAddress : (string)PrivateIPAddress;} AfterFromJson(json); } diff --git a/src/CloudService/generated/api/Models/Api20210301/OSFamily.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/OSFamily.PowerShell.cs new file mode 100644 index 000000000000..0523b5f36ee0 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/OSFamily.PowerShell.cs @@ -0,0 +1,145 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// Describes a cloud service OS family. + [System.ComponentModel.TypeConverter(typeof(OSFamilyTypeConverter))] + public partial class OSFamily + { + + /// + /// 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.CloudService.Models.Api20210301.IOSFamily DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new OSFamily(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.CloudService.Models.Api20210301.IOSFamily DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new OSFamily(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.CloudService.Models.Api20210301.IOSFamily FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal OSFamily(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSFamilyPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal)this).PropertiesName = (string) content.GetValueForProperty("PropertiesName",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal)this).PropertiesName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal)this).Label = (string) content.GetValueForProperty("Label",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal)this).Label, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBase[]) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal)this).Version, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSVersionPropertiesBaseTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal OSFamily(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSFamilyPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal)this).PropertiesName = (string) content.GetValueForProperty("PropertiesName",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal)this).PropertiesName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal)this).Label = (string) content.GetValueForProperty("Label",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal)this).Label, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBase[]) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal)this).Version, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSVersionPropertiesBaseTypeConverter.ConvertFrom)); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Describes a cloud service OS family. + [System.ComponentModel.TypeConverter(typeof(OSFamilyTypeConverter))] + public partial interface IOSFamily + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20210301/OSFamily.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/OSFamily.TypeConverter.cs new file mode 100644 index 000000000000..3305e9f51f48 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/OSFamily.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class OSFamilyTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter to the parameter using and + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamily ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamily).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return OSFamily.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return OSFamily.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return OSFamily.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20210301/OSFamily.cs b/src/CloudService/generated/api/Models/Api20210301/OSFamily.cs new file mode 100644 index 000000000000..a06d07ee6980 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/OSFamily.cs @@ -0,0 +1,180 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Describes a cloud service OS family. + public partial class OSFamily : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamily, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal + { + + /// Backing field for property. + private string _id; + + /// Resource Id. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public string Id { get => this._id; } + + /// The OS family label. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 1)] + public string Label { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyPropertiesInternal)Property).Label; } + + /// Backing field for property. + private string _location; + + /// Resource location. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public string Location { get => this._location; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal.Id { get => this._id; set { {_id = value;} } } + + /// Internal Acessors for Label + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal.Label { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyPropertiesInternal)Property).Label; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyPropertiesInternal)Property).Label = value; } + + /// Internal Acessors for Location + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal.Location { get => this._location; set { {_location = value;} } } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal.Name { get => this._name; set { {_name = value;} } } + + /// Internal Acessors for PropertiesName + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal.PropertiesName { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyPropertiesInternal)Property).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyPropertiesInternal)Property).Name = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyProperties Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSFamilyProperties()); set { {_property = value;} } } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal.Type { get => this._type; set { {_type = value;} } } + + /// Internal Acessors for Version + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBase[] Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyInternal.Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyPropertiesInternal)Property).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyPropertiesInternal)Property).Version = value; } + + /// Backing field for property. + private string _name; + + /// Resource name. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 0)] + public string Name { get => this._name; } + + /// The OS family name. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public string PropertiesName { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyPropertiesInternal)Property).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyProperties _property; + + /// OS family properties. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSFamilyProperties()); set => this._property = value; } + + /// Backing field for property. + private string _type; + + /// Resource type. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public string Type { get => this._type; } + + /// List of OS versions belonging to this family. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBase[] Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyPropertiesInternal)Property).Version; } + + /// Creates an new instance. + public OSFamily() + { + + } + } + /// Describes a cloud service OS family. + public partial interface IOSFamily : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// Resource Id. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource Id.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; } + /// The OS family label. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The OS family label.", + SerializedName = @"label", + PossibleTypes = new [] { typeof(string) })] + string Label { get; } + /// Resource location. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource location.", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; } + /// Resource name. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource name.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; } + /// The OS family name. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The OS family name.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string PropertiesName { get; } + /// Resource type. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource type.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string Type { get; } + /// List of OS versions belonging to this family. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"List of OS versions belonging to this family.", + SerializedName = @"versions", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBase) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBase[] Version { get; } + + } + /// Describes a cloud service OS family. + internal partial interface IOSFamilyInternal + + { + /// Resource Id. + string Id { get; set; } + /// The OS family label. + string Label { get; set; } + /// Resource location. + string Location { get; set; } + /// Resource name. + string Name { get; set; } + /// The OS family name. + string PropertiesName { get; set; } + /// OS family properties. + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyProperties Property { get; set; } + /// Resource type. + string Type { get; set; } + /// List of OS versions belonging to this family. + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBase[] Version { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20210301/OSFamily.json.cs b/src/CloudService/generated/api/Models/Api20210301/OSFamily.json.cs new file mode 100644 index 000000000000..9e8b133a9494 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/OSFamily.json.cs @@ -0,0 +1,121 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Describes a cloud service OS family. + public partial class OSFamily + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamily. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamily. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamily FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new OSFamily(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal OSFamily(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSFamilyProperties.FromJson(__jsonProperties) : Property;} + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20210301/OSFamilyListResult.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/OSFamilyListResult.PowerShell.cs new file mode 100644 index 000000000000..770d709dbe6d --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/OSFamilyListResult.PowerShell.cs @@ -0,0 +1,131 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(OSFamilyListResultTypeConverter))] + public partial class OSFamilyListResult + { + + /// + /// 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.CloudService.Models.Api20210301.IOSFamilyListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new OSFamilyListResult(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.CloudService.Models.Api20210301.IOSFamilyListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new OSFamilyListResult(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.CloudService.Models.Api20210301.IOSFamilyListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal OSFamilyListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamily[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSFamilyTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyListResultInternal)this).NextLink, 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 OSFamilyListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamily[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSFamilyTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyListResultInternal)this).NextLink, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(OSFamilyListResultTypeConverter))] + public partial interface IOSFamilyListResult + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20210301/OSFamilyListResult.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/OSFamilyListResult.TypeConverter.cs new file mode 100644 index 000000000000..b462008efdf2 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/OSFamilyListResult.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class OSFamilyListResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter to the parameter using and + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return OSFamilyListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return OSFamilyListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return OSFamilyListResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20210301/OSFamilyListResult.cs b/src/CloudService/generated/api/Models/Api20210301/OSFamilyListResult.cs new file mode 100644 index 000000000000..174944954b5c --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/OSFamilyListResult.cs @@ -0,0 +1,56 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class OSFamilyListResult : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyListResult, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyListResultInternal + { + + /// Backing field for property. + private string _nextLink; + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamily[] _value; + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamily[] Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public OSFamilyListResult() + { + + } + } + public partial interface IOSFamilyListResult : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamily) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamily[] Value { get; set; } + + } + internal partial interface IOSFamilyListResultInternal + + { + string NextLink { get; set; } + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamily[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20210301/OSFamilyListResult.json.cs b/src/CloudService/generated/api/Models/Api20210301/OSFamilyListResult.json.cs new file mode 100644 index 000000000000..6aba6d15d520 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/OSFamilyListResult.json.cs @@ -0,0 +1,110 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class OSFamilyListResult + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new OSFamilyListResult(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal OSFamilyListResult(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20210301.IOSFamily) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSFamily.FromJson(__u) )) ))() : null : Value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20210301/OSFamilyProperties.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/OSFamilyProperties.PowerShell.cs new file mode 100644 index 000000000000..5af72e152733 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/OSFamilyProperties.PowerShell.cs @@ -0,0 +1,135 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// OS family properties. + [System.ComponentModel.TypeConverter(typeof(OSFamilyPropertiesTypeConverter))] + public partial class OSFamilyProperties + { + + /// + /// 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.CloudService.Models.Api20210301.IOSFamilyProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new OSFamilyProperties(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.CloudService.Models.Api20210301.IOSFamilyProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new OSFamilyProperties(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.CloudService.Models.Api20210301.IOSFamilyProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal OSFamilyProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyPropertiesInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyPropertiesInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyPropertiesInternal)this).Label = (string) content.GetValueForProperty("Label",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyPropertiesInternal)this).Label, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyPropertiesInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBase[]) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyPropertiesInternal)this).Version, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSVersionPropertiesBaseTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal OSFamilyProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyPropertiesInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyPropertiesInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyPropertiesInternal)this).Label = (string) content.GetValueForProperty("Label",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyPropertiesInternal)this).Label, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyPropertiesInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBase[]) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyPropertiesInternal)this).Version, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSVersionPropertiesBaseTypeConverter.ConvertFrom)); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// OS family properties. + [System.ComponentModel.TypeConverter(typeof(OSFamilyPropertiesTypeConverter))] + public partial interface IOSFamilyProperties + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20210301/OSFamilyProperties.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/OSFamilyProperties.TypeConverter.cs new file mode 100644 index 000000000000..ea375ab165c5 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/OSFamilyProperties.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class OSFamilyPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter to the parameter using and + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return OSFamilyProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return OSFamilyProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return OSFamilyProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20210301/OSFamilyProperties.cs b/src/CloudService/generated/api/Models/Api20210301/OSFamilyProperties.cs new file mode 100644 index 000000000000..a10156958c56 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/OSFamilyProperties.cs @@ -0,0 +1,89 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// OS family properties. + public partial class OSFamilyProperties : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyProperties, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyPropertiesInternal + { + + /// Backing field for property. + private string _label; + + /// The OS family label. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Label { get => this._label; } + + /// Internal Acessors for Label + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyPropertiesInternal.Label { get => this._label; set { {_label = value;} } } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyPropertiesInternal.Name { get => this._name; set { {_name = value;} } } + + /// Internal Acessors for Version + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBase[] Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyPropertiesInternal.Version { get => this._version; set { {_version = value;} } } + + /// Backing field for property. + private string _name; + + /// The OS family name. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Name { get => this._name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBase[] _version; + + /// List of OS versions belonging to this family. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBase[] Version { get => this._version; } + + /// Creates an new instance. + public OSFamilyProperties() + { + + } + } + /// OS family properties. + public partial interface IOSFamilyProperties : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// The OS family label. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The OS family label.", + SerializedName = @"label", + PossibleTypes = new [] { typeof(string) })] + string Label { get; } + /// The OS family name. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The OS family name.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; } + /// List of OS versions belonging to this family. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"List of OS versions belonging to this family.", + SerializedName = @"versions", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBase) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBase[] Version { get; } + + } + /// OS family properties. + internal partial interface IOSFamilyPropertiesInternal + + { + /// The OS family label. + string Label { get; set; } + /// The OS family name. + string Name { get; set; } + /// List of OS versions belonging to this family. + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBase[] Version { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20210301/OSFamilyProperties.json.cs b/src/CloudService/generated/api/Models/Api20210301/OSFamilyProperties.json.cs new file mode 100644 index 000000000000..d06cca7b85a7 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/OSFamilyProperties.json.cs @@ -0,0 +1,122 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// OS family properties. + public partial class OSFamilyProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamilyProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new OSFamilyProperties(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal OSFamilyProperties(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_label = If( json?.PropertyT("label"), out var __jsonLabel) ? (string)__jsonLabel : (string)Label;} + {_version = If( json?.PropertyT("versions"), out var __jsonVersions) ? If( __jsonVersions as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20210301.IOSVersionPropertiesBase) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSVersionPropertiesBase.FromJson(__u) )) ))() : null : Version;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._label)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._label.ToString()) : null, "label" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._version) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.XNodeArray(); + foreach( var __x in this._version ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("versions",__w); + } + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20210301/OSVersion.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/OSVersion.PowerShell.cs new file mode 100644 index 000000000000..b696b7398196 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/OSVersion.PowerShell.cs @@ -0,0 +1,151 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// Describes a cloud service OS version. + [System.ComponentModel.TypeConverter(typeof(OSVersionTypeConverter))] + public partial class OSVersion + { + + /// + /// 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.CloudService.Models.Api20210301.IOSVersion DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new OSVersion(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.CloudService.Models.Api20210301.IOSVersion DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new OSVersion(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.CloudService.Models.Api20210301.IOSVersion FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal OSVersion(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSVersionPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).Family = (string) content.GetValueForProperty("Family",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).Family, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).FamilyLabel = (string) content.GetValueForProperty("FamilyLabel",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).FamilyLabel, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).Version, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).Label = (string) content.GetValueForProperty("Label",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).Label, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).IsDefault = (bool?) content.GetValueForProperty("IsDefault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).IsDefault, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).IsActive = (bool?) content.GetValueForProperty("IsActive",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).IsActive, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal OSVersion(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSVersionPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).Family = (string) content.GetValueForProperty("Family",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).Family, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).FamilyLabel = (string) content.GetValueForProperty("FamilyLabel",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).FamilyLabel, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).Version, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).Label = (string) content.GetValueForProperty("Label",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).Label, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).IsDefault = (bool?) content.GetValueForProperty("IsDefault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).IsDefault, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).IsActive = (bool?) content.GetValueForProperty("IsActive",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal)this).IsActive, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + 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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Describes a cloud service OS version. + [System.ComponentModel.TypeConverter(typeof(OSVersionTypeConverter))] + public partial interface IOSVersion + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20210301/OSVersion.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/OSVersion.TypeConverter.cs new file mode 100644 index 000000000000..6f29b67e80bd --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/OSVersion.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class OSVersionTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter to the parameter using and + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersion ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersion).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return OSVersion.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return OSVersion.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return OSVersion.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20210301/OSVersion.cs b/src/CloudService/generated/api/Models/Api20210301/OSVersion.cs new file mode 100644 index 000000000000..aff05281dac1 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/OSVersion.cs @@ -0,0 +1,234 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Describes a cloud service OS version. + public partial class OSVersion : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersion, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal + { + + /// The family of this OS version. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 4)] + public string Family { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)Property).Family; } + + /// The family label of this OS version. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 5)] + public string FamilyLabel { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)Property).FamilyLabel; } + + /// Backing field for property. + private string _id; + + /// Resource Id. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public string Id { get => this._id; } + + /// Specifies whether this OS version is active. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 3)] + public bool? IsActive { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)Property).IsActive; } + + /// Specifies whether this is the default OS version for its family. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 2)] + public bool? IsDefault { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)Property).IsDefault; } + + /// The OS version label. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 1)] + public string Label { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)Property).Label; } + + /// Backing field for property. + private string _location; + + /// Resource location. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public string Location { get => this._location; } + + /// Internal Acessors for Family + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal.Family { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)Property).Family; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)Property).Family = value; } + + /// Internal Acessors for FamilyLabel + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal.FamilyLabel { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)Property).FamilyLabel; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)Property).FamilyLabel = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal.Id { get => this._id; set { {_id = value;} } } + + /// Internal Acessors for IsActive + bool? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal.IsActive { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)Property).IsActive; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)Property).IsActive = value; } + + /// Internal Acessors for IsDefault + bool? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal.IsDefault { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)Property).IsDefault; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)Property).IsDefault = value; } + + /// Internal Acessors for Label + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal.Label { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)Property).Label; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)Property).Label = value; } + + /// Internal Acessors for Location + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal.Location { get => this._location; set { {_location = value;} } } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal.Name { get => this._name; set { {_name = value;} } } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionProperties Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSVersionProperties()); set { {_property = value;} } } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal.Type { get => this._type; set { {_type = value;} } } + + /// Internal Acessors for Version + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionInternal.Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)Property).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)Property).Version = value; } + + /// Backing field for property. + private string _name; + + /// Resource name. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 0)] + public string Name { get => this._name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionProperties _property; + + /// OS version properties. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSVersionProperties()); set => this._property = value; } + + /// Backing field for property. + private string _type; + + /// Resource type. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public string Type { get => this._type; } + + /// The OS version. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public string Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)Property).Version; } + + /// Creates an new instance. + public OSVersion() + { + + } + } + /// Describes a cloud service OS version. + public partial interface IOSVersion : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// The family of this OS version. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The family of this OS version.", + SerializedName = @"family", + PossibleTypes = new [] { typeof(string) })] + string Family { get; } + /// The family label of this OS version. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The family label of this OS version.", + SerializedName = @"familyLabel", + PossibleTypes = new [] { typeof(string) })] + string FamilyLabel { get; } + /// Resource Id. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource Id.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; } + /// Specifies whether this OS version is active. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Specifies whether this OS version is active.", + SerializedName = @"isActive", + PossibleTypes = new [] { typeof(bool) })] + bool? IsActive { get; } + /// Specifies whether this is the default OS version for its family. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Specifies whether this is the default OS version for its family.", + SerializedName = @"isDefault", + PossibleTypes = new [] { typeof(bool) })] + bool? IsDefault { get; } + /// The OS version label. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The OS version label.", + SerializedName = @"label", + PossibleTypes = new [] { typeof(string) })] + string Label { get; } + /// Resource location. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource location.", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; } + /// Resource name. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource name.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; } + /// Resource type. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource type.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string Type { get; } + /// The OS version. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The OS version.", + SerializedName = @"version", + PossibleTypes = new [] { typeof(string) })] + string Version { get; } + + } + /// Describes a cloud service OS version. + internal partial interface IOSVersionInternal + + { + /// The family of this OS version. + string Family { get; set; } + /// The family label of this OS version. + string FamilyLabel { get; set; } + /// Resource Id. + string Id { get; set; } + /// Specifies whether this OS version is active. + bool? IsActive { get; set; } + /// Specifies whether this is the default OS version for its family. + bool? IsDefault { get; set; } + /// The OS version label. + string Label { get; set; } + /// Resource location. + string Location { get; set; } + /// Resource name. + string Name { get; set; } + /// OS version properties. + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionProperties Property { get; set; } + /// Resource type. + string Type { get; set; } + /// The OS version. + string Version { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20210301/OSVersion.json.cs b/src/CloudService/generated/api/Models/Api20210301/OSVersion.json.cs new file mode 100644 index 000000000000..998fd1c39e06 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/OSVersion.json.cs @@ -0,0 +1,121 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Describes a cloud service OS version. + public partial class OSVersion + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersion. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersion FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new OSVersion(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal OSVersion(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSVersionProperties.FromJson(__jsonProperties) : Property;} + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20210301/OSVersionListResult.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/OSVersionListResult.PowerShell.cs new file mode 100644 index 000000000000..ea6c3a223150 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/OSVersionListResult.PowerShell.cs @@ -0,0 +1,131 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(OSVersionListResultTypeConverter))] + public partial class OSVersionListResult + { + + /// + /// 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.CloudService.Models.Api20210301.IOSVersionListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new OSVersionListResult(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.CloudService.Models.Api20210301.IOSVersionListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new OSVersionListResult(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.CloudService.Models.Api20210301.IOSVersionListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal OSVersionListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersion[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSVersionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionListResultInternal)this).NextLink, 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 OSVersionListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersion[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSVersionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionListResultInternal)this).NextLink, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(OSVersionListResultTypeConverter))] + public partial interface IOSVersionListResult + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20210301/OSVersionListResult.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/OSVersionListResult.TypeConverter.cs new file mode 100644 index 000000000000..9fca47ccfbc0 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/OSVersionListResult.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class OSVersionListResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter to the parameter using and + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return OSVersionListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return OSVersionListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return OSVersionListResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20210301/OSVersionListResult.cs b/src/CloudService/generated/api/Models/Api20210301/OSVersionListResult.cs new file mode 100644 index 000000000000..3be650d7b862 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/OSVersionListResult.cs @@ -0,0 +1,56 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class OSVersionListResult : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionListResult, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionListResultInternal + { + + /// Backing field for property. + private string _nextLink; + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersion[] _value; + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersion[] Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public OSVersionListResult() + { + + } + } + public partial interface IOSVersionListResult : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersion) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersion[] Value { get; set; } + + } + internal partial interface IOSVersionListResultInternal + + { + string NextLink { get; set; } + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersion[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20210301/OSVersionListResult.json.cs b/src/CloudService/generated/api/Models/Api20210301/OSVersionListResult.json.cs new file mode 100644 index 000000000000..5f5329a794bf --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/OSVersionListResult.json.cs @@ -0,0 +1,110 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class OSVersionListResult + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new OSVersionListResult(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal OSVersionListResult(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20210301.IOSVersion) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.OSVersion.FromJson(__u) )) ))() : null : Value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20210301/OSVersionProperties.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/OSVersionProperties.PowerShell.cs new file mode 100644 index 000000000000..9aedb904cf72 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/OSVersionProperties.PowerShell.cs @@ -0,0 +1,141 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// OS version properties. + [System.ComponentModel.TypeConverter(typeof(OSVersionPropertiesTypeConverter))] + public partial class OSVersionProperties + { + + /// + /// 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.CloudService.Models.Api20210301.IOSVersionProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new OSVersionProperties(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.CloudService.Models.Api20210301.IOSVersionProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new OSVersionProperties(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.CloudService.Models.Api20210301.IOSVersionProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal OSVersionProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)this).Family = (string) content.GetValueForProperty("Family",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)this).Family, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)this).FamilyLabel = (string) content.GetValueForProperty("FamilyLabel",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)this).FamilyLabel, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)this).Version, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)this).Label = (string) content.GetValueForProperty("Label",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)this).Label, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)this).IsDefault = (bool?) content.GetValueForProperty("IsDefault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)this).IsDefault, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)this).IsActive = (bool?) content.GetValueForProperty("IsActive",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)this).IsActive, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal OSVersionProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)this).Family = (string) content.GetValueForProperty("Family",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)this).Family, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)this).FamilyLabel = (string) content.GetValueForProperty("FamilyLabel",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)this).FamilyLabel, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)this).Version, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)this).Label = (string) content.GetValueForProperty("Label",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)this).Label, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)this).IsDefault = (bool?) content.GetValueForProperty("IsDefault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)this).IsDefault, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)this).IsActive = (bool?) content.GetValueForProperty("IsActive",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal)this).IsActive, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + 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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// OS version properties. + [System.ComponentModel.TypeConverter(typeof(OSVersionPropertiesTypeConverter))] + public partial interface IOSVersionProperties + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20210301/OSVersionProperties.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/OSVersionProperties.TypeConverter.cs new file mode 100644 index 000000000000..1f386d31193c --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/OSVersionProperties.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class OSVersionPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter to the parameter using and + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return OSVersionProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return OSVersionProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return OSVersionProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20210301/OSVersionProperties.cs b/src/CloudService/generated/api/Models/Api20210301/OSVersionProperties.cs new file mode 100644 index 000000000000..1ad12a085a33 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/OSVersionProperties.cs @@ -0,0 +1,149 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// OS version properties. + public partial class OSVersionProperties : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionProperties, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal + { + + /// Backing field for property. + private string _family; + + /// The family of this OS version. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Family { get => this._family; } + + /// Backing field for property. + private string _familyLabel; + + /// The family label of this OS version. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string FamilyLabel { get => this._familyLabel; } + + /// Backing field for property. + private bool? _isActive; + + /// Specifies whether this OS version is active. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public bool? IsActive { get => this._isActive; } + + /// Backing field for property. + private bool? _isDefault; + + /// Specifies whether this is the default OS version for its family. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public bool? IsDefault { get => this._isDefault; } + + /// Backing field for property. + private string _label; + + /// The OS version label. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Label { get => this._label; } + + /// Internal Acessors for Family + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal.Family { get => this._family; set { {_family = value;} } } + + /// Internal Acessors for FamilyLabel + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal.FamilyLabel { get => this._familyLabel; set { {_familyLabel = value;} } } + + /// Internal Acessors for IsActive + bool? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal.IsActive { get => this._isActive; set { {_isActive = value;} } } + + /// Internal Acessors for IsDefault + bool? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal.IsDefault { get => this._isDefault; set { {_isDefault = value;} } } + + /// Internal Acessors for Label + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal.Label { get => this._label; set { {_label = value;} } } + + /// Internal Acessors for Version + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesInternal.Version { get => this._version; set { {_version = value;} } } + + /// Backing field for property. + private string _version; + + /// The OS version. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Version { get => this._version; } + + /// Creates an new instance. + public OSVersionProperties() + { + + } + } + /// OS version properties. + public partial interface IOSVersionProperties : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// The family of this OS version. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The family of this OS version.", + SerializedName = @"family", + PossibleTypes = new [] { typeof(string) })] + string Family { get; } + /// The family label of this OS version. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The family label of this OS version.", + SerializedName = @"familyLabel", + PossibleTypes = new [] { typeof(string) })] + string FamilyLabel { get; } + /// Specifies whether this OS version is active. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Specifies whether this OS version is active.", + SerializedName = @"isActive", + PossibleTypes = new [] { typeof(bool) })] + bool? IsActive { get; } + /// Specifies whether this is the default OS version for its family. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Specifies whether this is the default OS version for its family.", + SerializedName = @"isDefault", + PossibleTypes = new [] { typeof(bool) })] + bool? IsDefault { get; } + /// The OS version label. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The OS version label.", + SerializedName = @"label", + PossibleTypes = new [] { typeof(string) })] + string Label { get; } + /// The OS version. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The OS version.", + SerializedName = @"version", + PossibleTypes = new [] { typeof(string) })] + string Version { get; } + + } + /// OS version properties. + internal partial interface IOSVersionPropertiesInternal + + { + /// The family of this OS version. + string Family { get; set; } + /// The family label of this OS version. + string FamilyLabel { get; set; } + /// Specifies whether this OS version is active. + bool? IsActive { get; set; } + /// Specifies whether this is the default OS version for its family. + bool? IsDefault { get; set; } + /// The OS version label. + string Label { get; set; } + /// The OS version. + string Version { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20210301/OSVersionProperties.json.cs b/src/CloudService/generated/api/Models/Api20210301/OSVersionProperties.json.cs new file mode 100644 index 000000000000..fde9ea4baf88 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/OSVersionProperties.json.cs @@ -0,0 +1,129 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// OS version properties. + public partial class OSVersionProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new OSVersionProperties(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal OSVersionProperties(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_family = If( json?.PropertyT("family"), out var __jsonFamily) ? (string)__jsonFamily : (string)Family;} + {_familyLabel = If( json?.PropertyT("familyLabel"), out var __jsonFamilyLabel) ? (string)__jsonFamilyLabel : (string)FamilyLabel;} + {_version = If( json?.PropertyT("version"), out var __jsonVersion) ? (string)__jsonVersion : (string)Version;} + {_label = If( json?.PropertyT("label"), out var __jsonLabel) ? (string)__jsonLabel : (string)Label;} + {_isDefault = If( json?.PropertyT("isDefault"), out var __jsonIsDefault) ? (bool?)__jsonIsDefault : IsDefault;} + {_isActive = If( json?.PropertyT("isActive"), out var __jsonIsActive) ? (bool?)__jsonIsActive : IsActive;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._family)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._family.ToString()) : null, "family" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._familyLabel)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._familyLabel.ToString()) : null, "familyLabel" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._version)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._version.ToString()) : null, "version" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._label)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._label.ToString()) : null, "label" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._isDefault ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonBoolean((bool)this._isDefault) : null, "isDefault" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._isActive ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonBoolean((bool)this._isActive) : null, "isActive" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20210301/OSVersionPropertiesBase.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/OSVersionPropertiesBase.PowerShell.cs new file mode 100644 index 000000000000..f0d5f0217811 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/OSVersionPropertiesBase.PowerShell.cs @@ -0,0 +1,139 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// Configuration view of an OS version. + [System.ComponentModel.TypeConverter(typeof(OSVersionPropertiesBaseTypeConverter))] + public partial class OSVersionPropertiesBase + { + + /// + /// 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.CloudService.Models.Api20210301.IOSVersionPropertiesBase DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new OSVersionPropertiesBase(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.CloudService.Models.Api20210301.IOSVersionPropertiesBase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new OSVersionPropertiesBase(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.CloudService.Models.Api20210301.IOSVersionPropertiesBase FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal OSVersionPropertiesBase(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBaseInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBaseInternal)this).Version, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBaseInternal)this).Label = (string) content.GetValueForProperty("Label",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBaseInternal)this).Label, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBaseInternal)this).IsDefault = (bool?) content.GetValueForProperty("IsDefault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBaseInternal)this).IsDefault, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBaseInternal)this).IsActive = (bool?) content.GetValueForProperty("IsActive",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBaseInternal)this).IsActive, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal OSVersionPropertiesBase(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBaseInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBaseInternal)this).Version, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBaseInternal)this).Label = (string) content.GetValueForProperty("Label",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBaseInternal)this).Label, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBaseInternal)this).IsDefault = (bool?) content.GetValueForProperty("IsDefault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBaseInternal)this).IsDefault, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBaseInternal)this).IsActive = (bool?) content.GetValueForProperty("IsActive",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBaseInternal)this).IsActive, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + 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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Configuration view of an OS version. + [System.ComponentModel.TypeConverter(typeof(OSVersionPropertiesBaseTypeConverter))] + public partial interface IOSVersionPropertiesBase + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20210301/OSVersionPropertiesBase.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/OSVersionPropertiesBase.TypeConverter.cs new file mode 100644 index 000000000000..aeb7dc7571d6 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/OSVersionPropertiesBase.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class OSVersionPropertiesBaseTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter to the parameter using and + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBase ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBase).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return OSVersionPropertiesBase.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return OSVersionPropertiesBase.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return OSVersionPropertiesBase.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20210301/OSVersionPropertiesBase.cs b/src/CloudService/generated/api/Models/Api20210301/OSVersionPropertiesBase.cs new file mode 100644 index 000000000000..ba54536f45c3 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/OSVersionPropertiesBase.cs @@ -0,0 +1,109 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Configuration view of an OS version. + public partial class OSVersionPropertiesBase : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBase, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBaseInternal + { + + /// Backing field for property. + private bool? _isActive; + + /// Specifies whether this OS version is active. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public bool? IsActive { get => this._isActive; } + + /// Backing field for property. + private bool? _isDefault; + + /// Specifies whether this is the default OS version for its family. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public bool? IsDefault { get => this._isDefault; } + + /// Backing field for property. + private string _label; + + /// The OS version label. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Label { get => this._label; } + + /// Internal Acessors for IsActive + bool? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBaseInternal.IsActive { get => this._isActive; set { {_isActive = value;} } } + + /// Internal Acessors for IsDefault + bool? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBaseInternal.IsDefault { get => this._isDefault; set { {_isDefault = value;} } } + + /// Internal Acessors for Label + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBaseInternal.Label { get => this._label; set { {_label = value;} } } + + /// Internal Acessors for Version + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBaseInternal.Version { get => this._version; set { {_version = value;} } } + + /// Backing field for property. + private string _version; + + /// The OS version. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Version { get => this._version; } + + /// Creates an new instance. + public OSVersionPropertiesBase() + { + + } + } + /// Configuration view of an OS version. + public partial interface IOSVersionPropertiesBase : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// Specifies whether this OS version is active. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Specifies whether this OS version is active.", + SerializedName = @"isActive", + PossibleTypes = new [] { typeof(bool) })] + bool? IsActive { get; } + /// Specifies whether this is the default OS version for its family. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Specifies whether this is the default OS version for its family.", + SerializedName = @"isDefault", + PossibleTypes = new [] { typeof(bool) })] + bool? IsDefault { get; } + /// The OS version label. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The OS version label.", + SerializedName = @"label", + PossibleTypes = new [] { typeof(string) })] + string Label { get; } + /// The OS version. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The OS version.", + SerializedName = @"version", + PossibleTypes = new [] { typeof(string) })] + string Version { get; } + + } + /// Configuration view of an OS version. + internal partial interface IOSVersionPropertiesBaseInternal + + { + /// Specifies whether this OS version is active. + bool? IsActive { get; set; } + /// Specifies whether this is the default OS version for its family. + bool? IsDefault { get; set; } + /// The OS version label. + string Label { get; set; } + /// The OS version. + string Version { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20210301/OSVersionPropertiesBase.json.cs b/src/CloudService/generated/api/Models/Api20210301/OSVersionPropertiesBase.json.cs new file mode 100644 index 000000000000..472678a04082 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/OSVersionPropertiesBase.json.cs @@ -0,0 +1,119 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Configuration view of an OS version. + public partial class OSVersionPropertiesBase + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBase. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBase. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersionPropertiesBase FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new OSVersionPropertiesBase(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal OSVersionPropertiesBase(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_version = If( json?.PropertyT("version"), out var __jsonVersion) ? (string)__jsonVersion : (string)Version;} + {_label = If( json?.PropertyT("label"), out var __jsonLabel) ? (string)__jsonLabel : (string)Label;} + {_isDefault = If( json?.PropertyT("isDefault"), out var __jsonIsDefault) ? (bool?)__jsonIsDefault : IsDefault;} + {_isActive = If( json?.PropertyT("isActive"), out var __jsonIsActive) ? (bool?)__jsonIsActive : IsActive;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._version)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._version.ToString()) : null, "version" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._label)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._label.ToString()) : null, "label" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._isDefault ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonBoolean((bool)this._isDefault) : null, "isDefault" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._isActive ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonBoolean((bool)this._isActive) : null, "isActive" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/ResourceInstanceViewStatus.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/ResourceInstanceViewStatus.PowerShell.cs similarity index 62% rename from src/CloudService/generated/api/Models/Api20201001Preview/ResourceInstanceViewStatus.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/ResourceInstanceViewStatus.PowerShell.cs index f2724bb6b5e3..f40aff435ef4 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/ResourceInstanceViewStatus.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/ResourceInstanceViewStatus.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -48,29 +48,29 @@ public partial class ResourceInstanceViewStatus 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.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ResourceInstanceViewStatus(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.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ResourceInstanceViewStatus(content); } @@ -80,10 +80,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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,16 +96,16 @@ internal ResourceInstanceViewStatus(global::System.Collections.IDictionary conte return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).Code, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).DisplayStatus = (string) content.GetValueForProperty("DisplayStatus",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).DisplayStatus, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).Message, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).Time = (global::System.DateTime?) content.GetValueForProperty("Time",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).Time, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).Level = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.StatusLevelTypes?) content.GetValueForProperty("Level",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).Level, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.StatusLevelTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatusInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatusInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatusInternal)this).DisplayStatus = (string) content.GetValueForProperty("DisplayStatus",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatusInternal)this).DisplayStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatusInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatusInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatusInternal)this).Time = (global::System.DateTime?) content.GetValueForProperty("Time",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatusInternal)this).Time, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatusInternal)this).Level = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.StatusLevelTypes?) content.GetValueForProperty("Level",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatusInternal)this).Level, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.StatusLevelTypes.CreateFrom); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -118,11 +118,11 @@ internal ResourceInstanceViewStatus(global::System.Management.Automation.PSObjec return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).Code, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).DisplayStatus = (string) content.GetValueForProperty("DisplayStatus",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).DisplayStatus, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).Message, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).Time = (global::System.DateTime?) content.GetValueForProperty("Time",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).Time, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).Level = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.StatusLevelTypes?) content.GetValueForProperty("Level",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).Level, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.StatusLevelTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatusInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatusInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatusInternal)this).DisplayStatus = (string) content.GetValueForProperty("DisplayStatus",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatusInternal)this).DisplayStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatusInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatusInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatusInternal)this).Time = (global::System.DateTime?) content.GetValueForProperty("Time",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatusInternal)this).Time, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatusInternal)this).Level = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.StatusLevelTypes?) content.GetValueForProperty("Level",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatusInternal)this).Level, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.StatusLevelTypes.CreateFrom); AfterDeserializePSObject(content); } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/ResourceInstanceViewStatus.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/ResourceInstanceViewStatus.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/ResourceInstanceViewStatus.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/ResourceInstanceViewStatus.TypeConverter.cs index f0bcc5b7b0c0..c3b81138fd7f 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/ResourceInstanceViewStatus.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/ResourceInstanceViewStatus.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/ResourceInstanceViewStatus.cs b/src/CloudService/generated/api/Models/Api20210301/ResourceInstanceViewStatus.cs similarity index 90% rename from src/CloudService/generated/api/Models/Api20201001Preview/ResourceInstanceViewStatus.cs rename to src/CloudService/generated/api/Models/Api20210301/ResourceInstanceViewStatus.cs index 4710c38f16eb..62660bd7a3d7 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/ResourceInstanceViewStatus.cs +++ b/src/CloudService/generated/api/Models/Api20210301/ResourceInstanceViewStatus.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; /// Instance view status. public partial class ResourceInstanceViewStatus : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatusInternal { /// Backing field for property. @@ -37,16 +37,16 @@ public partial class ResourceInstanceViewStatus : public string Message { get => this._message; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal.Code { get => this._code; set { {_code = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatusInternal.Code { get => this._code; set { {_code = value;} } } /// Internal Acessors for DisplayStatus - string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal.DisplayStatus { get => this._displayStatus; set { {_displayStatus = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatusInternal.DisplayStatus { get => this._displayStatus; set { {_displayStatus = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal.Message { get => this._message; set { {_message = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatusInternal.Message { get => this._message; set { {_message = value;} } } /// Internal Acessors for Time - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal.Time { get => this._time; set { {_time = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatusInternal.Time { get => this._time; set { {_time = value;} } } /// Backing field for property. private global::System.DateTime? _time; diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/ResourceInstanceViewStatus.json.cs b/src/CloudService/generated/api/Models/Api20210301/ResourceInstanceViewStatus.json.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/ResourceInstanceViewStatus.json.cs rename to src/CloudService/generated/api/Models/Api20210301/ResourceInstanceViewStatus.json.cs index 440ae21650ab..712f4b4d7eb3 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/ResourceInstanceViewStatus.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/ResourceInstanceViewStatus.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class ResourceInstanceViewStatus partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new ResourceInstanceViewStatus(json) : null; } diff --git a/src/CloudService/generated/api/Models/Api20210301/RoleInstance.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/RoleInstance.PowerShell.cs new file mode 100644 index 000000000000..4cfb2504aa36 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/RoleInstance.PowerShell.cs @@ -0,0 +1,159 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(RoleInstanceTypeConverter))] + public partial class RoleInstance + { + + /// + /// 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.CloudService.Models.Api20210301.IRoleInstance DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RoleInstance(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.CloudService.Models.Api20210301.IRoleInstance DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RoleInstance(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.CloudService.Models.Api20210301.IRoleInstance FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RoleInstance(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceSku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.InstanceSkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstancePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstanceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).SkuName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).SkuTier, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).NetworkProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceNetworkProfile) content.GetValueForProperty("NetworkProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).NetworkProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstanceNetworkProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstanceViewTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).NetworkProfileNetworkInterface = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource[]) content.GetValueForProperty("NetworkProfileNetworkInterface",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).NetworkProfileNetworkInterface, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).InstanceViewPlatformUpdateDomain = (int?) content.GetValueForProperty("InstanceViewPlatformUpdateDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).InstanceViewPlatformUpdateDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).InstanceViewPlatformFaultDomain = (int?) content.GetValueForProperty("InstanceViewPlatformFaultDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).InstanceViewPlatformFaultDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).InstanceViewPrivateId = (string) content.GetValueForProperty("InstanceViewPrivateId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).InstanceViewPrivateId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).InstanceViewStatuses = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus[]) content.GetValueForProperty("InstanceViewStatuses",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).InstanceViewStatuses, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ResourceInstanceViewStatusTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RoleInstance(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceSku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.InstanceSkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstancePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstanceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).SkuName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).SkuTier, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).NetworkProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceNetworkProfile) content.GetValueForProperty("NetworkProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).NetworkProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstanceNetworkProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstanceViewTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).NetworkProfileNetworkInterface = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource[]) content.GetValueForProperty("NetworkProfileNetworkInterface",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).NetworkProfileNetworkInterface, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).InstanceViewPlatformUpdateDomain = (int?) content.GetValueForProperty("InstanceViewPlatformUpdateDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).InstanceViewPlatformUpdateDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).InstanceViewPlatformFaultDomain = (int?) content.GetValueForProperty("InstanceViewPlatformFaultDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).InstanceViewPlatformFaultDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).InstanceViewPrivateId = (string) content.GetValueForProperty("InstanceViewPrivateId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).InstanceViewPrivateId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).InstanceViewStatuses = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus[]) content.GetValueForProperty("InstanceViewStatuses",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal)this).InstanceViewStatuses, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ResourceInstanceViewStatusTypeConverter.ConvertFrom)); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(RoleInstanceTypeConverter))] + public partial interface IRoleInstance + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstance.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/RoleInstance.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/RoleInstance.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/RoleInstance.TypeConverter.cs index 02c1c402697e..849e35924f85 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstance.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/RoleInstance.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.IRoleInstance ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstance ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstance).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstance.cs b/src/CloudService/generated/api/Models/Api20210301/RoleInstance.cs similarity index 66% rename from src/CloudService/generated/api/Models/Api20201001Preview/RoleInstance.cs rename to src/CloudService/generated/api/Models/Api20210301/RoleInstance.cs index af5f467823a2..9421af3aecd2 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstance.cs +++ b/src/CloudService/generated/api/Models/Api20210301/RoleInstance.cs @@ -1,10 +1,10 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; public partial class RoleInstance : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstance, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal { /// Backing field for property. @@ -18,12 +18,12 @@ public partial class RoleInstance : /// The Fault Domain. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] - public int? InstanceViewPlatformFaultDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).InstanceViewPlatformFaultDomain; } + public int? InstanceViewPlatformFaultDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)Property).InstanceViewPlatformFaultDomain; } /// The Update Domain. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] - public int? InstanceViewPlatformUpdateDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).InstanceViewPlatformUpdateDomain; } + public int? InstanceViewPlatformUpdateDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)Property).InstanceViewPlatformUpdateDomain; } /// /// Specifies a unique identifier generated internally for the cloud service associated with this role instance.

[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] - public string InstanceViewPrivateId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).InstanceViewPrivateId; } + public string InstanceViewPrivateId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)Property).InstanceViewPrivateId; } [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] InstanceViewStatuses { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).InstanceViewStatuses; } + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus[] InstanceViewStatuses { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)Property).InstanceViewStatuses; } /// Backing field for property. private string _location; @@ -46,52 +46,52 @@ public partial class RoleInstance : public string Location { get => this._location; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for InstanceView - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal.InstanceView { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).InstanceView; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).InstanceView = value; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceView Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal.InstanceView { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)Property).InstanceView; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)Property).InstanceView = value; } /// Internal Acessors for InstanceViewPlatformFaultDomain - int? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal.InstanceViewPlatformFaultDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).InstanceViewPlatformFaultDomain; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).InstanceViewPlatformFaultDomain = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal.InstanceViewPlatformFaultDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)Property).InstanceViewPlatformFaultDomain; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)Property).InstanceViewPlatformFaultDomain = value; } /// Internal Acessors for InstanceViewPlatformUpdateDomain - int? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal.InstanceViewPlatformUpdateDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).InstanceViewPlatformUpdateDomain; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).InstanceViewPlatformUpdateDomain = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal.InstanceViewPlatformUpdateDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)Property).InstanceViewPlatformUpdateDomain; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)Property).InstanceViewPlatformUpdateDomain = value; } /// Internal Acessors for InstanceViewPrivateId - string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal.InstanceViewPrivateId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).InstanceViewPrivateId; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).InstanceViewPrivateId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal.InstanceViewPrivateId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)Property).InstanceViewPrivateId; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)Property).InstanceViewPrivateId = value; } /// Internal Acessors for InstanceViewStatuses - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal.InstanceViewStatuses { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).InstanceViewStatuses; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).InstanceViewStatuses = value; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus[] Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal.InstanceViewStatuses { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)Property).InstanceViewStatuses; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)Property).InstanceViewStatuses = value; } /// Internal Acessors for Location - string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal.Location { get => this._location; set { {_location = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal.Location { get => this._location; set { {_location = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for NetworkProfile - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal.NetworkProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).NetworkProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).NetworkProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceNetworkProfile Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal.NetworkProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)Property).NetworkProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)Property).NetworkProfile = value; } /// Internal Acessors for NetworkProfileNetworkInterface - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[] Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal.NetworkProfileNetworkInterface { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).NetworkProfileNetworkInterface; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).NetworkProfileNetworkInterface = value; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource[] Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal.NetworkProfileNetworkInterface { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)Property).NetworkProfileNetworkInterface; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)Property).NetworkProfileNetworkInterface = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceProperties Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceProperties Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstanceProperties()); set { {_property = value;} } } /// Internal Acessors for Sku - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSku Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InstanceSku()); set { {_sku = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceSku Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.InstanceSku()); set { {_sku = value;} } } /// Internal Acessors for SkuName - string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal.SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSkuInternal)Sku).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal.SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceSkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceSkuInternal)Sku).Name = value; } /// Internal Acessors for SkuTier - string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal.SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSkuInternal)Sku).Tier; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSkuInternal)Sku).Tier = value; } + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal.SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceSkuInternal)Sku).Tier; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceSkuInternal)Sku).Tier = value; } /// Internal Acessors for Tag - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceTags Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal.Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceTags()); set { {_tag = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceTags Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal.Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstanceTags()); set { {_tag = value;} } } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal.Type { get => this._type; set { {_type = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceInternal.Type { get => this._type; set { {_type = value;} } } /// Backing field for property. private string _name; @@ -106,39 +106,39 @@ public partial class RoleInstance : ///
[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[] NetworkProfileNetworkInterface { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).NetworkProfileNetworkInterface; } + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource[] NetworkProfileNetworkInterface { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)Property).NetworkProfileNetworkInterface; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceProperties _property; [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] - internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstanceProperties()); set => this._property = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSku _sku; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceSku _sku; [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] - internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSku Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InstanceSku()); set => this._sku = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceSku Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.InstanceSku()); set => this._sku = value; } /// The sku name. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 2)] - public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSkuInternal)Sku).Name; } + public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceSkuInternal)Sku).Name; } /// The tier of the cloud service role instance. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 3)] - public string SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSkuInternal)Sku).Tier; } + public string SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceSkuInternal)Sku).Tier; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceTags _tag; /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceTags()); } + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstanceTags()); } /// Backing field for property. private string _type; @@ -198,8 +198,8 @@ public partial interface IRoleInstance : ReadOnly = true, Description = @"", SerializedName = @"statuses", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus) })] - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] InstanceViewStatuses { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus[] InstanceViewStatuses { get; } /// Resource Location. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( Required = false, @@ -224,8 +224,8 @@ public partial interface IRoleInstance : ReadOnly = true, Description = @"Specifies the list of resource Ids for the network interfaces associated with the role instance.", SerializedName = @"networkInterfaces", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) })] - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[] NetworkProfileNetworkInterface { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource[] NetworkProfileNetworkInterface { get; } /// The sku name. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( Required = false, @@ -248,8 +248,8 @@ public partial interface IRoleInstance : ReadOnly = true, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceTags) })] - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceTags Tag { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceTags) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceTags Tag { get; } /// Resource Type. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( Required = false, @@ -266,7 +266,7 @@ internal partial interface IRoleInstanceInternal /// Resource Id string Id { get; set; } /// The instance view of the role instance. - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView InstanceView { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceView InstanceView { get; set; } /// The Fault Domain. int? InstanceViewPlatformFaultDomain { get; set; } /// The Update Domain. @@ -277,27 +277,27 @@ internal partial interface IRoleInstanceInternal /// string InstanceViewPrivateId { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] InstanceViewStatuses { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus[] InstanceViewStatuses { get; set; } /// Resource Location. string Location { get; set; } /// Resource Name. string Name { get; set; } /// Describes the network profile for the role instance. - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile NetworkProfile { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceNetworkProfile NetworkProfile { get; set; } /// /// Specifies the list of resource Ids for the network interfaces associated with the role instance. /// - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[] NetworkProfileNetworkInterface { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource[] NetworkProfileNetworkInterface { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceProperties Property { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSku Sku { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IInstanceSku Sku { get; set; } /// The sku name. string SkuName { get; set; } /// The tier of the cloud service role instance. string SkuTier { get; set; } /// Resource tags. - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceTags Tag { get; set; } /// Resource Type. string Type { get; set; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstance.json.cs b/src/CloudService/generated/api/Models/Api20210301/RoleInstance.json.cs similarity index 95% rename from src/CloudService/generated/api/Models/Api20201001Preview/RoleInstance.json.cs rename to src/CloudService/generated/api/Models/Api20210301/RoleInstance.json.cs index 2a63ead86a25..d6cf709593a3 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstance.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/RoleInstance.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -46,13 +46,13 @@ public partial class RoleInstance partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstance. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstance. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstance FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new RoleInstance(json) : null; } @@ -69,13 +69,13 @@ internal RoleInstance(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Js { return; } - {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InstanceSku.FromJson(__jsonSku) : Sku;} - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceProperties.FromJson(__jsonProperties) : Property;} + {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.InstanceSku.FromJson(__jsonSku) : Sku;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstanceProperties.FromJson(__jsonProperties) : Property;} {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceTags.FromJson(__jsonTags) : Tag;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstanceTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceListResult.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceListResult.PowerShell.cs similarity index 71% rename from src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceListResult.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/RoleInstanceListResult.PowerShell.cs index 4c196fac3b45..c0ef8b58fba9 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceListResult.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceListResult.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -47,29 +47,29 @@ public partial class RoleInstanceListResult 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.CloudService.Models.Api20201001Preview.IRoleInstanceListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RoleInstanceListResult(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.CloudService.Models.Api20201001Preview.IRoleInstanceListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RoleInstanceListResult(content); } @@ -79,10 +79,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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. @@ -95,13 +95,13 @@ internal RoleInstanceListResult(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstance[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstanceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceListResultInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -114,8 +114,8 @@ internal RoleInstanceListResult(global::System.Management.Automation.PSObject co return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstance[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstanceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceListResultInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceListResult.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceListResult.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceListResult.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/RoleInstanceListResult.TypeConverter.cs index 2be8b4a56552..3b0634d4b134 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceListResult.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceListResult.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.IRoleInstanceListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceListResult.cs b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceListResult.cs similarity index 82% rename from src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceListResult.cs rename to src/CloudService/generated/api/Models/Api20210301/RoleInstanceListResult.cs index 8d317d548745..c12e14c0fb9a 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceListResult.cs +++ b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceListResult.cs @@ -1,10 +1,10 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; public partial class RoleInstanceListResult : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceListResult, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceListResult, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceListResultInternal { /// Backing field for property. @@ -14,10 +14,10 @@ public partial class RoleInstanceListResult : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstance[] _value; [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstance[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public RoleInstanceListResult() @@ -41,8 +41,8 @@ public partial interface IRoleInstanceListResult : ReadOnly = false, Description = @"", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance) })] - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstance) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstance[] Value { get; set; } } internal partial interface IRoleInstanceListResultInternal @@ -50,7 +50,7 @@ internal partial interface IRoleInstanceListResultInternal { string NextLink { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstance[] Value { get; set; } } } \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceListResult.json.cs b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceListResult.json.cs similarity index 92% rename from src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceListResult.json.cs rename to src/CloudService/generated/api/Models/Api20210301/RoleInstanceListResult.json.cs index b1f3a634fdcb..667bebe866aa 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceListResult.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceListResult.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -46,13 +46,13 @@ public partial class RoleInstanceListResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new RoleInstanceListResult(json) : null; } @@ -69,7 +69,7 @@ internal RoleInstanceListResult(Microsoft.Azure.PowerShell.Cmdlets.CloudService. { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.IRoleInstance) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstance.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20210301.IRoleInstance) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstance.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceNetworkProfile.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceNetworkProfile.PowerShell.cs similarity index 75% rename from src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceNetworkProfile.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/RoleInstanceNetworkProfile.PowerShell.cs index 85c9866387f7..04a875380fe9 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceNetworkProfile.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceNetworkProfile.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -48,29 +48,29 @@ public partial class RoleInstanceNetworkProfile 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.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceNetworkProfile DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RoleInstanceNetworkProfile(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.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceNetworkProfile DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RoleInstanceNetworkProfile(content); } @@ -80,10 +80,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceNetworkProfile FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,12 +96,12 @@ internal RoleInstanceNetworkProfile(global::System.Collections.IDictionary conte return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfileInternal)this).NetworkInterface = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[]) content.GetValueForProperty("NetworkInterface",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfileInternal)this).NetworkInterface, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceNetworkProfileInternal)this).NetworkInterface = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource[]) content.GetValueForProperty("NetworkInterface",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceNetworkProfileInternal)this).NetworkInterface, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResourceTypeConverter.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. @@ -114,7 +114,7 @@ internal RoleInstanceNetworkProfile(global::System.Management.Automation.PSObjec return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfileInternal)this).NetworkInterface = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[]) content.GetValueForProperty("NetworkInterface",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfileInternal)this).NetworkInterface, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceNetworkProfileInternal)this).NetworkInterface = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource[]) content.GetValueForProperty("NetworkInterface",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceNetworkProfileInternal)this).NetworkInterface, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResourceTypeConverter.ConvertFrom)); AfterDeserializePSObject(content); } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceNetworkProfile.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceNetworkProfile.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceNetworkProfile.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/RoleInstanceNetworkProfile.TypeConverter.cs index 9c37d354e387..2cad33287aa9 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceNetworkProfile.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceNetworkProfile.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceNetworkProfile ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceNetworkProfile).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceNetworkProfile.cs b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceNetworkProfile.cs similarity index 77% rename from src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceNetworkProfile.cs rename to src/CloudService/generated/api/Models/Api20210301/RoleInstanceNetworkProfile.cs index 5dd37278fabe..d87eef3aedbf 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceNetworkProfile.cs +++ b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceNetworkProfile.cs @@ -1,24 +1,24 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; /// Describes the network profile for the role instance. public partial class RoleInstanceNetworkProfile : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfileInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceNetworkProfile, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceNetworkProfileInternal { /// Internal Acessors for NetworkInterface - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[] Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfileInternal.NetworkInterface { get => this._networkInterface; set { {_networkInterface = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource[] Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceNetworkProfileInternal.NetworkInterface { get => this._networkInterface; set { {_networkInterface = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[] _networkInterface; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource[] _networkInterface; /// /// Specifies the list of resource Ids for the network interfaces associated with the role instance. /// [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[] NetworkInterface { get => this._networkInterface; } + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource[] NetworkInterface { get => this._networkInterface; } /// Creates an new instance. public RoleInstanceNetworkProfile() @@ -38,8 +38,8 @@ public partial interface IRoleInstanceNetworkProfile : ReadOnly = true, Description = @"Specifies the list of resource Ids for the network interfaces associated with the role instance.", SerializedName = @"networkInterfaces", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) })] - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[] NetworkInterface { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource[] NetworkInterface { get; } } /// Describes the network profile for the role instance. @@ -49,7 +49,7 @@ internal partial interface IRoleInstanceNetworkProfileInternal /// /// Specifies the list of resource Ids for the network interfaces associated with the role instance. /// - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[] NetworkInterface { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource[] NetworkInterface { get; set; } } } \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceNetworkProfile.json.cs b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceNetworkProfile.json.cs similarity index 91% rename from src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceNetworkProfile.json.cs rename to src/CloudService/generated/api/Models/Api20210301/RoleInstanceNetworkProfile.json.cs index e7eff084a3d9..3c2d4539e3a9 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceNetworkProfile.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceNetworkProfile.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class RoleInstanceNetworkProfile partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceNetworkProfile. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceNetworkProfile. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceNetworkProfile FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new RoleInstanceNetworkProfile(json) : null; } @@ -70,7 +70,7 @@ internal RoleInstanceNetworkProfile(Microsoft.Azure.PowerShell.Cmdlets.CloudServ { return; } - {_networkInterface = If( json?.PropertyT("networkInterfaces"), out var __jsonNetworkInterfaces) ? If( __jsonNetworkInterfaces as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.ISubResource) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResource.FromJson(__u) )) ))() : null : NetworkInterface;} + {_networkInterface = If( json?.PropertyT("networkInterfaces"), out var __jsonNetworkInterfaces) ? If( __jsonNetworkInterfaces as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20210301.ISubResource) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResource.FromJson(__u) )) ))() : null : NetworkInterface;} AfterFromJson(json); } diff --git a/src/CloudService/generated/api/Models/Api20210301/RoleInstanceProperties.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceProperties.PowerShell.cs new file mode 100644 index 000000000000..5907c63b3231 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceProperties.PowerShell.cs @@ -0,0 +1,143 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(RoleInstancePropertiesTypeConverter))] + public partial class RoleInstanceProperties + { + + /// + /// 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.CloudService.Models.Api20210301.IRoleInstanceProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RoleInstanceProperties(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.CloudService.Models.Api20210301.IRoleInstanceProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RoleInstanceProperties(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.CloudService.Models.Api20210301.IRoleInstanceProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RoleInstanceProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)this).NetworkProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceNetworkProfile) content.GetValueForProperty("NetworkProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)this).NetworkProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstanceNetworkProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstanceViewTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)this).NetworkProfileNetworkInterface = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource[]) content.GetValueForProperty("NetworkProfileNetworkInterface",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)this).NetworkProfileNetworkInterface, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)this).InstanceViewPlatformUpdateDomain = (int?) content.GetValueForProperty("InstanceViewPlatformUpdateDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)this).InstanceViewPlatformUpdateDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)this).InstanceViewPlatformFaultDomain = (int?) content.GetValueForProperty("InstanceViewPlatformFaultDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)this).InstanceViewPlatformFaultDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)this).InstanceViewPrivateId = (string) content.GetValueForProperty("InstanceViewPrivateId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)this).InstanceViewPrivateId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)this).InstanceViewStatuses = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus[]) content.GetValueForProperty("InstanceViewStatuses",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)this).InstanceViewStatuses, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ResourceInstanceViewStatusTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RoleInstanceProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)this).NetworkProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceNetworkProfile) content.GetValueForProperty("NetworkProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)this).NetworkProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstanceNetworkProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstanceViewTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)this).NetworkProfileNetworkInterface = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource[]) content.GetValueForProperty("NetworkProfileNetworkInterface",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)this).NetworkProfileNetworkInterface, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)this).InstanceViewPlatformUpdateDomain = (int?) content.GetValueForProperty("InstanceViewPlatformUpdateDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)this).InstanceViewPlatformUpdateDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)this).InstanceViewPlatformFaultDomain = (int?) content.GetValueForProperty("InstanceViewPlatformFaultDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)this).InstanceViewPlatformFaultDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)this).InstanceViewPrivateId = (string) content.GetValueForProperty("InstanceViewPrivateId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)this).InstanceViewPrivateId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)this).InstanceViewStatuses = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus[]) content.GetValueForProperty("InstanceViewStatuses",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal)this).InstanceViewStatuses, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ResourceInstanceViewStatusTypeConverter.ConvertFrom)); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(RoleInstancePropertiesTypeConverter))] + public partial interface IRoleInstanceProperties + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceProperties.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceProperties.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceProperties.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/RoleInstanceProperties.TypeConverter.cs index d8389346a07c..70dee76500cf 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceProperties.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceProperties.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.IRoleInstanceProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceProperties.cs b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceProperties.cs similarity index 60% rename from src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceProperties.cs rename to src/CloudService/generated/api/Models/Api20210301/RoleInstanceProperties.cs index 33677555e5ef..605ce2331120 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceProperties.cs +++ b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceProperties.cs @@ -1,70 +1,70 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; public partial class RoleInstanceProperties : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceProperties, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceProperties, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView _instanceView; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceView _instanceView; /// The instance view of the role instance. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView InstanceView { get => (this._instanceView = this._instanceView ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceView()); set => this._instanceView = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceView InstanceView { get => (this._instanceView = this._instanceView ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstanceView()); set => this._instanceView = value; } /// The Fault Domain. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] - public int? InstanceViewPlatformFaultDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)InstanceView).PlatformFaultDomain; } + public int? InstanceViewPlatformFaultDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceViewInternal)InstanceView).PlatformFaultDomain; } /// The Update Domain. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] - public int? InstanceViewPlatformUpdateDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)InstanceView).PlatformUpdateDomain; } + public int? InstanceViewPlatformUpdateDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceViewInternal)InstanceView).PlatformUpdateDomain; } /// /// Specifies a unique identifier generated internally for the cloud service associated with this role instance.

NOTE: If you are using Azure Diagnostics extension, this property can be used as 'DeploymentId' for querying details. ///
[Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] - public string InstanceViewPrivateId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)InstanceView).PrivateId; } + public string InstanceViewPrivateId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceViewInternal)InstanceView).PrivateId; } [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] InstanceViewStatuses { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)InstanceView).Statuses; } + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus[] InstanceViewStatuses { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceViewInternal)InstanceView).Statuses; } /// Internal Acessors for InstanceView - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal.InstanceView { get => (this._instanceView = this._instanceView ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceView()); set { {_instanceView = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceView Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal.InstanceView { get => (this._instanceView = this._instanceView ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstanceView()); set { {_instanceView = value;} } } /// Internal Acessors for InstanceViewPlatformFaultDomain - int? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal.InstanceViewPlatformFaultDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)InstanceView).PlatformFaultDomain; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)InstanceView).PlatformFaultDomain = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal.InstanceViewPlatformFaultDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceViewInternal)InstanceView).PlatformFaultDomain; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceViewInternal)InstanceView).PlatformFaultDomain = value; } /// Internal Acessors for InstanceViewPlatformUpdateDomain - int? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal.InstanceViewPlatformUpdateDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)InstanceView).PlatformUpdateDomain; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)InstanceView).PlatformUpdateDomain = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal.InstanceViewPlatformUpdateDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceViewInternal)InstanceView).PlatformUpdateDomain; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceViewInternal)InstanceView).PlatformUpdateDomain = value; } /// Internal Acessors for InstanceViewPrivateId - string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal.InstanceViewPrivateId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)InstanceView).PrivateId; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)InstanceView).PrivateId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal.InstanceViewPrivateId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceViewInternal)InstanceView).PrivateId; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceViewInternal)InstanceView).PrivateId = value; } /// Internal Acessors for InstanceViewStatuses - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal.InstanceViewStatuses { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)InstanceView).Statuses; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)InstanceView).Statuses = value; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus[] Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal.InstanceViewStatuses { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceViewInternal)InstanceView).Statuses; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceViewInternal)InstanceView).Statuses = value; } /// Internal Acessors for NetworkProfile - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal.NetworkProfile { get => (this._networkProfile = this._networkProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceNetworkProfile()); set { {_networkProfile = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceNetworkProfile Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal.NetworkProfile { get => (this._networkProfile = this._networkProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstanceNetworkProfile()); set { {_networkProfile = value;} } } /// Internal Acessors for NetworkProfileNetworkInterface - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[] Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal.NetworkProfileNetworkInterface { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfileInternal)NetworkProfile).NetworkInterface; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfileInternal)NetworkProfile).NetworkInterface = value; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource[] Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancePropertiesInternal.NetworkProfileNetworkInterface { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceNetworkProfileInternal)NetworkProfile).NetworkInterface; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceNetworkProfileInternal)NetworkProfile).NetworkInterface = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile _networkProfile; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceNetworkProfile _networkProfile; /// Describes the network profile for the role instance. [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile NetworkProfile { get => (this._networkProfile = this._networkProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceNetworkProfile()); set => this._networkProfile = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceNetworkProfile NetworkProfile { get => (this._networkProfile = this._networkProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstanceNetworkProfile()); set => this._networkProfile = value; } /// /// Specifies the list of resource Ids for the network interfaces associated with the role instance. /// [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[] NetworkProfileNetworkInterface { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfileInternal)NetworkProfile).NetworkInterface; } + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource[] NetworkProfileNetworkInterface { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceNetworkProfileInternal)NetworkProfile).NetworkInterface; } /// Creates an new instance. public RoleInstanceProperties() @@ -108,8 +108,8 @@ public partial interface IRoleInstanceProperties : ReadOnly = true, Description = @"", SerializedName = @"statuses", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus) })] - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] InstanceViewStatuses { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus[] InstanceViewStatuses { get; } /// /// Specifies the list of resource Ids for the network interfaces associated with the role instance. /// @@ -118,15 +118,15 @@ public partial interface IRoleInstanceProperties : ReadOnly = true, Description = @"Specifies the list of resource Ids for the network interfaces associated with the role instance.", SerializedName = @"networkInterfaces", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) })] - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[] NetworkProfileNetworkInterface { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource[] NetworkProfileNetworkInterface { get; } } internal partial interface IRoleInstancePropertiesInternal { /// The instance view of the role instance. - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView InstanceView { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceView InstanceView { get; set; } /// The Fault Domain. int? InstanceViewPlatformFaultDomain { get; set; } /// The Update Domain. @@ -137,13 +137,13 @@ internal partial interface IRoleInstancePropertiesInternal /// string InstanceViewPrivateId { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] InstanceViewStatuses { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus[] InstanceViewStatuses { get; set; } /// Describes the network profile for the role instance. - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile NetworkProfile { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceNetworkProfile NetworkProfile { get; set; } /// /// Specifies the list of resource Ids for the network interfaces associated with the role instance. /// - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[] NetworkProfileNetworkInterface { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource[] NetworkProfileNetworkInterface { get; set; } } } \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceProperties.json.cs b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceProperties.json.cs similarity index 93% rename from src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceProperties.json.cs rename to src/CloudService/generated/api/Models/Api20210301/RoleInstanceProperties.json.cs index b61aa12ee697..519131059f5c 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceProperties.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceProperties.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -46,13 +46,13 @@ public partial class RoleInstanceProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new RoleInstanceProperties(json) : null; } @@ -69,8 +69,8 @@ internal RoleInstanceProperties(Microsoft.Azure.PowerShell.Cmdlets.CloudService. { return; } - {_networkProfile = If( json?.PropertyT("networkProfile"), out var __jsonNetworkProfile) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceNetworkProfile.FromJson(__jsonNetworkProfile) : NetworkProfile;} - {_instanceView = If( json?.PropertyT("instanceView"), out var __jsonInstanceView) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceView.FromJson(__jsonInstanceView) : InstanceView;} + {_networkProfile = If( json?.PropertyT("networkProfile"), out var __jsonNetworkProfile) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstanceNetworkProfile.FromJson(__jsonNetworkProfile) : NetworkProfile;} + {_instanceView = If( json?.PropertyT("instanceView"), out var __jsonInstanceView) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstanceView.FromJson(__jsonInstanceView) : InstanceView;} AfterFromJson(json); } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceTags.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceTags.PowerShell.cs similarity index 87% rename from src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceTags.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/RoleInstanceTags.PowerShell.cs index 2dfedb6fa984..25116eabc98a 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceTags.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceTags.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -48,29 +48,27 @@ public partial class RoleInstanceTags 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.CloudService.Models.Api20201001Preview.IRoleInstanceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RoleInstanceTags(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.CloudService.Models.Api20201001Preview.IRoleInstanceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RoleInstanceTags(content); } @@ -80,10 +78,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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. @@ -102,7 +100,7 @@ internal RoleInstanceTags(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/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceTags.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceTags.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceTags.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/RoleInstanceTags.TypeConverter.cs index 417a483d0f70..f36fb518f265 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceTags.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceTags.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.IRoleInstanceTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceTags.cs b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceTags.cs similarity index 89% rename from src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceTags.cs rename to src/CloudService/generated/api/Models/Api20210301/RoleInstanceTags.cs index f3628204ccd4..ec3911be4c95 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceTags.cs +++ b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceTags.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; /// Resource tags. public partial class RoleInstanceTags : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceTags, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceTags, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceTagsInternal { /// Creates an new instance. diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceTags.dictionary.cs b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceTags.dictionary.cs similarity index 96% rename from src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceTags.dictionary.cs rename to src/CloudService/generated/api/Models/Api20210301/RoleInstanceTags.dictionary.cs index 52074f7568a3..e5b2922c1830 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceTags.dictionary.cs +++ b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceTags.dictionary.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.RoleInstanceTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstanceTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceTags.json.cs b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceTags.json.cs similarity index 96% rename from src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceTags.json.cs rename to src/CloudService/generated/api/Models/Api20210301/RoleInstanceTags.json.cs index c5d03635bd69..8b908a170a60 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceTags.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceTags.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class RoleInstanceTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new RoleInstanceTags(json) : null; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceView.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceView.PowerShell.cs similarity index 63% rename from src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceView.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/RoleInstanceView.PowerShell.cs index dba224cb898a..7f591de4979a 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceView.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceView.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -48,29 +48,27 @@ public partial class RoleInstanceView 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.CloudService.Models.Api20201001Preview.IRoleInstanceView DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceView DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RoleInstanceView(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.CloudService.Models.Api20201001Preview.IRoleInstanceView DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceView DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RoleInstanceView(content); } @@ -80,10 +78,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceView FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 +94,15 @@ internal RoleInstanceView(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)this).PlatformUpdateDomain = (int?) content.GetValueForProperty("PlatformUpdateDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)this).PlatformUpdateDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)this).PlatformFaultDomain = (int?) content.GetValueForProperty("PlatformFaultDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)this).PlatformFaultDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)this).PrivateId = (string) content.GetValueForProperty("PrivateId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)this).PrivateId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)this).Statuses = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[]) content.GetValueForProperty("Statuses",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)this).Statuses, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ResourceInstanceViewStatusTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceViewInternal)this).PlatformUpdateDomain = (int?) content.GetValueForProperty("PlatformUpdateDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceViewInternal)this).PlatformUpdateDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceViewInternal)this).PlatformFaultDomain = (int?) content.GetValueForProperty("PlatformFaultDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceViewInternal)this).PlatformFaultDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceViewInternal)this).PrivateId = (string) content.GetValueForProperty("PrivateId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceViewInternal)this).PrivateId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceViewInternal)this).Statuses = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus[]) content.GetValueForProperty("Statuses",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceViewInternal)this).Statuses, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ResourceInstanceViewStatusTypeConverter.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. @@ -117,10 +115,10 @@ internal RoleInstanceView(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)this).PlatformUpdateDomain = (int?) content.GetValueForProperty("PlatformUpdateDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)this).PlatformUpdateDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)this).PlatformFaultDomain = (int?) content.GetValueForProperty("PlatformFaultDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)this).PlatformFaultDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)this).PrivateId = (string) content.GetValueForProperty("PrivateId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)this).PrivateId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)this).Statuses = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[]) content.GetValueForProperty("Statuses",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)this).Statuses, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ResourceInstanceViewStatusTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceViewInternal)this).PlatformUpdateDomain = (int?) content.GetValueForProperty("PlatformUpdateDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceViewInternal)this).PlatformUpdateDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceViewInternal)this).PlatformFaultDomain = (int?) content.GetValueForProperty("PlatformFaultDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceViewInternal)this).PlatformFaultDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceViewInternal)this).PrivateId = (string) content.GetValueForProperty("PrivateId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceViewInternal)this).PrivateId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceViewInternal)this).Statuses = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus[]) content.GetValueForProperty("Statuses",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceViewInternal)this).Statuses, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ResourceInstanceViewStatusTypeConverter.ConvertFrom)); AfterDeserializePSObject(content); } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceView.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceView.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceView.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/RoleInstanceView.TypeConverter.cs index 48d570f024ce..c5c5e33db49c 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceView.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceView.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.IRoleInstanceView ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceView ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceView).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceView.cs b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceView.cs similarity index 84% rename from src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceView.cs rename to src/CloudService/generated/api/Models/Api20210301/RoleInstanceView.cs index 76bce48bf8b3..6e9ae6419501 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceView.cs +++ b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceView.cs @@ -1,24 +1,24 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; /// The instance view of the role instance. public partial class RoleInstanceView : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceView, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceViewInternal { /// Internal Acessors for PlatformFaultDomain - int? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal.PlatformFaultDomain { get => this._platformFaultDomain; set { {_platformFaultDomain = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceViewInternal.PlatformFaultDomain { get => this._platformFaultDomain; set { {_platformFaultDomain = value;} } } /// Internal Acessors for PlatformUpdateDomain - int? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal.PlatformUpdateDomain { get => this._platformUpdateDomain; set { {_platformUpdateDomain = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceViewInternal.PlatformUpdateDomain { get => this._platformUpdateDomain; set { {_platformUpdateDomain = value;} } } /// Internal Acessors for PrivateId - string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal.PrivateId { get => this._privateId; set { {_privateId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceViewInternal.PrivateId { get => this._privateId; set { {_privateId = value;} } } /// Internal Acessors for Statuses - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal.Statuses { get => this._statuses; set { {_statuses = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus[] Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceViewInternal.Statuses { get => this._statuses; set { {_statuses = value;} } } /// Backing field for property. private int? _platformFaultDomain; @@ -48,11 +48,11 @@ public partial class RoleInstanceView : public string PrivateId { get => this._privateId; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] _statuses; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus[] _statuses; [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 0)] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] Statuses { get => this._statuses; } + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus[] Statuses { get => this._statuses; } /// Creates an new instance. public RoleInstanceView() @@ -97,8 +97,8 @@ public partial interface IRoleInstanceView : ReadOnly = true, Description = @"", SerializedName = @"statuses", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus) })] - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] Statuses { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus[] Statuses { get; } } /// The instance view of the role instance. @@ -115,7 +115,7 @@ internal partial interface IRoleInstanceViewInternal /// string PrivateId { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] Statuses { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IResourceInstanceViewStatus[] Statuses { get; set; } } } \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceView.json.cs b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceView.json.cs similarity index 93% rename from src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceView.json.cs rename to src/CloudService/generated/api/Models/Api20210301/RoleInstanceView.json.cs index 98d29b5829f3..3122221da0d7 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceView.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/RoleInstanceView.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class RoleInstanceView partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceView. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceView. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceView FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new RoleInstanceView(json) : null; } @@ -73,7 +73,7 @@ internal RoleInstanceView(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtim {_platformUpdateDomain = If( json?.PropertyT("platformUpdateDomain"), out var __jsonPlatformUpdateDomain) ? (int?)__jsonPlatformUpdateDomain : PlatformUpdateDomain;} {_platformFaultDomain = If( json?.PropertyT("platformFaultDomain"), out var __jsonPlatformFaultDomain) ? (int?)__jsonPlatformFaultDomain : PlatformFaultDomain;} {_privateId = If( json?.PropertyT("privateId"), out var __jsonPrivateId) ? (string)__jsonPrivateId : (string)PrivateId;} - {_statuses = If( json?.PropertyT("statuses"), out var __jsonStatuses) ? If( __jsonStatuses as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ResourceInstanceViewStatus.FromJson(__u) )) ))() : null : Statuses;} + {_statuses = If( json?.PropertyT("statuses"), out var __jsonStatuses) ? If( __jsonStatuses as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20210301.IResourceInstanceViewStatus) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ResourceInstanceViewStatus.FromJson(__u) )) ))() : null : Statuses;} AfterFromJson(json); } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstances.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/RoleInstances.PowerShell.cs similarity index 81% rename from src/CloudService/generated/api/Models/Api20201001Preview/RoleInstances.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/RoleInstances.PowerShell.cs index 6b6a615b1e70..79faaf45b292 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstances.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/RoleInstances.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -48,27 +48,27 @@ public partial class RoleInstances 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.CloudService.Models.Api20201001Preview.IRoleInstances DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RoleInstances(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.CloudService.Models.Api20201001Preview.IRoleInstances DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RoleInstances(content); } @@ -78,10 +78,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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,12 +94,12 @@ internal RoleInstances(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancesInternal)this).RoleInstance = (string[]) content.GetValueForProperty("RoleInstance",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancesInternal)this).RoleInstance, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancesInternal)this).RoleInstance = (string[]) content.GetValueForProperty("RoleInstance",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancesInternal)this).RoleInstance, __y => TypeConverterExtensions.SelectToArray(__y, 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. @@ -112,7 +112,7 @@ internal RoleInstances(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancesInternal)this).RoleInstance = (string[]) content.GetValueForProperty("RoleInstance",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancesInternal)this).RoleInstance, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancesInternal)this).RoleInstance = (string[]) content.GetValueForProperty("RoleInstance",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancesInternal)this).RoleInstance, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); AfterDeserializePSObject(content); } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstances.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/RoleInstances.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/RoleInstances.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/RoleInstances.TypeConverter.cs index f63de11eada7..ce61d6816b9f 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstances.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/RoleInstances.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.IRoleInstances ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstances.cs b/src/CloudService/generated/api/Models/Api20210301/RoleInstances.cs similarity index 95% rename from src/CloudService/generated/api/Models/Api20201001Preview/RoleInstances.cs rename to src/CloudService/generated/api/Models/Api20210301/RoleInstances.cs index b2e9607c523f..7d5f356a98ca 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstances.cs +++ b/src/CloudService/generated/api/Models/Api20210301/RoleInstances.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; /// Specifies a list of role instances from the cloud service. public partial class RoleInstances : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancesInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstancesInternal { /// Backing field for property. diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstances.json.cs b/src/CloudService/generated/api/Models/Api20210301/RoleInstances.json.cs similarity index 96% rename from src/CloudService/generated/api/Models/Api20201001Preview/RoleInstances.json.cs rename to src/CloudService/generated/api/Models/Api20210301/RoleInstances.json.cs index 12d190288c49..1201c9e561db 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstances.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/RoleInstances.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class RoleInstances partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new RoleInstances(json) : null; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/StatusCodeCount.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/StatusCodeCount.PowerShell.cs similarity index 76% rename from src/CloudService/generated/api/Models/Api20201001Preview/StatusCodeCount.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/StatusCodeCount.PowerShell.cs index f238d128abe0..647afc465cd7 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/StatusCodeCount.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/StatusCodeCount.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -47,29 +47,27 @@ public partial class StatusCodeCount 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.CloudService.Models.Api20201001Preview.IStatusCodeCount DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCount DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new StatusCodeCount(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.CloudService.Models.Api20201001Preview.IStatusCodeCount DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCount DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new StatusCodeCount(content); } @@ -79,10 +77,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCount FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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. @@ -95,13 +93,13 @@ internal StatusCodeCount(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCountInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCountInternal)this).Code, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCountInternal)this).Count = (int?) content.GetValueForProperty("Count",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCountInternal)this).Count, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCountInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCountInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCountInternal)this).Count = (int?) content.GetValueForProperty("Count",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCountInternal)this).Count, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -114,8 +112,8 @@ internal StatusCodeCount(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCountInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCountInternal)this).Code, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCountInternal)this).Count = (int?) content.GetValueForProperty("Count",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCountInternal)this).Count, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCountInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCountInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCountInternal)this).Count = (int?) content.GetValueForProperty("Count",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCountInternal)this).Count, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); AfterDeserializePSObject(content); } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/StatusCodeCount.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/StatusCodeCount.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/StatusCodeCount.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/StatusCodeCount.TypeConverter.cs index 1c24ea259d80..5e9ff35433e8 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/StatusCodeCount.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/StatusCodeCount.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.IStatusCodeCount ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCount ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCount).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/StatusCodeCount.cs b/src/CloudService/generated/api/Models/Api20210301/StatusCodeCount.cs similarity index 89% rename from src/CloudService/generated/api/Models/Api20201001Preview/StatusCodeCount.cs rename to src/CloudService/generated/api/Models/Api20210301/StatusCodeCount.cs index 3c8441015cad..5e27b0f528ea 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/StatusCodeCount.cs +++ b/src/CloudService/generated/api/Models/Api20210301/StatusCodeCount.cs @@ -1,10 +1,10 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; public partial class StatusCodeCount : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCountInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCount, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCountInternal { /// Backing field for property. @@ -22,10 +22,10 @@ public partial class StatusCodeCount : public int? Count { get => this._count; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCountInternal.Code { get => this._code; set { {_code = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCountInternal.Code { get => this._code; set { {_code = value;} } } /// Internal Acessors for Count - int? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCountInternal.Count { get => this._count; set { {_count = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCountInternal.Count { get => this._count; set { {_count = value;} } } /// Creates an new instance. public StatusCodeCount() diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/StatusCodeCount.json.cs b/src/CloudService/generated/api/Models/Api20210301/StatusCodeCount.json.cs similarity index 96% rename from src/CloudService/generated/api/Models/Api20201001Preview/StatusCodeCount.json.cs rename to src/CloudService/generated/api/Models/Api20210301/StatusCodeCount.json.cs index 0103e8c0962f..881040d697a0 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/StatusCodeCount.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/StatusCodeCount.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -46,13 +46,13 @@ public partial class StatusCodeCount partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCount. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCount. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IStatusCodeCount FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new StatusCodeCount(json) : null; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/SubResource.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/SubResource.PowerShell.cs similarity index 82% rename from src/CloudService/generated/api/Models/Api20201001Preview/SubResource.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/SubResource.PowerShell.cs index 38b09a577eee..aea022c1ef75 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/SubResource.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/SubResource.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -47,27 +47,27 @@ public partial class SubResource 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.CloudService.Models.Api20201001Preview.ISubResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SubResource(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.CloudService.Models.Api20201001Preview.ISubResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SubResource(content); } @@ -77,10 +77,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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,12 +93,12 @@ internal SubResource(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResourceInternal)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. @@ -111,7 +111,7 @@ internal SubResource(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResourceInternal)this).Id, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/SubResource.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/SubResource.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/SubResource.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/SubResource.TypeConverter.cs index 27dd937bfe57..114e72e15632 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/SubResource.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/SubResource.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.ISubResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/SubResource.cs b/src/CloudService/generated/api/Models/Api20210301/SubResource.cs similarity index 93% rename from src/CloudService/generated/api/Models/Api20201001Preview/SubResource.cs rename to src/CloudService/generated/api/Models/Api20210301/SubResource.cs index cc29ff32e830..9ad6577cd55f 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/SubResource.cs +++ b/src/CloudService/generated/api/Models/Api20210301/SubResource.cs @@ -1,10 +1,10 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; public partial class SubResource : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResourceInternal { /// Backing field for property. diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/SubResource.json.cs b/src/CloudService/generated/api/Models/Api20210301/SubResource.json.cs similarity index 96% rename from src/CloudService/generated/api/Models/Api20201001Preview/SubResource.json.cs rename to src/CloudService/generated/api/Models/Api20210301/SubResource.json.cs index d6ba64b2a2d0..da52a7a8a036 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/SubResource.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/SubResource.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -46,13 +46,13 @@ public partial class SubResource partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISubResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new SubResource(json) : null; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomain.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/UpdateDomain.PowerShell.cs similarity index 78% rename from src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomain.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/UpdateDomain.PowerShell.cs index a96035958da5..d76984006bc3 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomain.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/UpdateDomain.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -48,27 +48,27 @@ public partial class UpdateDomain 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.CloudService.Models.Api20201001Preview.IUpdateDomain DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomain DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new UpdateDomain(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.CloudService.Models.Api20201001Preview.IUpdateDomain DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomain DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new UpdateDomain(content); } @@ -78,7 +78,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomain FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -86,7 +86,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CloudService.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,13 +99,13 @@ internal UpdateDomain(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomainInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomainInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomainInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomainInternal)this).Name, 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. @@ -118,8 +118,8 @@ internal UpdateDomain(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomainInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomainInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomainInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomainInternal)this).Name, global::System.Convert.ToString); AfterDeserializePSObject(content); } } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomain.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/UpdateDomain.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomain.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/UpdateDomain.TypeConverter.cs index 0b56aacd513f..e8dea5d34fea 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomain.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/UpdateDomain.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.IUpdateDomain ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomain ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomain).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomain.cs b/src/CloudService/generated/api/Models/Api20210301/UpdateDomain.cs similarity index 89% rename from src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomain.cs rename to src/CloudService/generated/api/Models/Api20210301/UpdateDomain.cs index 971637ad04c8..2b7604e215e5 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomain.cs +++ b/src/CloudService/generated/api/Models/Api20210301/UpdateDomain.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; /// Defines an update domain for the cloud service. public partial class UpdateDomain : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomain, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomainInternal { /// Backing field for property. @@ -16,10 +16,10 @@ public partial class UpdateDomain : public string Id { get => this._id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomainInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomainInternal.Name { get => this._name; set { {_name = value;} } } /// Backing field for property. private string _name; diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomain.json.cs b/src/CloudService/generated/api/Models/Api20210301/UpdateDomain.json.cs similarity index 96% rename from src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomain.json.cs rename to src/CloudService/generated/api/Models/Api20210301/UpdateDomain.json.cs index 6ff6fb7b6f12..2c5daeedb977 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomain.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/UpdateDomain.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class UpdateDomain partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomain. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomain. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomain FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new UpdateDomain(json) : null; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomainListResult.PowerShell.cs b/src/CloudService/generated/api/Models/Api20210301/UpdateDomainListResult.PowerShell.cs similarity index 71% rename from src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomainListResult.PowerShell.cs rename to src/CloudService/generated/api/Models/Api20210301/UpdateDomainListResult.PowerShell.cs index 2fd5d8e97691..4a2c9a145b74 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomainListResult.PowerShell.cs +++ b/src/CloudService/generated/api/Models/Api20210301/UpdateDomainListResult.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; @@ -47,29 +47,29 @@ public partial class UpdateDomainListResult 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.CloudService.Models.Api20201001Preview.IUpdateDomainListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomainListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new UpdateDomainListResult(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.CloudService.Models.Api20201001Preview.IUpdateDomainListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomainListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new UpdateDomainListResult(content); } @@ -79,7 +79,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomainListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -87,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001 public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CloudService.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. @@ -100,13 +100,13 @@ internal UpdateDomainListResult(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.UpdateDomainTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomainListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomain[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomainListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.UpdateDomainTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomainListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomainListResultInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -119,8 +119,8 @@ internal UpdateDomainListResult(global::System.Management.Automation.PSObject co return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.UpdateDomainTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomainListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomain[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomainListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.UpdateDomainTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomainListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomainListResultInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializePSObject(content); } } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomainListResult.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20210301/UpdateDomainListResult.TypeConverter.cs similarity index 97% rename from src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomainListResult.TypeConverter.cs rename to src/CloudService/generated/api/Models/Api20210301/UpdateDomainListResult.TypeConverter.cs index 7a774fa6734e..997d27e2c047 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomainListResult.TypeConverter.cs +++ b/src/CloudService/generated/api/Models/Api20210301/UpdateDomainListResult.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.IUpdateDomainListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomainListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomainListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomainListResult.cs b/src/CloudService/generated/api/Models/Api20210301/UpdateDomainListResult.cs similarity index 82% rename from src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomainListResult.cs rename to src/CloudService/generated/api/Models/Api20210301/UpdateDomainListResult.cs index 82c1d7f619cb..521a8fde0cc3 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomainListResult.cs +++ b/src/CloudService/generated/api/Models/Api20210301/UpdateDomainListResult.cs @@ -1,10 +1,10 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; public partial class UpdateDomainListResult : - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainListResult, - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomainListResult, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomainListResultInternal { /// Backing field for property. @@ -14,10 +14,10 @@ public partial class UpdateDomainListResult : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomain[] _value; [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomain[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public UpdateDomainListResult() @@ -41,8 +41,8 @@ public partial interface IUpdateDomainListResult : ReadOnly = false, Description = @"", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain) })] - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomain) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomain[] Value { get; set; } } internal partial interface IUpdateDomainListResultInternal @@ -50,7 +50,7 @@ internal partial interface IUpdateDomainListResultInternal { string NextLink { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomain[] Value { get; set; } } } \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomainListResult.json.cs b/src/CloudService/generated/api/Models/Api20210301/UpdateDomainListResult.json.cs similarity index 92% rename from src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomainListResult.json.cs rename to src/CloudService/generated/api/Models/Api20210301/UpdateDomainListResult.json.cs index 8518cb7da636..2f52e0188c10 100644 --- a/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomainListResult.json.cs +++ b/src/CloudService/generated/api/Models/Api20210301/UpdateDomainListResult.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301 { using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; @@ -46,13 +46,13 @@ public partial class UpdateDomainListResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomainListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomainListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomainListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new UpdateDomainListResult(json) : null; } @@ -102,7 +102,7 @@ internal UpdateDomainListResult(Microsoft.Azure.PowerShell.Cmdlets.CloudService. { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.IUpdateDomain) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.UpdateDomain.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20210301.IUpdateDomain) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.UpdateDomain.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/CloudService/generated/api/Models/CloudServiceIdentity.PowerShell.cs b/src/CloudService/generated/api/Models/CloudServiceIdentity.PowerShell.cs index 66ec48621346..360dac0e6db6 100644 --- a/src/CloudService/generated/api/Models/CloudServiceIdentity.PowerShell.cs +++ b/src/CloudService/generated/api/Models/CloudServiceIdentity.PowerShell.cs @@ -71,6 +71,9 @@ internal CloudServiceIdentity(global::System.Collections.IDictionary content) ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).SubscriptionId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).RoleName = (string) content.GetValueForProperty("RoleName",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).RoleName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).UpdateDomain = (int?) content.GetValueForProperty("UpdateDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).UpdateDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).OSVersionName = (string) content.GetValueForProperty("OSVersionName",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).OSVersionName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).OSFamilyName = (string) content.GetValueForProperty("OSFamilyName",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).OSFamilyName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).Id, global::System.Convert.ToString); AfterDeserializeDictionary(content); } @@ -95,6 +98,9 @@ internal CloudServiceIdentity(global::System.Management.Automation.PSObject cont ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).SubscriptionId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).RoleName = (string) content.GetValueForProperty("RoleName",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).RoleName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).UpdateDomain = (int?) content.GetValueForProperty("UpdateDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).UpdateDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).OSVersionName = (string) content.GetValueForProperty("OSVersionName",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).OSVersionName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).OSFamilyName = (string) content.GetValueForProperty("OSFamilyName",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).OSFamilyName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).Id, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/CloudService/generated/api/Models/CloudServiceIdentity.cs b/src/CloudService/generated/api/Models/CloudServiceIdentity.cs index 116b240e4b46..9296e2a63369 100644 --- a/src/CloudService/generated/api/Models/CloudServiceIdentity.cs +++ b/src/CloudService/generated/api/Models/CloudServiceIdentity.cs @@ -25,6 +25,27 @@ public partial class CloudServiceIdentity : [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] public string Id { get => this._id; set => this._id = value; } + /// Backing field for property. + private string _location; + + /// Name of the location that the OS version pertains to. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } + + /// Backing field for property. + private string _oSFamilyName; + + /// Name of the OS family. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string OSFamilyName { get => this._oSFamilyName; set => this._oSFamilyName = value; } + + /// Backing field for property. + private string _oSVersionName; + + /// Name of the OS version. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string OSVersionName { get => this._oSVersionName; set => this._oSVersionName = value; } + /// Backing field for property. private string _resourceGroupName; @@ -89,6 +110,30 @@ public partial interface ICloudServiceIdentity : SerializedName = @"id", PossibleTypes = new [] { typeof(string) })] string Id { get; set; } + /// Name of the location that the OS version pertains to. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Name of the location that the OS version pertains to.", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } + /// Name of the OS family. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Name of the OS family.", + SerializedName = @"osFamilyName", + PossibleTypes = new [] { typeof(string) })] + string OSFamilyName { get; set; } + /// Name of the OS version. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Name of the OS version.", + SerializedName = @"osVersionName", + PossibleTypes = new [] { typeof(string) })] + string OSVersionName { get; set; } [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( Required = false, @@ -143,6 +188,12 @@ internal partial interface ICloudServiceIdentityInternal string CloudServiceName { get; set; } /// Resource identity path string Id { get; set; } + /// Name of the location that the OS version pertains to. + string Location { get; set; } + /// Name of the OS family. + string OSFamilyName { get; set; } + /// Name of the OS version. + string OSVersionName { get; set; } string ResourceGroupName { get; set; } /// Name of the role instance. diff --git a/src/CloudService/generated/api/Models/CloudServiceIdentity.json.cs b/src/CloudService/generated/api/Models/CloudServiceIdentity.json.cs index 5a464c423df8..c9cfe8e16076 100644 --- a/src/CloudService/generated/api/Models/CloudServiceIdentity.json.cs +++ b/src/CloudService/generated/api/Models/CloudServiceIdentity.json.cs @@ -68,6 +68,9 @@ internal CloudServiceIdentity(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Ru {_subscriptionId = If( json?.PropertyT("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)SubscriptionId;} {_roleName = If( json?.PropertyT("roleName"), out var __jsonRoleName) ? (string)__jsonRoleName : (string)RoleName;} {_updateDomain = If( json?.PropertyT("updateDomain"), out var __jsonUpdateDomain) ? (int?)__jsonUpdateDomain : UpdateDomain;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} + {_oSVersionName = If( json?.PropertyT("osVersionName"), out var __jsonOSVersionName) ? (string)__jsonOSVersionName : (string)OSVersionName;} + {_oSFamilyName = If( json?.PropertyT("osFamilyName"), out var __jsonOSFamilyName) ? (string)__jsonOSFamilyName : (string)OSFamilyName;} {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} AfterFromJson(json); } @@ -109,6 +112,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJ AddIf( null != (((object)this._subscriptionId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._subscriptionId.ToString()) : null, "subscriptionId" ,container.Add ); AddIf( null != (((object)this._roleName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._roleName.ToString()) : null, "roleName" ,container.Add ); AddIf( null != this._updateDomain ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNumber((int)this._updateDomain) : null, "updateDomain" ,container.Add ); + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); + AddIf( null != (((object)this._oSVersionName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._oSVersionName.ToString()) : null, "osVersionName" ,container.Add ); + AddIf( null != (((object)this._oSFamilyName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._oSFamilyName.ToString()) : null, "osFamilyName" ,container.Add ); AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); AfterToJson(ref container); return container; diff --git a/src/CloudService/generated/cmdlets/GetAzCloudServiceInstanceView_Get.cs b/src/CloudService/generated/cmdlets/GetAzCloudServiceInstanceView_Get.cs index af220ced463e..661658e2a58a 100644 --- a/src/CloudService/generated/cmdlets/GetAzCloudServiceInstanceView_Get.cs +++ b/src/CloudService/generated/cmdlets/GetAzCloudServiceInstanceView_Get.cs @@ -12,7 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets /// [OpenAPI] GetInstanceView=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/instanceView" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudServiceInstanceView_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceView))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceView))] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Gets the status of a cloud service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] public partial class GetAzCloudServiceInstanceView_Get : global::System.Management.Automation.PSCmdlet, @@ -147,24 +147,24 @@ public partial class GetAzCloudServiceInstanceView_Get : global::System.Manageme /// 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) @@ -336,12 +336,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 ) { @@ -358,7 +358,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.CloudService.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, CloudServiceName=CloudServiceName, SubscriptionId=SubscriptionId }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -376,12 +376,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -393,7 +393,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceView + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceView WriteObject((await response)); } } diff --git a/src/CloudService/generated/cmdlets/GetAzCloudServiceOSFamily_Get.cs b/src/CloudService/generated/cmdlets/GetAzCloudServiceOSFamily_Get.cs new file mode 100644 index 000000000000..6fa687c9ab67 --- /dev/null +++ b/src/CloudService/generated/cmdlets/GetAzCloudServiceOSFamily_Get.cs @@ -0,0 +1,404 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// + /// Gets properties of a guest operating system family that can be specified in the XML service configuration (.cscfg) for + /// a cloud service. + /// + /// + /// [OpenAPI] GetOSFamily=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies/{osFamilyName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudServiceOSFamily_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamily))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Gets properties of a guest operating system family that can be specified in the XML service configuration (.cscfg) for a cloud service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class GetAzCloudServiceOSFamily_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// 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.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _location; + + /// Name of the location that the OS family pertains to. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the location that the OS family pertains to.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the location that the OS family pertains to.", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string Location { get => this._location; set => this._location = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _oSFamilyName; + + /// Name of the OS family. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the OS family.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the OS family.", + SerializedName = @"osFamilyName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string OSFamilyName { get => this._oSFamilyName; set => this._oSFamilyName = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI + /// for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzCloudServiceOSFamily_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CloudServiceOperatingSystemsGetOSFamily(Location, OSFamilyName, SubscriptionId, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Location=Location,OSFamilyName=OSFamilyName,SubscriptionId=SubscriptionId}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Location=Location, OSFamilyName=OSFamilyName, SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Location=Location, OSFamilyName=OSFamilyName, SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamily + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/GetAzCloudServiceOSFamily_GetViaIdentity.cs b/src/CloudService/generated/cmdlets/GetAzCloudServiceOSFamily_GetViaIdentity.cs new file mode 100644 index 000000000000..3307058ccce9 --- /dev/null +++ b/src/CloudService/generated/cmdlets/GetAzCloudServiceOSFamily_GetViaIdentity.cs @@ -0,0 +1,380 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// + /// Gets properties of a guest operating system family that can be specified in the XML service configuration (.cscfg) for + /// a cloud service. + /// + /// + /// [OpenAPI] GetOSFamily=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies/{osFamilyName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudServiceOSFamily_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamily))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Gets properties of a guest operating system family that can be specified in the XML service configuration (.cscfg) for a cloud service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class GetAzCloudServiceOSFamily_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// 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.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzCloudServiceOSFamily_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.CloudServiceOperatingSystemsGetOSFamilyViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.Location) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.Location"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.OSFamilyName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.OSFamilyName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.CloudServiceOperatingSystemsGetOSFamily(InputObject.Location ?? null, InputObject.OSFamilyName ?? null, InputObject.SubscriptionId ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamily + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/GetAzCloudServiceOSFamily_List.cs b/src/CloudService/generated/cmdlets/GetAzCloudServiceOSFamily_List.cs new file mode 100644 index 000000000000..f04cdef5164e --- /dev/null +++ b/src/CloudService/generated/cmdlets/GetAzCloudServiceOSFamily_List.cs @@ -0,0 +1,402 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// + /// Gets a list of all guest operating system families available to be specified in the XML service configuration (.cscfg) + /// for a cloud service. Use nextLink property in the response to get the next page of OS Families. Do this till nextLink + /// is null to fetch all the OS Families. + /// + /// + /// [OpenAPI] ListOSFamilies=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudServiceOSFamily_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamily))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Gets a list of all guest operating system families available to be specified in the XML service configuration (.cscfg) for a cloud service. Use nextLink property in the response to get the next page of OS Families. Do this till nextLink is null to fetch all the OS Families.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class GetAzCloudServiceOSFamily_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// 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.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _location; + + /// Name of the location that the OS families pertain to. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the location that the OS families pertain to.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the location that the OS families pertain to.", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string Location { get => this._location; set => this._location = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI + /// for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzCloudServiceOSFamily_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CloudServiceOperatingSystemsListOSFamilies(Location, SubscriptionId, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Location=Location,SubscriptionId=SubscriptionId}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Location=Location, SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Location=Location, SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + if (result.NextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( result.NextLink ),Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CloudServiceOperatingSystemsListOSFamilies_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/GetAzCloudServiceOSVersion_Get.cs b/src/CloudService/generated/cmdlets/GetAzCloudServiceOSVersion_Get.cs new file mode 100644 index 000000000000..7dd7e40eb7e9 --- /dev/null +++ b/src/CloudService/generated/cmdlets/GetAzCloudServiceOSVersion_Get.cs @@ -0,0 +1,404 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// + /// Gets properties of a guest operating system version that can be specified in the XML service configuration (.cscfg) for + /// a cloud service. + /// + /// + /// [OpenAPI] GetOSVersion=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions/{osVersionName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudServiceOSVersion_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersion))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Gets properties of a guest operating system version that can be specified in the XML service configuration (.cscfg) for a cloud service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class GetAzCloudServiceOSVersion_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// 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.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _location; + + /// Name of the location that the OS version pertains to. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the location that the OS version pertains to.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the location that the OS version pertains to.", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string Location { get => this._location; set => this._location = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _oSVersionName; + + /// Name of the OS version. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the OS version.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the OS version.", + SerializedName = @"osVersionName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string OSVersionName { get => this._oSVersionName; set => this._oSVersionName = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI + /// for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzCloudServiceOSVersion_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CloudServiceOperatingSystemsGetOSVersion(Location, OSVersionName, SubscriptionId, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Location=Location,OSVersionName=OSVersionName,SubscriptionId=SubscriptionId}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Location=Location, OSVersionName=OSVersionName, SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Location=Location, OSVersionName=OSVersionName, SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersion + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/GetAzCloudServiceOSVersion_GetViaIdentity.cs b/src/CloudService/generated/cmdlets/GetAzCloudServiceOSVersion_GetViaIdentity.cs new file mode 100644 index 000000000000..f80668301dc9 --- /dev/null +++ b/src/CloudService/generated/cmdlets/GetAzCloudServiceOSVersion_GetViaIdentity.cs @@ -0,0 +1,380 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// + /// Gets properties of a guest operating system version that can be specified in the XML service configuration (.cscfg) for + /// a cloud service. + /// + /// + /// [OpenAPI] GetOSVersion=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions/{osVersionName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudServiceOSVersion_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersion))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Gets properties of a guest operating system version that can be specified in the XML service configuration (.cscfg) for a cloud service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class GetAzCloudServiceOSVersion_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// 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.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzCloudServiceOSVersion_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.CloudServiceOperatingSystemsGetOSVersionViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.Location) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.Location"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.OSVersionName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.OSVersionName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.CloudServiceOperatingSystemsGetOSVersion(InputObject.Location ?? null, InputObject.OSVersionName ?? null, InputObject.SubscriptionId ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersion + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/GetAzCloudServiceOSVersion_List.cs b/src/CloudService/generated/cmdlets/GetAzCloudServiceOSVersion_List.cs new file mode 100644 index 000000000000..81225cdebb6e --- /dev/null +++ b/src/CloudService/generated/cmdlets/GetAzCloudServiceOSVersion_List.cs @@ -0,0 +1,402 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// + /// Gets a list of all guest operating system versions available to be specified in the XML service configuration (.cscfg) + /// for a cloud service. Use nextLink property in the response to get the next page of OS versions. Do this till nextLink + /// is null to fetch all the OS versions. + /// + /// + /// [OpenAPI] ListOSVersions=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudServiceOSVersion_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersion))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Gets a list of all guest operating system versions available to be specified in the XML service configuration (.cscfg) for a cloud service. Use nextLink property in the response to get the next page of OS versions. Do this till nextLink is null to fetch all the OS versions.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class GetAzCloudServiceOSVersion_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// 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.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _location; + + /// Name of the location that the OS versions pertain to. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the location that the OS versions pertain to.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the location that the OS versions pertain to.", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string Location { get => this._location; set => this._location = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI + /// for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzCloudServiceOSVersion_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CloudServiceOperatingSystemsListOSVersions(Location, SubscriptionId, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Location=Location,SubscriptionId=SubscriptionId}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Location=Location, SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Location=Location, SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + if (result.NextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( result.NextLink ),Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CloudServiceOperatingSystemsListOSVersions_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/GetAzCloudServiceRoleInstanceView_Get.cs b/src/CloudService/generated/cmdlets/GetAzCloudServiceRoleInstanceView_Get.cs index cf05807e78cb..87b54c163993 100644 --- a/src/CloudService/generated/cmdlets/GetAzCloudServiceRoleInstanceView_Get.cs +++ b/src/CloudService/generated/cmdlets/GetAzCloudServiceRoleInstanceView_Get.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets /// [OpenAPI] GetInstanceView=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/instanceView" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudServiceRoleInstanceView_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceView))] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Retrieves information about the run-time state of a role instance in a cloud service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] public partial class GetAzCloudServiceRoleInstanceView_Get : global::System.Management.Automation.PSCmdlet, @@ -161,24 +161,24 @@ public partial class GetAzCloudServiceRoleInstanceView_Get : global::System.Mana /// 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) @@ -350,12 +350,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 ) { @@ -372,7 +372,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.CloudService.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { RoleInstanceName=RoleInstanceName, ResourceGroupName=ResourceGroupName, CloudServiceName=CloudServiceName, SubscriptionId=SubscriptionId }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -390,12 +390,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 ) { @@ -407,7 +407,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceView WriteObject((await response)); } } diff --git a/src/CloudService/generated/cmdlets/GetAzCloudServiceRoleInstance_Get.cs b/src/CloudService/generated/cmdlets/GetAzCloudServiceRoleInstance_Get.cs index 3cf17c4a8808..0b101a1cd5a8 100644 --- a/src/CloudService/generated/cmdlets/GetAzCloudServiceRoleInstance_Get.cs +++ b/src/CloudService/generated/cmdlets/GetAzCloudServiceRoleInstance_Get.cs @@ -12,7 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudServiceRoleInstance_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstance))] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Gets a role instance from a cloud service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] public partial class GetAzCloudServiceRoleInstance_Get : global::System.Management.Automation.PSCmdlet, @@ -174,24 +174,24 @@ public partial class GetAzCloudServiceRoleInstance_Get : global::System.Manageme /// 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) @@ -363,12 +363,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 ) { @@ -385,7 +385,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.CloudService.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { RoleInstanceName=RoleInstanceName, ResourceGroupName=ResourceGroupName, CloudServiceName=CloudServiceName, SubscriptionId=SubscriptionId, Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -403,12 +403,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 ) { @@ -420,7 +420,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstance WriteObject((await response)); } } diff --git a/src/CloudService/generated/cmdlets/GetAzCloudServiceRoleInstance_GetViaIdentity.cs b/src/CloudService/generated/cmdlets/GetAzCloudServiceRoleInstance_GetViaIdentity.cs index 6ac0675f6426..6785cb0e12f5 100644 --- a/src/CloudService/generated/cmdlets/GetAzCloudServiceRoleInstance_GetViaIdentity.cs +++ b/src/CloudService/generated/cmdlets/GetAzCloudServiceRoleInstance_GetViaIdentity.cs @@ -12,7 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudServiceRoleInstance_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstance))] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Gets a role instance from a cloud service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] public partial class GetAzCloudServiceRoleInstance_GetViaIdentity : global::System.Management.Automation.PSCmdlet, @@ -121,24 +121,24 @@ public partial class GetAzCloudServiceRoleInstance_GetViaIdentity : global::Syst /// 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) @@ -331,12 +331,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 ) { @@ -353,7 +353,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.CloudService.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -371,12 +371,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 ) { @@ -388,7 +388,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstance WriteObject((await response)); } } diff --git a/src/CloudService/generated/cmdlets/GetAzCloudServiceRoleInstance_List.cs b/src/CloudService/generated/cmdlets/GetAzCloudServiceRoleInstance_List.cs index f5949c0031e6..7f9e70cb28fa 100644 --- a/src/CloudService/generated/cmdlets/GetAzCloudServiceRoleInstance_List.cs +++ b/src/CloudService/generated/cmdlets/GetAzCloudServiceRoleInstance_List.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudServiceRoleInstance_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstance))] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Gets the list of all role instances in a cloud service. Use nextLink property in the response to get the next page of role instances. Do this till nextLink is null to fetch all the role instances.")] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] public partial class GetAzCloudServiceRoleInstance_List : global::System.Management.Automation.PSCmdlet, @@ -163,24 +163,24 @@ public partial class GetAzCloudServiceRoleInstance_List : 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); /// /// 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) @@ -352,12 +352,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 ) { @@ -374,7 +374,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.CloudService.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, CloudServiceName=CloudServiceName, SubscriptionId=SubscriptionId, Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -392,12 +392,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/CloudService/generated/cmdlets/GetAzCloudService_Get.cs b/src/CloudService/generated/cmdlets/GetAzCloudService_Get.cs index bdc1e136b2fb..f8b5f44693db 100644 --- a/src/CloudService/generated/cmdlets/GetAzCloudService_Get.cs +++ b/src/CloudService/generated/cmdlets/GetAzCloudService_Get.cs @@ -12,7 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudService_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService))] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Display information about a cloud service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] public partial class GetAzCloudService_Get : global::System.Management.Automation.PSCmdlet, @@ -148,24 +148,24 @@ public partial class GetAzCloudService_Get : global::System.Management.Automatio /// 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.CloudService.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, Name=Name, SubscriptionId=SubscriptionId }) { 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.CloudService.Models.Api20201001Preview.ICloudService + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService WriteObject((await response)); } } diff --git a/src/CloudService/generated/cmdlets/GetAzCloudService_GetViaIdentity.cs b/src/CloudService/generated/cmdlets/GetAzCloudService_GetViaIdentity.cs index fa17085f726f..4f6beccc88d3 100644 --- a/src/CloudService/generated/cmdlets/GetAzCloudService_GetViaIdentity.cs +++ b/src/CloudService/generated/cmdlets/GetAzCloudService_GetViaIdentity.cs @@ -12,7 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudService_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService))] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Display information about a cloud service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] public partial class GetAzCloudService_GetViaIdentity : global::System.Management.Automation.PSCmdlet, @@ -106,24 +106,24 @@ public partial class GetAzCloudService_GetViaIdentity : global::System.Managemen /// 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) @@ -312,12 +312,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 ) { @@ -334,7 +334,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.CloudService.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 } @@ -352,12 +352,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 ) { @@ -369,7 +369,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService WriteObject((await response)); } } diff --git a/src/CloudService/generated/cmdlets/GetAzCloudService_List.cs b/src/CloudService/generated/cmdlets/GetAzCloudService_List.cs index d630df353083..32d07b82dd9d 100644 --- a/src/CloudService/generated/cmdlets/GetAzCloudService_List.cs +++ b/src/CloudService/generated/cmdlets/GetAzCloudService_List.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets /// [OpenAPI] ListAll=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Compute/cloudServices" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudService_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService))] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Gets a list of all cloud services in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services.")] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] public partial class GetAzCloudService_List : global::System.Management.Automation.PSCmdlet, @@ -122,24 +122,24 @@ public partial class GetAzCloudService_List : global::System.Management.Automati /// 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) @@ -311,12 +311,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 ) { @@ -333,7 +333,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.CloudService.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 } @@ -351,12 +351,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/CloudService/generated/cmdlets/GetAzCloudService_List1.cs b/src/CloudService/generated/cmdlets/GetAzCloudService_List1.cs index a1a7cbacfe16..34879aeb4ccc 100644 --- a/src/CloudService/generated/cmdlets/GetAzCloudService_List1.cs +++ b/src/CloudService/generated/cmdlets/GetAzCloudService_List1.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudService_List1")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService))] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Gets a list of all cloud services under a resource group. Use nextLink property in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services.")] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] public partial class GetAzCloudService_List1 : global::System.Management.Automation.PSCmdlet, @@ -136,24 +136,24 @@ public partial class GetAzCloudService_List1 : global::System.Management.Automat /// 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) @@ -325,12 +325,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 ) { @@ -347,7 +347,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.CloudService.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -365,12 +365,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/CloudService/generated/cmdlets/InvokeAzCloudServiceRebuild_RebuildExpanded.cs b/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRebuild_RebuildExpanded.cs index 437825e8f8a1..8638c9618336 100644 --- a/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRebuild_RebuildExpanded.cs +++ b/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRebuild_RebuildExpanded.cs @@ -103,10 +103,10 @@ public partial class InvokeAzCloudServiceRebuild_RebuildExpanded : global::Syste public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstances(); + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstances(); /// Specifies a list of role instances from the cloud service. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } /// /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. @@ -190,12 +190,12 @@ public partial class InvokeAzCloudServiceRebuild_RebuildExpanded : global::Syste /// 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 @@ -431,12 +431,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 ) { @@ -453,7 +453,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.CloudService.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, CloudServiceName=CloudServiceName, SubscriptionId=SubscriptionId, body=ParametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRebuild_RebuildViaIdentityExpanded.cs b/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRebuild_RebuildViaIdentityExpanded.cs index e1f2f143dfcb..56d97bee6c26 100644 --- a/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRebuild_RebuildViaIdentityExpanded.cs +++ b/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRebuild_RebuildViaIdentityExpanded.cs @@ -97,10 +97,10 @@ public partial class InvokeAzCloudServiceRebuild_RebuildViaIdentityExpanded : gl public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstances(); + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstances(); /// Specifies a list of role instances from the cloud service. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } /// /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. @@ -149,12 +149,12 @@ public partial class InvokeAzCloudServiceRebuild_RebuildViaIdentityExpanded : gl /// 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 @@ -407,12 +407,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 ) { @@ -429,7 +429,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.CloudService.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/CloudService/generated/cmdlets/InvokeAzCloudServiceReimage_ReimageExpanded.cs b/src/CloudService/generated/cmdlets/InvokeAzCloudServiceReimage_ReimageExpanded.cs index 6da9765e26b3..2b16234e8a5e 100644 --- a/src/CloudService/generated/cmdlets/InvokeAzCloudServiceReimage_ReimageExpanded.cs +++ b/src/CloudService/generated/cmdlets/InvokeAzCloudServiceReimage_ReimageExpanded.cs @@ -103,10 +103,10 @@ public partial class InvokeAzCloudServiceReimage_ReimageExpanded : global::Syste public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstances(); + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstances(); /// Specifies a list of role instances from the cloud service. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } /// /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. @@ -190,12 +190,12 @@ public partial class InvokeAzCloudServiceReimage_ReimageExpanded : global::Syste /// 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 @@ -431,12 +431,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 ) { @@ -453,7 +453,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.CloudService.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, Name=Name, SubscriptionId=SubscriptionId, body=ParametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/CloudService/generated/cmdlets/InvokeAzCloudServiceReimage_ReimageViaIdentityExpanded.cs b/src/CloudService/generated/cmdlets/InvokeAzCloudServiceReimage_ReimageViaIdentityExpanded.cs index b8b5a47ebae0..807fa4107a73 100644 --- a/src/CloudService/generated/cmdlets/InvokeAzCloudServiceReimage_ReimageViaIdentityExpanded.cs +++ b/src/CloudService/generated/cmdlets/InvokeAzCloudServiceReimage_ReimageViaIdentityExpanded.cs @@ -96,10 +96,10 @@ public partial class InvokeAzCloudServiceReimage_ReimageViaIdentityExpanded : gl public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstances(); + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstances(); /// Specifies a list of role instances from the cloud service. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } /// /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. @@ -148,12 +148,12 @@ public partial class InvokeAzCloudServiceReimage_ReimageViaIdentityExpanded : gl /// 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 @@ -406,12 +406,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 ) { @@ -428,7 +428,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.CloudService.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRoleInstanceRebuild_Rebuild.cs b/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRoleInstanceRebuild_Rebuild.cs index 2a73bac5c9e0..04d98d0f6de5 100644 --- a/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRoleInstanceRebuild_Rebuild.cs +++ b/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRoleInstanceRebuild_Rebuild.cs @@ -183,12 +183,12 @@ public partial class InvokeAzCloudServiceRoleInstanceRebuild_Rebuild : global::S /// 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 @@ -424,12 +424,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 ) { @@ -446,7 +446,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.CloudService.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { RoleInstanceName=RoleInstanceName, ResourceGroupName=ResourceGroupName, CloudServiceName=CloudServiceName, SubscriptionId=SubscriptionId }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRoleInstanceRebuild_RebuildViaIdentity.cs b/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRoleInstanceRebuild_RebuildViaIdentity.cs index 6b2d0cf5d83d..38caa07e764c 100644 --- a/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRoleInstanceRebuild_RebuildViaIdentity.cs +++ b/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRoleInstanceRebuild_RebuildViaIdentity.cs @@ -130,12 +130,12 @@ public partial class InvokeAzCloudServiceRoleInstanceRebuild_RebuildViaIdentity /// 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 @@ -393,12 +393,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 ) { @@ -415,7 +415,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.CloudService.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.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/CloudService/generated/cmdlets/InvokeAzCloudServiceRoleInstanceReimage_Reimage.cs b/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRoleInstanceReimage_Reimage.cs index 438b4dc48213..812afd5866dd 100644 --- a/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRoleInstanceReimage_Reimage.cs +++ b/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRoleInstanceReimage_Reimage.cs @@ -181,12 +181,12 @@ public partial class InvokeAzCloudServiceRoleInstanceReimage_Reimage : global::S /// 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 @@ -422,12 +422,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 ) { @@ -444,7 +444,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.CloudService.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { RoleInstanceName=RoleInstanceName, ResourceGroupName=ResourceGroupName, CloudServiceName=CloudServiceName, SubscriptionId=SubscriptionId }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRoleInstanceReimage_ReimageViaIdentity.cs b/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRoleInstanceReimage_ReimageViaIdentity.cs index 0bdd61e33855..021465a0568d 100644 --- a/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRoleInstanceReimage_ReimageViaIdentity.cs +++ b/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRoleInstanceReimage_ReimageViaIdentity.cs @@ -128,12 +128,12 @@ public partial class InvokeAzCloudServiceRoleInstanceReimage_ReimageViaIdentity /// 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 @@ -391,12 +391,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 ) { @@ -413,7 +413,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.CloudService.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.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/CloudService/generated/cmdlets/NewAzCloudService_CreateExpanded.cs b/src/CloudService/generated/cmdlets/NewAzCloudService_CreateExpanded.cs index 7508fc6f175c..9bf4ee4ce1e6 100644 --- a/src/CloudService/generated/cmdlets/NewAzCloudService_CreateExpanded.cs +++ b/src/CloudService/generated/cmdlets/NewAzCloudService_CreateExpanded.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzCloudService_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService))] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Create or update a cloud service. Please note some properties can be set only during cloud service creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] public partial class NewAzCloudService_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -34,6 +34,20 @@ public partial class NewAzCloudService_CreateExpanded : global::System.Managemen /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// + /// (Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override + /// the role instance count and vm size specified in the .cscfg and .csdef respectively.The default value is `false`. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "(Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override the role instance count and vm size specified in the .cscfg and .csdef respectively.The default value is `false`.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"(Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override the role instance count and vm size specified in the .cscfg and .csdef respectively.The default value is `false`.", + SerializedName = @"allowModelOverride", + PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] + public global::System.Management.Automation.SwitchParameter AllowModelOverride { get => ParametersBody.AllowModelOverride ?? default(global::System.Management.Automation.SwitchParameter); set => ParametersBody.AllowModelOverride = value; } + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] @@ -90,8 +104,8 @@ public partial class NewAzCloudService_CreateExpanded : global::System.Managemen ReadOnly = false, Description = @"Describes a cloud service extension profile.", SerializedName = @"extensionProfile", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile) })] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile ExtensionProfile { get => ParametersBody.ExtensionProfile ?? null /* object */; set => ParametersBody.ExtensionProfile = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProfile) })] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProfile ExtensionProfile { get => ParametersBody.ExtensionProfile ?? null /* object */; set => ParametersBody.ExtensionProfile = 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")] @@ -150,8 +164,8 @@ public partial class NewAzCloudService_CreateExpanded : global::System.Managemen ReadOnly = false, Description = @"Network Profile for the cloud service.", SerializedName = @"networkProfile", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile) })] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile NetworkProfile { get => ParametersBody.NetworkProfile ?? null /* object */; set => ParametersBody.NetworkProfile = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfile) })] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfile NetworkProfile { get => ParametersBody.NetworkProfile ?? null /* object */; set => ParametersBody.NetworkProfile = value; } /// /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue @@ -169,8 +183,8 @@ public partial class NewAzCloudService_CreateExpanded : global::System.Managemen ReadOnly = false, Description = @"Describes the OS profile for the cloud service.", SerializedName = @"osProfile", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile) })] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile OSProfile { get => ParametersBody.OSProfile ?? null /* object */; set => ParametersBody.OSProfile = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceOSProfile) })] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceOSProfile OSProfile { get => ParametersBody.OSProfile ?? null /* object */; set => ParametersBody.OSProfile = value; } /// /// Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be @@ -187,10 +201,10 @@ public partial class NewAzCloudService_CreateExpanded : global::System.Managemen public string PackageUrl { get => ParametersBody.PackageUrl ?? null; set => ParametersBody.PackageUrl = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService(); + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudService(); /// Describes the cloud service. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } /// /// The instance of the that the remote call will use. @@ -235,8 +249,8 @@ public partial class NewAzCloudService_CreateExpanded : global::System.Managemen ReadOnly = false, Description = @"Describes the role profile for the cloud service.", SerializedName = @"roleProfile", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile) })] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile RoleProfile { get => ParametersBody.RoleProfile ?? null /* object */; set => ParametersBody.RoleProfile = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfile) })] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfile RoleProfile { get => ParametersBody.RoleProfile ?? null /* object */; set => ParametersBody.RoleProfile = value; } /// /// (Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`.If @@ -283,8 +297,8 @@ public partial class NewAzCloudService_CreateExpanded : global::System.Managemen ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } /// /// Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates @@ -309,24 +323,24 @@ public partial class NewAzCloudService_CreateExpanded : global::System.Managemen /// 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) @@ -552,12 +566,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 ) { @@ -574,7 +588,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.CloudService.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, Name=Name, SubscriptionId=SubscriptionId, body=ParametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -592,12 +606,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 ) { @@ -609,7 +623,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService WriteObject((await response)); } } diff --git a/src/CloudService/generated/cmdlets/RemoveAzCloudServiceRoleInstance_DeleteExpanded.cs b/src/CloudService/generated/cmdlets/RemoveAzCloudServiceRoleInstance_DeleteExpanded.cs index fa2929963b52..ff9824b25d51 100644 --- a/src/CloudService/generated/cmdlets/RemoveAzCloudServiceRoleInstance_DeleteExpanded.cs +++ b/src/CloudService/generated/cmdlets/RemoveAzCloudServiceRoleInstance_DeleteExpanded.cs @@ -100,10 +100,10 @@ public partial class RemoveAzCloudServiceRoleInstance_DeleteExpanded : global::S public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstances(); + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstances(); /// Specifies a list of role instances from the cloud service. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } /// /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. @@ -187,12 +187,12 @@ public partial class RemoveAzCloudServiceRoleInstance_DeleteExpanded : global::S /// 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 @@ -428,12 +428,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 ) { @@ -450,7 +450,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.CloudService.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, CloudServiceName=CloudServiceName, SubscriptionId=SubscriptionId, body=ParametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/CloudService/generated/cmdlets/RemoveAzCloudServiceRoleInstance_DeleteViaIdentityExpanded.cs b/src/CloudService/generated/cmdlets/RemoveAzCloudServiceRoleInstance_DeleteViaIdentityExpanded.cs index eba2762e7972..fb1f479bba68 100644 --- a/src/CloudService/generated/cmdlets/RemoveAzCloudServiceRoleInstance_DeleteViaIdentityExpanded.cs +++ b/src/CloudService/generated/cmdlets/RemoveAzCloudServiceRoleInstance_DeleteViaIdentityExpanded.cs @@ -94,10 +94,10 @@ public partial class RemoveAzCloudServiceRoleInstance_DeleteViaIdentityExpanded public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstances(); + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstances(); /// Specifies a list of role instances from the cloud service. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } /// /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. @@ -146,12 +146,12 @@ public partial class RemoveAzCloudServiceRoleInstance_DeleteViaIdentityExpanded /// 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 @@ -406,12 +406,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 ) { @@ -428,7 +428,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.CloudService.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/CloudService/generated/cmdlets/RemoveAzCloudService_Delete.cs b/src/CloudService/generated/cmdlets/RemoveAzCloudService_Delete.cs index c0766e5c49b9..74fdec63d9cc 100644 --- a/src/CloudService/generated/cmdlets/RemoveAzCloudService_Delete.cs +++ b/src/CloudService/generated/cmdlets/RemoveAzCloudService_Delete.cs @@ -168,12 +168,12 @@ public partial class RemoveAzCloudService_Delete : global::System.Management.Aut /// 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.CloudService.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, Name=Name, SubscriptionId=SubscriptionId }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/CloudService/generated/cmdlets/RemoveAzCloudService_DeleteViaIdentity.cs b/src/CloudService/generated/cmdlets/RemoveAzCloudService_DeleteViaIdentity.cs index 243cf213fd0b..3acc04a8c4aa 100644 --- a/src/CloudService/generated/cmdlets/RemoveAzCloudService_DeleteViaIdentity.cs +++ b/src/CloudService/generated/cmdlets/RemoveAzCloudService_DeleteViaIdentity.cs @@ -126,12 +126,12 @@ public partial class RemoveAzCloudService_DeleteViaIdentity : global::System.Man /// 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 @@ -393,12 +393,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 ) { @@ -415,7 +415,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.CloudService.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.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/CloudService/generated/cmdlets/RestartAzCloudServiceRoleInstance_Restart.cs b/src/CloudService/generated/cmdlets/RestartAzCloudServiceRoleInstance_Restart.cs index fd55de788580..57399a1150a4 100644 --- a/src/CloudService/generated/cmdlets/RestartAzCloudServiceRoleInstance_Restart.cs +++ b/src/CloudService/generated/cmdlets/RestartAzCloudServiceRoleInstance_Restart.cs @@ -181,12 +181,12 @@ public partial class RestartAzCloudServiceRoleInstance_Restart : global::System. /// 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 @@ -422,12 +422,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 ) { @@ -444,7 +444,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.CloudService.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { RoleInstanceName=RoleInstanceName, ResourceGroupName=ResourceGroupName, CloudServiceName=CloudServiceName, SubscriptionId=SubscriptionId }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/CloudService/generated/cmdlets/RestartAzCloudServiceRoleInstance_RestartViaIdentity.cs b/src/CloudService/generated/cmdlets/RestartAzCloudServiceRoleInstance_RestartViaIdentity.cs index e1e911c620e5..7d146f19483d 100644 --- a/src/CloudService/generated/cmdlets/RestartAzCloudServiceRoleInstance_RestartViaIdentity.cs +++ b/src/CloudService/generated/cmdlets/RestartAzCloudServiceRoleInstance_RestartViaIdentity.cs @@ -128,12 +128,12 @@ public partial class RestartAzCloudServiceRoleInstance_RestartViaIdentity : glob /// 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 @@ -389,12 +389,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 ) { @@ -411,7 +411,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.CloudService.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.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/CloudService/generated/cmdlets/RestartAzCloudService_RestartExpanded.cs b/src/CloudService/generated/cmdlets/RestartAzCloudService_RestartExpanded.cs index 33d70cfe9f2c..b5ca89e6b9e0 100644 --- a/src/CloudService/generated/cmdlets/RestartAzCloudService_RestartExpanded.cs +++ b/src/CloudService/generated/cmdlets/RestartAzCloudService_RestartExpanded.cs @@ -101,10 +101,10 @@ public partial class RestartAzCloudService_RestartExpanded : global::System.Mana public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstances(); + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstances(); /// Specifies a list of role instances from the cloud service. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } /// /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. @@ -188,12 +188,12 @@ public partial class RestartAzCloudService_RestartExpanded : global::System.Mana /// 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 @@ -429,12 +429,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 ) { @@ -451,7 +451,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.CloudService.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, Name=Name, SubscriptionId=SubscriptionId, body=ParametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/CloudService/generated/cmdlets/RestartAzCloudService_RestartViaIdentityExpanded.cs b/src/CloudService/generated/cmdlets/RestartAzCloudService_RestartViaIdentityExpanded.cs index dfe850ec3cdf..83241df3132e 100644 --- a/src/CloudService/generated/cmdlets/RestartAzCloudService_RestartViaIdentityExpanded.cs +++ b/src/CloudService/generated/cmdlets/RestartAzCloudService_RestartViaIdentityExpanded.cs @@ -94,10 +94,10 @@ public partial class RestartAzCloudService_RestartViaIdentityExpanded : global:: public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstances(); + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.RoleInstances(); /// Specifies a list of role instances from the cloud service. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstances ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } /// /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. @@ -146,12 +146,12 @@ public partial class RestartAzCloudService_RestartViaIdentityExpanded : global:: /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the 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 @@ -404,12 +404,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 ) { @@ -426,7 +426,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.CloudService.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/CloudService/generated/cmdlets/SetAzCloudServiceUpdateDomain_WalkExpanded.cs b/src/CloudService/generated/cmdlets/SetAzCloudServiceUpdateDomain_WalkExpanded.cs index 3f7455af9cb0..a2e39fdbde3b 100644 --- a/src/CloudService/generated/cmdlets/SetAzCloudServiceUpdateDomain_WalkExpanded.cs +++ b/src/CloudService/generated/cmdlets/SetAzCloudServiceUpdateDomain_WalkExpanded.cs @@ -100,10 +100,10 @@ public partial class SetAzCloudServiceUpdateDomain_WalkExpanded : global::System public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.UpdateDomain(); + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomain _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.UpdateDomain(); /// Defines an update domain for the cloud service. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IUpdateDomain ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } /// /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. @@ -190,12 +190,12 @@ public partial class SetAzCloudServiceUpdateDomain_WalkExpanded : global::System /// 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 @@ -432,12 +432,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 ) { @@ -454,7 +454,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.CloudService.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, CloudServiceName=CloudServiceName, UpdateDomain=UpdateDomain, SubscriptionId=SubscriptionId, body=ParametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/CloudService/generated/cmdlets/StartAzCloudService_Start.cs b/src/CloudService/generated/cmdlets/StartAzCloudService_Start.cs index bb33d97e3b0c..9fc3eed9b085 100644 --- a/src/CloudService/generated/cmdlets/StartAzCloudService_Start.cs +++ b/src/CloudService/generated/cmdlets/StartAzCloudService_Start.cs @@ -168,12 +168,12 @@ public partial class StartAzCloudService_Start : global::System.Management.Autom /// 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 @@ -408,12 +408,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 ) { @@ -430,7 +430,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.CloudService.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, Name=Name, SubscriptionId=SubscriptionId }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/CloudService/generated/cmdlets/StartAzCloudService_StartViaIdentity.cs b/src/CloudService/generated/cmdlets/StartAzCloudService_StartViaIdentity.cs index f624a7768e07..ad943deb0d39 100644 --- a/src/CloudService/generated/cmdlets/StartAzCloudService_StartViaIdentity.cs +++ b/src/CloudService/generated/cmdlets/StartAzCloudService_StartViaIdentity.cs @@ -126,12 +126,12 @@ public partial class StartAzCloudService_StartViaIdentity : global::System.Manag /// 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 @@ -383,12 +383,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 ) { @@ -405,7 +405,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.CloudService.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.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/CloudService/generated/cmdlets/StopAzCloudService_PowerOff.cs b/src/CloudService/generated/cmdlets/StopAzCloudService_PowerOff.cs index b6dfbe017dd9..6712aa25bcaf 100644 --- a/src/CloudService/generated/cmdlets/StopAzCloudService_PowerOff.cs +++ b/src/CloudService/generated/cmdlets/StopAzCloudService_PowerOff.cs @@ -170,12 +170,12 @@ public partial class StopAzCloudService_PowerOff : global::System.Management.Aut /// 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 @@ -410,12 +410,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 ) { @@ -432,7 +432,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.CloudService.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, Name=Name, SubscriptionId=SubscriptionId }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/CloudService/generated/cmdlets/StopAzCloudService_PowerOffViaIdentity.cs b/src/CloudService/generated/cmdlets/StopAzCloudService_PowerOffViaIdentity.cs index 04fadb888ceb..e821bf5b8ae4 100644 --- a/src/CloudService/generated/cmdlets/StopAzCloudService_PowerOffViaIdentity.cs +++ b/src/CloudService/generated/cmdlets/StopAzCloudService_PowerOffViaIdentity.cs @@ -128,12 +128,12 @@ public partial class StopAzCloudService_PowerOffViaIdentity : global::System.Man /// 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 @@ -385,12 +385,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 ) { @@ -407,7 +407,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.CloudService.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.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/CloudService/generated/cmdlets/UpdateAzCloudService_CreateViaIdentity.cs b/src/CloudService/generated/cmdlets/UpdateAzCloudService_CreateViaIdentity.cs index 4cd655c43abb..cf8ed527c6cd 100644 --- a/src/CloudService/generated/cmdlets/UpdateAzCloudService_CreateViaIdentity.cs +++ b/src/CloudService/generated/cmdlets/UpdateAzCloudService_CreateViaIdentity.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzCloudService_CreateViaIdentity", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService))] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Create or update a cloud service. Please note some properties can be set only during cloud service creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] public partial class UpdateAzCloudService_CreateViaIdentity : global::System.Management.Automation.PSCmdlet, @@ -96,7 +96,7 @@ public partial class UpdateAzCloudService_CreateViaIdentity : global::System.Man public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService _parameter; /// Describes the cloud service. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Describes the cloud service.", ValueFromPipeline = true)] @@ -105,8 +105,8 @@ public partial class UpdateAzCloudService_CreateViaIdentity : global::System.Man ReadOnly = false, Description = @"Describes the cloud service.", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService) })] - public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService) })] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -134,24 +134,24 @@ public partial class UpdateAzCloudService_CreateViaIdentity : global::System.Man /// 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) @@ -394,12 +394,12 @@ public UpdateAzCloudService_CreateViaIdentity() /// 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 ) { @@ -416,7 +416,7 @@ public UpdateAzCloudService_CreateViaIdentity() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -434,12 +434,12 @@ public UpdateAzCloudService_CreateViaIdentity() /// 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 ) { @@ -451,7 +451,7 @@ public UpdateAzCloudService_CreateViaIdentity() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService WriteObject((await response)); } } diff --git a/src/CloudService/help/Az.CloudService.md b/src/CloudService/help/Az.CloudService.md index 970b87630038..9af2f66300f5 100644 --- a/src/CloudService/help/Az.CloudService.md +++ b/src/CloudService/help/Az.CloudService.md @@ -20,6 +20,12 @@ Gets the status of a cloud service. ### [Get-AzCloudServiceNetworkInterfaces](Get-AzCloudServiceNetworkInterfaces.md) Get the network interfaces of a cloud service. +### [Get-AzCloudServiceOSFamily](Get-AzCloudServiceOSFamily.md) +Gets properties of a guest operating system family that can be specified in the XML service configuration (.cscfg) for a cloud service. + +### [Get-AzCloudServiceOSVersion](Get-AzCloudServiceOSVersion.md) +Gets properties of a guest operating system version that can be specified in the XML service configuration (.cscfg) for a cloud service. + ### [Get-AzCloudServicePublicIPAddress](Get-AzCloudServicePublicIPAddress.md) Get the public IP address of a cloud service. diff --git a/src/CloudService/help/Get-AzCloudService.md b/src/CloudService/help/Get-AzCloudService.md index a42e8d5eb846..37572429c13e 100644 --- a/src/CloudService/help/Get-AzCloudService.md +++ b/src/CloudService/help/Get-AzCloudService.md @@ -173,7 +173,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService ## NOTES @@ -187,6 +187,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter - `[CloudServiceName ]`: - `[Id ]`: Resource identity path + - `[Location ]`: Name of the location that the OS version pertains to. + - `[OSFamilyName ]`: Name of the OS family. + - `[OSVersionName ]`: Name of the OS version. - `[ResourceGroupName ]`: - `[RoleInstanceName ]`: Name of the role instance. - `[RoleName ]`: Name of the role. diff --git a/src/CloudService/help/Get-AzCloudServiceInstanceView.md b/src/CloudService/help/Get-AzCloudServiceInstanceView.md index 5fbd8c527bdb..b35894cdb8da 100644 --- a/src/CloudService/help/Get-AzCloudServiceInstanceView.md +++ b/src/CloudService/help/Get-AzCloudServiceInstanceView.md @@ -144,7 +144,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceView +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceInstanceView ## NOTES diff --git a/src/CloudService/help/Get-AzCloudServiceNetworkInterfaces.md b/src/CloudService/help/Get-AzCloudServiceNetworkInterfaces.md index 9f19ee911442..0fb4656c3b5d 100644 --- a/src/CloudService/help/Get-AzCloudServiceNetworkInterfaces.md +++ b/src/CloudService/help/Get-AzCloudServiceNetworkInterfaces.md @@ -61,7 +61,7 @@ CloudService instance. To construct, see NOTES section for CLOUDSERVICE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudService Parameter Sets: CloudService Aliases: @@ -150,6 +150,7 @@ To create the parameters described below, construct a hash table containing the CLOUDSERVICE : CloudService instance. - `Location `: Resource location. + - `[AllowModelOverride ]`: (Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override the role instance count and vm size specified in the .cscfg and .csdef respectively. The default value is `false`. - `[Configuration ]`: Specifies the XML service configuration (.cscfg) for the cloud service. - `[ConfigurationUrl ]`: Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. - `[ExtensionProfile ]`: Describes a cloud service extension profile. @@ -166,14 +167,15 @@ CLOUDSERVICE : CloudService instance. - `[Type ]`: Specifies the type of the extension. - `[TypeHandlerVersion ]`: Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance. - `[NetworkProfile ]`: Network Profile for the cloud service. - - `[LoadBalancerConfiguration ]`: The list of load balancer configurations for the cloud service. - - `[FrontendIPConfiguration ]`: List of IP - - `[Name ]`: - - `[PrivateIPAddress ]`: The private IP address referenced by the cloud service. + - `[LoadBalancerConfiguration ]`: List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to a Public Load Balancer and an Internal Load Balancer. + - `FrontendIPConfiguration `: Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration. + - `Name `: The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource. + - `[PrivateIPAddress ]`: The virtual network private IP address of the IP configuration. - `[PublicIPAddressId ]`: Resource Id - `[SubnetId ]`: Resource Id - - `[Name ]`: Resource Name - - `[SwappableCloudService ]`: + - `Name `: The name of the Load balancer + - `[Id ]`: Resource Id + - `[SwappableCloudService ]`: The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap. This property cannot be updated once it is set. The swappable cloud service referred by this id must be present otherwise an error will be thrown. - `[Id ]`: Resource Id - `[OSProfile ]`: Describes the OS profile for the cloud service. - `[Secret ]`: Specifies set of certificates that should be installed onto the role instances. diff --git a/src/CloudService/help/Get-AzCloudServiceOSFamily.md b/src/CloudService/help/Get-AzCloudServiceOSFamily.md new file mode 100644 index 000000000000..79b28060eb99 --- /dev/null +++ b/src/CloudService/help/Get-AzCloudServiceOSFamily.md @@ -0,0 +1,176 @@ +--- +external help file: +Module Name: Az.CloudService +online version: https://docs.microsoft.com/powershell/module/az.cloudservice/get-azcloudserviceosfamily +schema: 2.0.0 +--- + +# Get-AzCloudServiceOSFamily + +## SYNOPSIS +Gets properties of a guest operating system family that can be specified in the XML service configuration (.cscfg) for a cloud service. + +## SYNTAX + +### List (Default) +``` +Get-AzCloudServiceOSFamily -Location [-SubscriptionId ] [-DefaultProfile ] + [] +``` + +### Get +``` +Get-AzCloudServiceOSFamily -Location -OSFamilyName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzCloudServiceOSFamily -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets properties of a guest operating system family that can be specified in the XML service configuration (.cscfg) for a cloud service. + +## EXAMPLES + +### Example 1: Get all OS families in a location +```powershell +PS C:\> Get-AzCloudServiceOSFamily -location 'westus2' + +Name Label +---- ----- +5 Windows Server 2016 +4 Windows Server 2012 R2 +6 Windows Server 2019 +3 Windows Server 2012 +2 Windows Server 2008 R2 +``` + +This command gets all OS families in location westus2 + +### Example 2: Get OS family +```powershell +PS C:\> Get-AzCloudServiceOSFamily -location 'westus2' -OSFamilyName 5 + +Name Label +---- ----- +5 Windows Server 2016 +``` + +This command gets OS family named 5 that is located in westus2. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Location +Name of the location that the OS family pertains to. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OSFamilyName +Name of the OS family. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials which uniquely identify Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSFamily + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[CloudServiceName ]`: + - `[Id ]`: Resource identity path + - `[Location ]`: Name of the location that the OS version pertains to. + - `[OSFamilyName ]`: Name of the OS family. + - `[OSVersionName ]`: Name of the OS version. + - `[ResourceGroupName ]`: + - `[RoleInstanceName ]`: Name of the role instance. + - `[RoleName ]`: Name of the role. + - `[SubscriptionId ]`: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[UpdateDomain ]`: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. + +## RELATED LINKS + diff --git a/src/CloudService/help/Get-AzCloudServiceOSVersion.md b/src/CloudService/help/Get-AzCloudServiceOSVersion.md new file mode 100644 index 000000000000..c22de91891f5 --- /dev/null +++ b/src/CloudService/help/Get-AzCloudServiceOSVersion.md @@ -0,0 +1,176 @@ +--- +external help file: +Module Name: Az.CloudService +online version: https://docs.microsoft.com/powershell/module/az.cloudservice/get-azcloudserviceosversion +schema: 2.0.0 +--- + +# Get-AzCloudServiceOSVersion + +## SYNOPSIS +Gets properties of a guest operating system version that can be specified in the XML service configuration (.cscfg) for a cloud service. + +## SYNTAX + +### List (Default) +``` +Get-AzCloudServiceOSVersion -Location [-SubscriptionId ] [-DefaultProfile ] + [] +``` + +### Get +``` +Get-AzCloudServiceOSVersion -Location -OSVersionName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzCloudServiceOSVersion -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets properties of a guest operating system version that can be specified in the XML service configuration (.cscfg) for a cloud service. + +## EXAMPLES + +### Example 1: Get all OS versions in a location +```powershell +PS C:\> Get-AzCloudServiceOSVersion -location 'westus2' + +Name Label IsDefault IsActive Family FamilyLabel +---- ----- --------- -------- ------ ----------- +WA-GUEST-OS-6.7_201905-01 Windows Azure Guest OS 6.7 (Release 201905-01) False False 6 Windows Server 2019 +WA-GUEST-OS-3.21_201411-01 Windows Azure Guest OS 3.21 (Release 201411-01) False False 3 Windows Server 2012 +WA-GUEST-OS-3.34_201512-01 Windows Azure Guest OS 3.34 (Release 201512-01) False False 3 Windows Server 2012 +WA-GUEST-OS-3.26_201504-01 Windows Azure Guest OS 3.26 (Release 201504-01) False False 3 Windows Server 2012 +WA-GUEST-OS-2.46_201512-01 Windows Azure Guest OS 2.46 (Release 201512-01) False False 2 Windows Server 2008 R2 +``` + +This command gets all OS versions in location westus2 + +### Example 2: Get OS version +```powershell +PS C:\> Get-AzCloudServiceOSVersion -location 'westus2' -OSVersionName 'WA-GUEST-OS-6.7_201905-01' + +Name Label IsDefault IsActive Family FamilyLabel +---- ----- --------- -------- ------ ----------- +WA-GUEST-OS-6.7_201905-01 Windows Azure Guest OS 6.7 (Release 201905-01) False False 6 Windows Server 2019 +``` + +This command gets OS version named WA-GUEST-OS-6.7_201905-01 that is located in westus2. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Location +Name of the location that the OS version pertains to. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OSVersionName +Name of the OS version. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials which uniquely identify Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IOSVersion + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[CloudServiceName ]`: + - `[Id ]`: Resource identity path + - `[Location ]`: Name of the location that the OS version pertains to. + - `[OSFamilyName ]`: Name of the OS family. + - `[OSVersionName ]`: Name of the OS version. + - `[ResourceGroupName ]`: + - `[RoleInstanceName ]`: Name of the role instance. + - `[RoleName ]`: Name of the role. + - `[SubscriptionId ]`: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[UpdateDomain ]`: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. + +## RELATED LINKS + diff --git a/src/CloudService/help/Get-AzCloudServicePublicIPAddress.md b/src/CloudService/help/Get-AzCloudServicePublicIPAddress.md index 89a6e72909b1..30b15a80ee63 100644 --- a/src/CloudService/help/Get-AzCloudServicePublicIPAddress.md +++ b/src/CloudService/help/Get-AzCloudServicePublicIPAddress.md @@ -52,7 +52,7 @@ CloudService instance. To construct, see NOTES section for CLOUDSERVICE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudService Parameter Sets: CloudService Aliases: @@ -126,6 +126,7 @@ To create the parameters described below, construct a hash table containing the CLOUDSERVICE : CloudService instance. - `Location `: Resource location. + - `[AllowModelOverride ]`: (Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override the role instance count and vm size specified in the .cscfg and .csdef respectively. The default value is `false`. - `[Configuration ]`: Specifies the XML service configuration (.cscfg) for the cloud service. - `[ConfigurationUrl ]`: Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. - `[ExtensionProfile ]`: Describes a cloud service extension profile. @@ -142,14 +143,15 @@ CLOUDSERVICE : CloudService instance. - `[Type ]`: Specifies the type of the extension. - `[TypeHandlerVersion ]`: Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance. - `[NetworkProfile ]`: Network Profile for the cloud service. - - `[LoadBalancerConfiguration ]`: The list of load balancer configurations for the cloud service. - - `[FrontendIPConfiguration ]`: List of IP - - `[Name ]`: - - `[PrivateIPAddress ]`: The private IP address referenced by the cloud service. + - `[LoadBalancerConfiguration ]`: List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to a Public Load Balancer and an Internal Load Balancer. + - `FrontendIPConfiguration `: Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration. + - `Name `: The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource. + - `[PrivateIPAddress ]`: The virtual network private IP address of the IP configuration. - `[PublicIPAddressId ]`: Resource Id - `[SubnetId ]`: Resource Id - - `[Name ]`: Resource Name - - `[SwappableCloudService ]`: + - `Name `: The name of the Load balancer + - `[Id ]`: Resource Id + - `[SwappableCloudService ]`: The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap. This property cannot be updated once it is set. The swappable cloud service referred by this id must be present otherwise an error will be thrown. - `[Id ]`: Resource Id - `[OSProfile ]`: Describes the OS profile for the cloud service. - `[Secret ]`: Specifies set of certificates that should be installed onto the role instances. diff --git a/src/CloudService/help/Get-AzCloudServiceRoleInstance.md b/src/CloudService/help/Get-AzCloudServiceRoleInstance.md index 4ee8f78c7769..c99e5851f854 100644 --- a/src/CloudService/help/Get-AzCloudServiceRoleInstance.md +++ b/src/CloudService/help/Get-AzCloudServiceRoleInstance.md @@ -181,7 +181,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstance ## NOTES @@ -195,6 +195,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter - `[CloudServiceName ]`: - `[Id ]`: Resource identity path + - `[Location ]`: Name of the location that the OS version pertains to. + - `[OSFamilyName ]`: Name of the OS family. + - `[OSVersionName ]`: Name of the OS version. - `[ResourceGroupName ]`: - `[RoleInstanceName ]`: Name of the role instance. - `[RoleName ]`: Name of the role. diff --git a/src/CloudService/help/Get-AzCloudServiceRoleInstanceView.md b/src/CloudService/help/Get-AzCloudServiceRoleInstanceView.md index 6681ae1a78a4..3406393e221a 100644 --- a/src/CloudService/help/Get-AzCloudServiceRoleInstanceView.md +++ b/src/CloudService/help/Get-AzCloudServiceRoleInstanceView.md @@ -119,7 +119,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.IRoleInstanceView ## NOTES diff --git a/src/CloudService/help/Invoke-AzCloudServiceRebuild.md b/src/CloudService/help/Invoke-AzCloudServiceRebuild.md index a6e2b7af320b..2b2a28450426 100644 --- a/src/CloudService/help/Invoke-AzCloudServiceRebuild.md +++ b/src/CloudService/help/Invoke-AzCloudServiceRebuild.md @@ -241,6 +241,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter - `[CloudServiceName ]`: - `[Id ]`: Resource identity path + - `[Location ]`: Name of the location that the OS version pertains to. + - `[OSFamilyName ]`: Name of the OS family. + - `[OSVersionName ]`: Name of the OS version. - `[ResourceGroupName ]`: - `[RoleInstanceName ]`: Name of the role instance. - `[RoleName ]`: Name of the role. diff --git a/src/CloudService/help/Invoke-AzCloudServiceReimage.md b/src/CloudService/help/Invoke-AzCloudServiceReimage.md index 69f7fc44537b..4635f7b76117 100644 --- a/src/CloudService/help/Invoke-AzCloudServiceReimage.md +++ b/src/CloudService/help/Invoke-AzCloudServiceReimage.md @@ -239,6 +239,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter - `[CloudServiceName ]`: - `[Id ]`: Resource identity path + - `[Location ]`: Name of the location that the OS version pertains to. + - `[OSFamilyName ]`: Name of the OS family. + - `[OSVersionName ]`: Name of the OS version. - `[ResourceGroupName ]`: - `[RoleInstanceName ]`: Name of the role instance. - `[RoleName ]`: Name of the role. diff --git a/src/CloudService/help/Invoke-AzCloudServiceRoleInstanceRebuild.md b/src/CloudService/help/Invoke-AzCloudServiceRoleInstanceRebuild.md index 98cc1850be31..26b3e2c8c810 100644 --- a/src/CloudService/help/Invoke-AzCloudServiceRoleInstanceRebuild.md +++ b/src/CloudService/help/Invoke-AzCloudServiceRoleInstanceRebuild.md @@ -232,6 +232,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter - `[CloudServiceName ]`: - `[Id ]`: Resource identity path + - `[Location ]`: Name of the location that the OS version pertains to. + - `[OSFamilyName ]`: Name of the OS family. + - `[OSVersionName ]`: Name of the OS version. - `[ResourceGroupName ]`: - `[RoleInstanceName ]`: Name of the role instance. - `[RoleName ]`: Name of the role. diff --git a/src/CloudService/help/Invoke-AzCloudServiceRoleInstanceReimage.md b/src/CloudService/help/Invoke-AzCloudServiceRoleInstanceReimage.md index 62924304a699..04670a8d7279 100644 --- a/src/CloudService/help/Invoke-AzCloudServiceRoleInstanceReimage.md +++ b/src/CloudService/help/Invoke-AzCloudServiceRoleInstanceReimage.md @@ -230,6 +230,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter - `[CloudServiceName ]`: - `[Id ]`: Resource identity path + - `[Location ]`: Name of the location that the OS version pertains to. + - `[OSFamilyName ]`: Name of the OS family. + - `[OSVersionName ]`: Name of the OS version. - `[ResourceGroupName ]`: - `[RoleInstanceName ]`: Name of the role instance. - `[RoleName ]`: Name of the role. diff --git a/src/CloudService/help/New-AzCloudService.md b/src/CloudService/help/New-AzCloudService.md index 196bfb4a2bb4..599e5967188d 100644 --- a/src/CloudService/help/New-AzCloudService.md +++ b/src/CloudService/help/New-AzCloudService.md @@ -15,11 +15,11 @@ Please note some properties can be set only during cloud service creation. ``` New-AzCloudService -Name -ResourceGroupName -Location [-SubscriptionId ] - [-Configuration ] [-ConfigurationUrl ] [-ExtensionProfile ] - [-NetworkProfile ] [-OSProfile ] [-PackageUrl ] - [-RoleProfile ] [-StartCloudService] [-Tag ] - [-UpgradeMode ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] + [-AllowModelOverride] [-Configuration ] [-ConfigurationUrl ] + [-ExtensionProfile ] [-NetworkProfile ] + [-OSProfile ] [-PackageUrl ] [-RoleProfile ] + [-StartCloudService] [-Tag ] [-UpgradeMode ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -179,6 +179,21 @@ Above set of commands creates a cloud service with single role and certificate f ## PARAMETERS +### -AllowModelOverride +(Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override the role instance count and vm size specified in the .cscfg and .csdef respectively.The default value is `false`. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -AsJob Run the command as a job @@ -245,7 +260,7 @@ Describes a cloud service extension profile. To construct, see NOTES section for EXTENSIONPROFILE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceExtensionProfile Parameter Sets: (All) Aliases: @@ -291,7 +306,7 @@ Network Profile for the cloud service. To construct, see NOTES section for NETWORKPROFILE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceNetworkProfile Parameter Sets: (All) Aliases: @@ -322,7 +337,7 @@ Describes the OS profile for the cloud service. To construct, see NOTES section for OSPROFILE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceOSProfile Parameter Sets: (All) Aliases: @@ -369,7 +384,7 @@ Describes the role profile for the cloud service. To construct, see NOTES section for ROLEPROFILE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudServiceRoleProfile Parameter Sets: (All) Aliases: @@ -486,7 +501,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService ## NOTES @@ -512,14 +527,15 @@ EXTENSIONPROFILE : Describes a cloud service exte - `[TypeHandlerVersion ]`: Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance. NETWORKPROFILE : Network Profile for the cloud service. - - `[LoadBalancerConfiguration ]`: The list of load balancer configurations for the cloud service. - - `[FrontendIPConfiguration ]`: List of IP - - `[Name ]`: - - `[PrivateIPAddress ]`: The private IP address referenced by the cloud service. + - `[LoadBalancerConfiguration ]`: List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to a Public Load Balancer and an Internal Load Balancer. + - `FrontendIPConfiguration `: Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration. + - `Name `: The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource. + - `[PrivateIPAddress ]`: The virtual network private IP address of the IP configuration. - `[PublicIPAddressId ]`: Resource Id - `[SubnetId ]`: Resource Id - - `[Name ]`: Resource Name - - `[SwappableCloudService ]`: + - `Name `: The name of the Load balancer + - `[Id ]`: Resource Id + - `[SwappableCloudService ]`: The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap. This property cannot be updated once it is set. The swappable cloud service referred by this id must be present otherwise an error will be thrown. - `[Id ]`: Resource Id OSPROFILE : Describes the OS profile for the cloud service. diff --git a/src/CloudService/help/New-AzCloudServiceDiagnosticsExtension.md b/src/CloudService/help/New-AzCloudServiceDiagnosticsExtension.md index 1726cc7ebe67..bdd80e98e8cc 100644 --- a/src/CloudService/help/New-AzCloudServiceDiagnosticsExtension.md +++ b/src/CloudService/help/New-AzCloudServiceDiagnosticsExtension.md @@ -1,7 +1,7 @@ --- external help file: Module Name: Az.CloudService -online version: https://docs.microsoft.com/powershell/module/az.cloudservice/new-azcloudservicediagnosticsextension +online version: https://docs.microsoft.com/powershell/module/az.CloudService/New-AzCloudServiceDiagnosticsExtension schema: 2.0.0 --- @@ -194,7 +194,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.Extension ## NOTES diff --git a/src/CloudService/help/New-AzCloudServiceExtensionObject.md b/src/CloudService/help/New-AzCloudServiceExtensionObject.md index 20635909762e..1f3c08281619 100644 --- a/src/CloudService/help/New-AzCloudServiceExtensionObject.md +++ b/src/CloudService/help/New-AzCloudServiceExtensionObject.md @@ -160,7 +160,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.Extension ## NOTES diff --git a/src/CloudService/help/New-AzCloudServiceLoadBalancerConfigurationObject.md b/src/CloudService/help/New-AzCloudServiceLoadBalancerConfigurationObject.md index 3403f35a1970..d6b93299daae 100644 --- a/src/CloudService/help/New-AzCloudServiceLoadBalancerConfigurationObject.md +++ b/src/CloudService/help/New-AzCloudServiceLoadBalancerConfigurationObject.md @@ -39,7 +39,7 @@ FrontendIPConfiguration. To construct, see NOTES section for FRONTENDIPCONFIGURATION properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration[] +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ILoadBalancerFrontendIPConfiguration[] Parameter Sets: (All) Aliases: @@ -72,7 +72,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfiguration +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerConfiguration ## NOTES @@ -84,8 +84,8 @@ To create the parameters described below, construct a hash table containing the FRONTENDIPCONFIGURATION : FrontendIPConfiguration. - - `[Name ]`: - - `[PrivateIPAddress ]`: The private IP address referenced by the cloud service. + - `Name `: The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource. + - `[PrivateIPAddress ]`: The virtual network private IP address of the IP configuration. - `[PublicIPAddressId ]`: Resource Id - `[SubnetId ]`: Resource Id diff --git a/src/CloudService/help/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.md b/src/CloudService/help/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.md index 9185ffeff0ee..e042926ecc53 100644 --- a/src/CloudService/help/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.md +++ b/src/CloudService/help/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.md @@ -71,7 +71,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfiguration +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.LoadBalancerFrontendIPConfiguration ## NOTES diff --git a/src/CloudService/help/New-AzCloudServiceRemoteDesktopExtensionObject.md b/src/CloudService/help/New-AzCloudServiceRemoteDesktopExtensionObject.md index e9291b057e92..408ac9901d68 100644 --- a/src/CloudService/help/New-AzCloudServiceRemoteDesktopExtensionObject.md +++ b/src/CloudService/help/New-AzCloudServiceRemoteDesktopExtensionObject.md @@ -1,7 +1,7 @@ --- external help file: Module Name: Az.CloudService -online version: https://docs.microsoft.com/powershell/module/az.cloudservice/new-azcloudserviceremotedesktopextensionobject +online version: https://docs.microsoft.com/powershell/module/az.CloudService/New-AzCloudServiceRemoteDesktopExtensionObject schema: 2.0.0 --- @@ -132,7 +132,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.Extension ## NOTES diff --git a/src/CloudService/help/New-AzCloudServiceRoleProfilePropertiesObject.md b/src/CloudService/help/New-AzCloudServiceRoleProfilePropertiesObject.md index b2581ae813e1..860c0efa0fbb 100644 --- a/src/CloudService/help/New-AzCloudServiceRoleProfilePropertiesObject.md +++ b/src/CloudService/help/New-AzCloudServiceRoleProfilePropertiesObject.md @@ -99,7 +99,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfileProperties +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceRoleProfileProperties ## NOTES diff --git a/src/CloudService/help/New-AzCloudServiceVaultSecretGroupObject.md b/src/CloudService/help/New-AzCloudServiceVaultSecretGroupObject.md index 8be9b3390153..5040cdcd52f1 100644 --- a/src/CloudService/help/New-AzCloudServiceVaultSecretGroupObject.md +++ b/src/CloudService/help/New-AzCloudServiceVaultSecretGroupObject.md @@ -70,7 +70,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultSecretGroup +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudServiceVaultSecretGroup ## NOTES diff --git a/src/CloudService/help/Remove-AzCloudService.md b/src/CloudService/help/Remove-AzCloudService.md index ef0c9266ec99..dd00fc089780 100644 --- a/src/CloudService/help/Remove-AzCloudService.md +++ b/src/CloudService/help/Remove-AzCloudService.md @@ -214,6 +214,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter - `[CloudServiceName ]`: - `[Id ]`: Resource identity path + - `[Location ]`: Name of the location that the OS version pertains to. + - `[OSFamilyName ]`: Name of the OS family. + - `[OSVersionName ]`: Name of the OS version. - `[ResourceGroupName ]`: - `[RoleInstanceName ]`: Name of the role instance. - `[RoleName ]`: Name of the role. diff --git a/src/CloudService/help/Remove-AzCloudServiceRoleInstance.md b/src/CloudService/help/Remove-AzCloudServiceRoleInstance.md index afa0c5088194..16722d400545 100644 --- a/src/CloudService/help/Remove-AzCloudServiceRoleInstance.md +++ b/src/CloudService/help/Remove-AzCloudServiceRoleInstance.md @@ -231,6 +231,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter - `[CloudServiceName ]`: - `[Id ]`: Resource identity path + - `[Location ]`: Name of the location that the OS version pertains to. + - `[OSFamilyName ]`: Name of the OS family. + - `[OSVersionName ]`: Name of the OS version. - `[ResourceGroupName ]`: - `[RoleInstanceName ]`: Name of the role instance. - `[RoleName ]`: Name of the role. diff --git a/src/CloudService/help/Restart-AzCloudService.md b/src/CloudService/help/Restart-AzCloudService.md index 8fdeff328f13..65a66187b468 100644 --- a/src/CloudService/help/Restart-AzCloudService.md +++ b/src/CloudService/help/Restart-AzCloudService.md @@ -239,6 +239,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter - `[CloudServiceName ]`: - `[Id ]`: Resource identity path + - `[Location ]`: Name of the location that the OS version pertains to. + - `[OSFamilyName ]`: Name of the OS family. + - `[OSVersionName ]`: Name of the OS version. - `[ResourceGroupName ]`: - `[RoleInstanceName ]`: Name of the role instance. - `[RoleName ]`: Name of the role. diff --git a/src/CloudService/help/Restart-AzCloudServiceRoleInstance.md b/src/CloudService/help/Restart-AzCloudServiceRoleInstance.md index a87845f81774..fc0efa1d58e8 100644 --- a/src/CloudService/help/Restart-AzCloudServiceRoleInstance.md +++ b/src/CloudService/help/Restart-AzCloudServiceRoleInstance.md @@ -230,6 +230,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter - `[CloudServiceName ]`: - `[Id ]`: Resource identity path + - `[Location ]`: Name of the location that the OS version pertains to. + - `[OSFamilyName ]`: Name of the OS family. + - `[OSVersionName ]`: Name of the OS version. - `[ResourceGroupName ]`: - `[RoleInstanceName ]`: Name of the role instance. - `[RoleName ]`: Name of the role. diff --git a/src/CloudService/help/Start-AzCloudService.md b/src/CloudService/help/Start-AzCloudService.md index 6fde47afa887..6476f2171097 100644 --- a/src/CloudService/help/Start-AzCloudService.md +++ b/src/CloudService/help/Start-AzCloudService.md @@ -214,6 +214,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter - `[CloudServiceName ]`: - `[Id ]`: Resource identity path + - `[Location ]`: Name of the location that the OS version pertains to. + - `[OSFamilyName ]`: Name of the OS family. + - `[OSVersionName ]`: Name of the OS version. - `[ResourceGroupName ]`: - `[RoleInstanceName ]`: Name of the role instance. - `[RoleName ]`: Name of the role. diff --git a/src/CloudService/help/Stop-AzCloudService.md b/src/CloudService/help/Stop-AzCloudService.md index 5639e5980a58..3f297e60ce13 100644 --- a/src/CloudService/help/Stop-AzCloudService.md +++ b/src/CloudService/help/Stop-AzCloudService.md @@ -216,6 +216,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter - `[CloudServiceName ]`: - `[Id ]`: Resource identity path + - `[Location ]`: Name of the location that the OS version pertains to. + - `[OSFamilyName ]`: Name of the OS family. + - `[OSVersionName ]`: Name of the OS version. - `[ResourceGroupName ]`: - `[RoleInstanceName ]`: Name of the role instance. - `[RoleName ]`: Name of the role. diff --git a/src/CloudService/help/Switch-AzCloudService.md b/src/CloudService/help/Switch-AzCloudService.md index eba879bb3a15..469bf4df0107 100644 --- a/src/CloudService/help/Switch-AzCloudService.md +++ b/src/CloudService/help/Switch-AzCloudService.md @@ -84,7 +84,7 @@ Accept wildcard characters: False To construct, see NOTES section for CLOUDSERVICE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.CloudService Parameter Sets: CloudService Aliases: @@ -207,6 +207,7 @@ To create the parameters described below, construct a hash table containing the CLOUDSERVICE : - `Location `: Resource location. + - `[AllowModelOverride ]`: (Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override the role instance count and vm size specified in the .cscfg and .csdef respectively. The default value is `false`. - `[Configuration ]`: Specifies the XML service configuration (.cscfg) for the cloud service. - `[ConfigurationUrl ]`: Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. - `[ExtensionProfile ]`: Describes a cloud service extension profile. @@ -223,14 +224,15 @@ CLOUDSERVICE : - `[Type ]`: Specifies the type of the extension. - `[TypeHandlerVersion ]`: Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance. - `[NetworkProfile ]`: Network Profile for the cloud service. - - `[LoadBalancerConfiguration ]`: The list of load balancer configurations for the cloud service. - - `[FrontendIPConfiguration ]`: List of IP - - `[Name ]`: - - `[PrivateIPAddress ]`: The private IP address referenced by the cloud service. + - `[LoadBalancerConfiguration ]`: List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to a Public Load Balancer and an Internal Load Balancer. + - `FrontendIPConfiguration `: Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration. + - `Name `: The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource. + - `[PrivateIPAddress ]`: The virtual network private IP address of the IP configuration. - `[PublicIPAddressId ]`: Resource Id - `[SubnetId ]`: Resource Id - - `[Name ]`: Resource Name - - `[SwappableCloudService ]`: + - `Name `: The name of the Load balancer + - `[Id ]`: Resource Id + - `[SwappableCloudService ]`: The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap. This property cannot be updated once it is set. The swappable cloud service referred by this id must be present otherwise an error will be thrown. - `[Id ]`: Resource Id - `[OSProfile ]`: Describes the OS profile for the cloud service. - `[Secret ]`: Specifies set of certificates that should be installed onto the role instances. diff --git a/src/CloudService/help/Update-AzCloudService.md b/src/CloudService/help/Update-AzCloudService.md index 2ac206e9fb7e..bd83ef788dfb 100644 --- a/src/CloudService/help/Update-AzCloudService.md +++ b/src/CloudService/help/Update-AzCloudService.md @@ -151,7 +151,7 @@ Describes the cloud service. To construct, see NOTES section for PARAMETER properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService Parameter Sets: (All) Aliases: @@ -198,13 +198,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService ### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ICloudService ## NOTES @@ -218,6 +218,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter - `[CloudServiceName ]`: - `[Id ]`: Resource identity path + - `[Location ]`: Name of the location that the OS version pertains to. + - `[OSFamilyName ]`: Name of the OS family. + - `[OSVersionName ]`: Name of the OS version. - `[ResourceGroupName ]`: - `[RoleInstanceName ]`: Name of the role instance. - `[RoleName ]`: Name of the role. @@ -226,6 +229,7 @@ INPUTOBJECT : Identity Parameter PARAMETER : Describes the cloud service. - `Location `: Resource location. + - `[AllowModelOverride ]`: (Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override the role instance count and vm size specified in the .cscfg and .csdef respectively. The default value is `false`. - `[Configuration ]`: Specifies the XML service configuration (.cscfg) for the cloud service. - `[ConfigurationUrl ]`: Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. - `[ExtensionProfile ]`: Describes a cloud service extension profile. @@ -242,14 +246,15 @@ PARAMETER : Describes the cloud service. - `[Type ]`: Specifies the type of the extension. - `[TypeHandlerVersion ]`: Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance. - `[NetworkProfile ]`: Network Profile for the cloud service. - - `[LoadBalancerConfiguration ]`: The list of load balancer configurations for the cloud service. - - `[FrontendIPConfiguration ]`: List of IP - - `[Name ]`: - - `[PrivateIPAddress ]`: The private IP address referenced by the cloud service. + - `[LoadBalancerConfiguration ]`: List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to a Public Load Balancer and an Internal Load Balancer. + - `FrontendIPConfiguration `: Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration. + - `Name `: The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource. + - `[PrivateIPAddress ]`: The virtual network private IP address of the IP configuration. - `[PublicIPAddressId ]`: Resource Id - `[SubnetId ]`: Resource Id - - `[Name ]`: Resource Name - - `[SwappableCloudService ]`: + - `Name `: The name of the Load balancer + - `[Id ]`: Resource Id + - `[SwappableCloudService ]`: The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap. This property cannot be updated once it is set. The swappable cloud service referred by this id must be present otherwise an error will be thrown. - `[Id ]`: Resource Id - `[OSProfile ]`: Describes the OS profile for the cloud service. - `[Secret ]`: Specifies set of certificates that should be installed onto the role instances. diff --git a/src/CloudService/how-to.md b/src/CloudService/how-to.md index 55bb2d72a375..4cd2cc484735 100644 --- a/src/CloudService/how-to.md +++ b/src/CloudService/how-to.md @@ -14,7 +14,7 @@ To generate documentation, the process is now integrated into the `build-module. To test the cmdlets, we use [Pester](https://github.com/pester/Pester). Tests scripts (`.ps1`) should be added to the `test` folder. To execute the Pester tests, run the `test-module.ps1` script. This will run all tests in `playback` mode within the `test` folder. To read more about testing cmdlets, look at the [readme.md](examples/readme.md) in the `examples` folder. ## Packing `Az.CloudService` -To pack `Az.CloudService` for distribution, run the `pack-module.ps1` script. This will take the contents of multiple directories and certain root-folder files to create a `.nupkg`. The structure of the `.nupkg` is created so it can be loaded part of a [PSRepository](https://docs.microsoft.com/en-us/powershell/module/powershellget/register-psrepository). Additionally, this package is in a format for distribution to the [PSGallery](https://www.powershellgallery.com/). For signing an Azure module, please contact the [Azure PowerShell](https://github.com/Azure/azure-powershell) team. +To pack `Az.CloudService` for distribution, run the `pack-module.ps1` script. This will take the contents of multiple directories and certain root-folder files to create a `.nupkg`. The structure of the `.nupkg` is created so it can be loaded part of a [PSRepository](https://docs.microsoft.com/powershell/module/powershellget/register-psrepository). Additionally, this package is in a format for distribution to the [PSGallery](https://www.powershellgallery.com/). For signing an Azure module, please contact the [Azure PowerShell](https://github.com/Azure/azure-powershell) team. ## Module Script Details There are multiple scripts created for performing different actions for developing `Az.CloudService`. diff --git a/src/CloudService/readme.md b/src/CloudService/readme.md index 76efe4513ac5..f67ba1dc66ec 100644 --- a/src/CloudService/readme.md +++ b/src/CloudService/readme.md @@ -47,12 +47,12 @@ In this directory, run AutoRest: > see https://aka.ms/autorest ``` yaml -branch: 88fa0d128fbcf2d1ff3b330add6b4425c84f4149 +branch: 7b19bbd8ee63fa724edf5c780b63ae038312d2b1 require: - $(this-folder)/../readme.azure.noprofile.md input-file: # - $(this-folder)/resources/CloudService.json - - $(repo)/specification/compute/resource-manager/Microsoft.Compute/preview/2020-10-01-preview/cloudService.json + - $(repo)/specification/compute/resource-manager/Microsoft.Compute/stable/2021-03-01/cloudService.json title: CloudService module-version: 0.1.0 @@ -60,6 +60,14 @@ module-version: 0.1.0 identity-correction-for-post: true directive: + - where: + subject: ^CloudServiceOperatingSystemOSFamily$ + set: + subject: CloudServiceOSFamily + - where: + subject: ^CloudServiceOperatingSystemOSVersion$ + set: + subject: CloudServiceOSVersion - where: variant: ^Restart$|^RestartViaIdentity$|^Reimage$|^ReimageViaIdentity$|^Rebuild$|^RebuildViaIdentity$ subject: ^CloudService$|^RebuildCloudService$ @@ -239,6 +247,24 @@ directive: - Location - SkuName - SkuTier + - where: + model-name: OSVersion + set: + format-table: + properties: + - Name + - Label + - IsDefault + - IsActive + - Family + - FamilyLabel + - where: + model-name: OSFamily + set: + format-table: + properties: + - Name + - Label - where: model-name: CloudServiceInstanceView diff --git a/src/CloudService/test/Get-AzCloudService.Recording.json b/src/CloudService/test/Get-AzCloudService.Recording.json index 4b5971cad0ac..c3da81145c73 100644 --- a/src/CloudService/test/Get-AzCloudService.Recording.json +++ b/src/CloudService/test/Get-AzCloudService.Recording.json @@ -1,12 +1,13 @@ { - "Get-AzCloudService+[NoContext]+List cloud service in subscription+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/cloudServices?api-version=2020-10-01-preview+1": { + "Get-AzCloudService+[NoContext]+List cloud service in subscription+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/cloudServices?api-version=2021-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/cloudServices?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/cloudServices?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "1" ], - "x-ms-client-request-id": [ "e3e64b6c-248b-4af8-ade6-60774b1a08ab" ], + "x-ms-unique-id": [ "17" ], + "x-ms-client-request-id": [ "c43155f2-b25f-46c9-977e-dab7087ff1fe" ], "CommandName": [ "Get-AzCloudService" ], "FullCommandName": [ "Get-AzCloudService_List" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -22,30 +23,33 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "e8e1d83e-151d-4d78-ba16-d3a88fbda981" ], + "x-ms-request-id": [ "ecc21760-395f-4a2e-9c66-4216e9dc8fe9" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/GetCloudService3Min;396,Microsoft.Compute/GetCloudService30Min;2593" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], - "x-ms-correlation-request-id": [ "7fc117ee-5aaa-45aa-9124-bfa1b789d0a2" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T105756Z:7fc117ee-5aaa-45aa-9124-bfa1b789d0a2" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11942" ], + "x-ms-correlation-request-id": [ "33af3409-3916-442a-a9eb-d7fcd0fc8779" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T010709Z:33af3409-3916-442a-a9eb-d7fcd0fc8779" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 10:57:56 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:07:09 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "8174" ], + "Content-Length": [ "3852" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"cscmdlettest8e9vwp0g\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTMOK02HEQ/providers/Microsoft.Compute/cloudServices/cscmdlettest8e9vwp0g\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Auto\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestmok02heq/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"name\": \"GenevaExtension\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Succeeded\",\r\n \"rolesAppliedTo\": [\r\n \"*\"\r\n ],\r\n \"publisher\": \"Microsoft.Azure.Geneva\",\r\n \"type\": \"GenevaMonitoringPaaS\",\r\n \"typeHandlerVersion\": \"2.14.0.2\",\r\n \"settings\": \"\"\r\n }\r\n },\r\n {\r\n \"name\": \"youri\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Succeeded\",\r\n \"enableAutomaticUpgrade\": true,\r\n \"rolesAppliedTo\": [\r\n \"WebRole\",\r\n \"WorkerRole\"\r\n ],\r\n \"publisher\": \"Microsoft.Windows.Azure.Extensions\",\r\n \"type\": \"RDP\",\r\n \"typeHandlerVersion\": \"1.2.1\",\r\n \"settings\": \"\u003cPublicConfig\u003e\u003cUserName\u003eyouri\u003c/UserName\u003e\u003cExpiration\u003eThu, 25 Feb 2021 08:58:52 GMT\u003c/Expiration\u003e\u003c/PublicConfig\u003e\"\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"0fcc93cc-d360-4c5d-abb0-10eb4e5ffc18\"\r\n }\r\n },\r\n {\r\n \"name\": \"cscmdlettest1p3wg7ft\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Auto\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"name\": \"GenevaExtension\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Succeeded\",\r\n \"rolesAppliedTo\": [\r\n \"*\"\r\n ],\r\n \"publisher\": \"Microsoft.Azure.Geneva\",\r\n \"type\": \"GenevaMonitoringPaaS\",\r\n \"typeHandlerVersion\": \"2.14.0.2\",\r\n \"settings\": \"\"\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"00541f30-ad0f-4939-86c9-178056f1b29a\"\r\n }\r\n }\r\n ]\r\n}" + "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"cscmdlettestoe6r0n2k\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Manual\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Network/publicIPAddresses/cscmdlettestip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"name\": \"RDPExtension\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Succeeded\",\r\n \"rolesAppliedTo\": [\r\n \"*\"\r\n ],\r\n \"publisher\": \"Microsoft.Windows.Azure.Extensions\",\r\n \"type\": \"RDP\",\r\n \"typeHandlerVersion\": \"1.2.1\",\r\n \"settings\": \"\u003cPublicConfig\u003e\u003cUserName\u003euserazure\u003c/UserName\u003e\u003cExpiration\u003e03/25/2022 18:01:31\u003c/Expiration\u003e\u003c/PublicConfig\u003e\"\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"25056192-64fb-42b6-b81f-37e6b25c1515\"\r\n }\r\n }\r\n ]\r\n}", + "isContentBase64": false } }, - "Get-AzCloudService+[NoContext]+List cloud service in ResourceGroup+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices?api-version=2020-10-01-preview+1": { + "Get-AzCloudService+[NoContext]+List cloud service in ResourceGroup+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices?api-version=2021-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "2" ], - "x-ms-client-request-id": [ "16e28f05-72bb-4bbe-be3a-46ebfc18af3a" ], + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "7c7ca01c-a592-4148-944c-6fba52b34785" ], "CommandName": [ "Get-AzCloudService" ], "FullCommandName": [ "Get-AzCloudService_List1" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -61,30 +65,33 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "5d36ac4c-8ab3-4dee-855a-a83185eaaf75" ], + "x-ms-request-id": [ "e2cf2296-9e44-4d14-b5af-1e2229b04e5f" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/GetCloudService3Min;395,Microsoft.Compute/GetCloudService30Min;2592" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], - "x-ms-correlation-request-id": [ "6876167d-a8c0-4829-a8e5-52fded6a831b" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T105757Z:6876167d-a8c0-4829-a8e5-52fded6a831b" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11941" ], + "x-ms-correlation-request-id": [ "2a5cfd06-97ff-4cfc-a6b6-22a41672b4e1" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T010710Z:2a5cfd06-97ff-4cfc-a6b6-22a41672b4e1" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 10:57:56 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:07:09 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "3763" ], + "Content-Length": [ "3852" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"cscmdlettest1p3wg7ft\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Auto\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"name\": \"GenevaExtension\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Succeeded\",\r\n \"rolesAppliedTo\": [\r\n \"*\"\r\n ],\r\n \"publisher\": \"Microsoft.Azure.Geneva\",\r\n \"type\": \"GenevaMonitoringPaaS\",\r\n \"typeHandlerVersion\": \"2.14.0.2\",\r\n \"settings\": \"\"\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"00541f30-ad0f-4939-86c9-178056f1b29a\"\r\n }\r\n }\r\n ]\r\n}" + "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"cscmdlettestoe6r0n2k\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Manual\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Network/publicIPAddresses/cscmdlettestip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"name\": \"RDPExtension\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Succeeded\",\r\n \"rolesAppliedTo\": [\r\n \"*\"\r\n ],\r\n \"publisher\": \"Microsoft.Windows.Azure.Extensions\",\r\n \"type\": \"RDP\",\r\n \"typeHandlerVersion\": \"1.2.1\",\r\n \"settings\": \"\u003cPublicConfig\u003e\u003cUserName\u003euserazure\u003c/UserName\u003e\u003cExpiration\u003e03/25/2022 18:01:31\u003c/Expiration\u003e\u003c/PublicConfig\u003e\"\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"25056192-64fb-42b6-b81f-37e6b25c1515\"\r\n }\r\n }\r\n ]\r\n}", + "isContentBase64": false } }, - "Get-AzCloudService+[NoContext]+Get cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft?api-version=2020-10-01-preview+1": { + "Get-AzCloudService+[NoContext]+Get cloud service+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k?api-version=2021-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "3" ], - "x-ms-client-request-id": [ "7a87bc90-0199-464b-bed0-27240d51b168" ], + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "552fd6a8-4951-4f41-a008-cdaffd66ce40" ], "CommandName": [ "Get-AzCloudService" ], "FullCommandName": [ "Get-AzCloudService_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -100,30 +107,33 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "2949af03-8cea-4129-a006-e4238e9c8d0f" ], + "x-ms-request-id": [ "0dadaf13-579c-4305-b825-5cc89258a66a" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/GetCloudService3Min;394,Microsoft.Compute/GetCloudService30Min;2591" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], - "x-ms-correlation-request-id": [ "19d4d7e2-d63e-4151-9dff-2b4a9cf0eba6" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T105757Z:19d4d7e2-d63e-4151-9dff-2b4a9cf0eba6" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11940" ], + "x-ms-correlation-request-id": [ "d2a9b8bc-5d41-45ad-bdd2-75847fcda191" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T010710Z:d2a9b8bc-5d41-45ad-bdd2-75847fcda191" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 10:57:57 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:07:09 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "3522" ], + "Content-Length": [ "3611" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"name\": \"cscmdlettest1p3wg7ft\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Auto\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"name\": \"GenevaExtension\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Succeeded\",\r\n \"rolesAppliedTo\": [\r\n \"*\"\r\n ],\r\n \"publisher\": \"Microsoft.Azure.Geneva\",\r\n \"type\": \"GenevaMonitoringPaaS\",\r\n \"typeHandlerVersion\": \"2.14.0.2\",\r\n \"settings\": \"\"\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"00541f30-ad0f-4939-86c9-178056f1b29a\"\r\n }\r\n}" + "Content": "{\r\n \"name\": \"cscmdlettestoe6r0n2k\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Manual\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Network/publicIPAddresses/cscmdlettestip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"name\": \"RDPExtension\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Succeeded\",\r\n \"rolesAppliedTo\": [\r\n \"*\"\r\n ],\r\n \"publisher\": \"Microsoft.Windows.Azure.Extensions\",\r\n \"type\": \"RDP\",\r\n \"typeHandlerVersion\": \"1.2.1\",\r\n \"settings\": \"\u003cPublicConfig\u003e\u003cUserName\u003euserazure\u003c/UserName\u003e\u003cExpiration\u003e03/25/2022 18:01:31\u003c/Expiration\u003e\u003c/PublicConfig\u003e\"\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"25056192-64fb-42b6-b81f-37e6b25c1515\"\r\n }\r\n}", + "isContentBase64": false } }, - "Get-AzCloudService+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft?api-version=2020-10-01-preview+1": { + "Get-AzCloudService+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k?api-version=2021-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "4" ], - "x-ms-client-request-id": [ "9c72a94d-f660-4f34-b159-6cc22803b6a3" ], + "x-ms-unique-id": [ "20" ], + "x-ms-client-request-id": [ "5fa243c1-8764-4b36-82b5-222c6a0ae78d" ], "CommandName": [ "Get-AzCloudService" ], "FullCommandName": [ "Get-AzCloudService_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -139,30 +149,33 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "49496c9b-02f4-4b84-b9b9-dbfa7e40342d" ], + "x-ms-request-id": [ "3bd0d458-ffe6-4b4c-bdf1-1d7f28d721e2" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/GetCloudService3Min;393,Microsoft.Compute/GetCloudService30Min;2590" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], - "x-ms-correlation-request-id": [ "d56d8ace-1fcc-4fdb-a583-681f9b483016" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T105757Z:d56d8ace-1fcc-4fdb-a583-681f9b483016" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11939" ], + "x-ms-correlation-request-id": [ "9456d6f2-e7ca-4d9b-8c7a-2269d894f0f7" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T010710Z:9456d6f2-e7ca-4d9b-8c7a-2269d894f0f7" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 10:57:57 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:07:10 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "3522" ], + "Content-Length": [ "3611" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"name\": \"cscmdlettest1p3wg7ft\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Auto\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"name\": \"GenevaExtension\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Succeeded\",\r\n \"rolesAppliedTo\": [\r\n \"*\"\r\n ],\r\n \"publisher\": \"Microsoft.Azure.Geneva\",\r\n \"type\": \"GenevaMonitoringPaaS\",\r\n \"typeHandlerVersion\": \"2.14.0.2\",\r\n \"settings\": \"\"\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"00541f30-ad0f-4939-86c9-178056f1b29a\"\r\n }\r\n}" + "Content": "{\r\n \"name\": \"cscmdlettestoe6r0n2k\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Manual\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Network/publicIPAddresses/cscmdlettestip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"name\": \"RDPExtension\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Succeeded\",\r\n \"rolesAppliedTo\": [\r\n \"*\"\r\n ],\r\n \"publisher\": \"Microsoft.Windows.Azure.Extensions\",\r\n \"type\": \"RDP\",\r\n \"typeHandlerVersion\": \"1.2.1\",\r\n \"settings\": \"\u003cPublicConfig\u003e\u003cUserName\u003euserazure\u003c/UserName\u003e\u003cExpiration\u003e03/25/2022 18:01:31\u003c/Expiration\u003e\u003c/PublicConfig\u003e\"\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"25056192-64fb-42b6-b81f-37e6b25c1515\"\r\n }\r\n}", + "isContentBase64": false } }, - "Get-AzCloudService+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft?api-version=2020-10-01-preview+2": { + "Get-AzCloudService+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k?api-version=2021-03-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "5" ], - "x-ms-client-request-id": [ "f509d477-2f85-41eb-a1cc-c54710f120be" ], + "x-ms-unique-id": [ "21" ], + "x-ms-client-request-id": [ "73a2fa95-ec98-40fe-a4f9-028c80acf6e2" ], "CommandName": [ "Get-AzCloudService" ], "FullCommandName": [ "Get-AzCloudService_GetViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -178,20 +191,22 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "6d04946e-582a-4374-9de5-fb0447753388" ], + "x-ms-request-id": [ "3575c2da-7b3d-4b36-b9b2-5e4f1326dccb" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/GetCloudService3Min;392,Microsoft.Compute/GetCloudService30Min;2589" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], - "x-ms-correlation-request-id": [ "db75e0d8-0c3d-4be5-81b6-416db66045ae" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T105758Z:db75e0d8-0c3d-4be5-81b6-416db66045ae" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11938" ], + "x-ms-correlation-request-id": [ "e995938f-7584-4a79-bba2-d122d60755f3" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T010711Z:e995938f-7584-4a79-bba2-d122d60755f3" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 10:57:57 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:07:10 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "3522" ], + "Content-Length": [ "3611" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"name\": \"cscmdlettest1p3wg7ft\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Auto\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"name\": \"GenevaExtension\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Succeeded\",\r\n \"rolesAppliedTo\": [\r\n \"*\"\r\n ],\r\n \"publisher\": \"Microsoft.Azure.Geneva\",\r\n \"type\": \"GenevaMonitoringPaaS\",\r\n \"typeHandlerVersion\": \"2.14.0.2\",\r\n \"settings\": \"\"\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"00541f30-ad0f-4939-86c9-178056f1b29a\"\r\n }\r\n}" + "Content": "{\r\n \"name\": \"cscmdlettestoe6r0n2k\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Manual\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Network/publicIPAddresses/cscmdlettestip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"name\": \"RDPExtension\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Succeeded\",\r\n \"rolesAppliedTo\": [\r\n \"*\"\r\n ],\r\n \"publisher\": \"Microsoft.Windows.Azure.Extensions\",\r\n \"type\": \"RDP\",\r\n \"typeHandlerVersion\": \"1.2.1\",\r\n \"settings\": \"\u003cPublicConfig\u003e\u003cUserName\u003euserazure\u003c/UserName\u003e\u003cExpiration\u003e03/25/2022 18:01:31\u003c/Expiration\u003e\u003c/PublicConfig\u003e\"\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"25056192-64fb-42b6-b81f-37e6b25c1515\"\r\n }\r\n}", + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/CloudService/test/Get-AzCloudServiceInstanceView.Recording.json b/src/CloudService/test/Get-AzCloudServiceInstanceView.Recording.json index 9b3b20443dae..db56d682740b 100644 --- a/src/CloudService/test/Get-AzCloudServiceInstanceView.Recording.json +++ b/src/CloudService/test/Get-AzCloudServiceInstanceView.Recording.json @@ -1,12 +1,13 @@ { - "Get-AzCloudServiceInstanceView+[NoContext]+Get cloud service InstanceView+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/instanceView?api-version=2020-10-01-preview+1": { + "Get-AzCloudServiceInstanceView+[NoContext]+Get cloud service InstanceView+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/instanceView?api-version=2021-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/instanceView?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/instanceView?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "1" ], - "x-ms-client-request-id": [ "93293f09-2f8a-4d37-a736-36b02628fa68" ], + "x-ms-unique-id": [ "22" ], + "x-ms-client-request-id": [ "0ebaa70c-6aa9-48ce-8bec-c69f1d474f8c" ], "CommandName": [ "Get-AzCloudServiceInstanceView" ], "FullCommandName": [ "Get-AzCloudServiceInstanceView_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -22,20 +23,22 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "caab83d4-ee84-40ee-a58c-f3c4b785b99b" ], + "x-ms-request-id": [ "aef889a6-aaa6-4817-acfb-76816091f702" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/GetCloudService3Min;391,Microsoft.Compute/GetCloudService30Min;2588" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], - "x-ms-correlation-request-id": [ "b3c9b860-94ed-43be-bbb0-7a088cc777c8" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T105929Z:b3c9b860-94ed-43be-bbb0-7a088cc777c8" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11937" ], + "x-ms-correlation-request-id": [ "54b1c170-d52b-4584-81ec-c523d8df8a5c" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T010713Z:54b1c170-d52b-4584-81ec-c523d8df8a5c" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 10:59:28 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:07:13 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1012" ], + "Content-Length": [ "1168" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"roleInstance\": {\r\n \"statusesSummary\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"count\": 4\r\n },\r\n {\r\n \"code\": \"PowerState/started\",\r\n \"count\": 4\r\n },\r\n {\r\n \"code\": \"RoleState/RoleStateStarted\",\r\n \"count\": 4\r\n }\r\n ]\r\n },\r\n \"sdkVersion\": \"2.9.6496.3\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n \"time\": \"2021-01-26T10:37:46.1840866+00:00\"\r\n },\r\n {\r\n \"code\": \"PowerState/started\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"Started\",\r\n \"time\": \"2021-01-26T10:37:46.1840866+00:00\"\r\n },\r\n {\r\n \"code\": \"CurrentUpgradeDomain/-1\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"Current Upgrade Domain of cloud service is -1.\"\r\n },\r\n {\r\n \"code\": \"MaxUpgradeDomain/1\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"Max Upgrade Domain of cloud service is 1.\"\r\n }\r\n ]\r\n}" + "Content": "{\r\n \"roleInstance\": {\r\n \"statusesSummary\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"count\": 4\r\n },\r\n {\r\n \"code\": \"PowerState/started\",\r\n \"count\": 4\r\n },\r\n {\r\n \"code\": \"RoleState/RoleStateStarted\",\r\n \"count\": 3\r\n },\r\n {\r\n \"code\": \"RoleState/RoleStateStarting\",\r\n \"count\": 1\r\n }\r\n ]\r\n },\r\n \"sdkVersion\": \"2.9.6496.3\",\r\n \"privateIds\": [\r\n \"c1893e78-9ae2-4f24-9f46-c403e4ab2d1c\"\r\n ],\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n \"time\": \"2021-03-26T01:06:35.8554316+00:00\"\r\n },\r\n {\r\n \"code\": \"PowerState/started\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"Started\",\r\n \"time\": \"2021-03-26T01:06:35.8554316+00:00\"\r\n },\r\n {\r\n \"code\": \"CurrentUpgradeDomain/-1\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"Current Upgrade Domain of cloud service is -1.\"\r\n },\r\n {\r\n \"code\": \"MaxUpgradeDomain/1\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"Max Upgrade Domain of cloud service is 1.\"\r\n }\r\n ]\r\n}", + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/CloudService/test/Get-AzCloudServiceInstanceView.Tests.ps1 b/src/CloudService/test/Get-AzCloudServiceInstanceView.Tests.ps1 index 8f54de765629..5980e9cabb4f 100644 --- a/src/CloudService/test/Get-AzCloudServiceInstanceView.Tests.ps1 +++ b/src/CloudService/test/Get-AzCloudServiceInstanceView.Tests.ps1 @@ -14,6 +14,6 @@ while(-not $mockingPath) { Describe 'Get-AzCloudServiceInstanceView' { It 'Get cloud service InstanceView' { $cloudServiceInstanceView = Get-AzCloudServiceInstanceView -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName - $cloudServiceInstanceView.RoleInstanceStatusesSummary.Count | Should -Not -Be 0 + $cloudServiceInstanceView.RoleInstanceStatusesSummary.Count | Should Not Be 0 } } diff --git a/src/CloudService/test/Get-AzCloudServiceOSFamily.Recording.json b/src/CloudService/test/Get-AzCloudServiceOSFamily.Recording.json new file mode 100644 index 000000000000..6bddb37d9bc5 --- /dev/null +++ b/src/CloudService/test/Get-AzCloudServiceOSFamily.Recording.json @@ -0,0 +1,86 @@ +{ + "Get-AzCloudServiceOSFamily+[NoContext]+List OS families in location+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOsFamilies?api-version=2021-03-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOsFamilies?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "23" ], + "x-ms-client-request-id": [ "3cef6dcd-968f-4634-aa43-2233a525d4b8" ], + "CommandName": [ "Get-AzCloudServiceOSFamily" ], + "FullCommandName": [ "Get-AzCloudServiceOSFamily_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "f1d410ef-b531-4e98-9363-a1638fd0dc45" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11936" ], + "x-ms-correlation-request-id": [ "e7cf6f03-26c9-44f5-8efa-23ec46a38ea6" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T010714Z:e7cf6f03-26c9-44f5-8efa-23ec46a38ea6" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 26 Mar 2021 01:07:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "97187" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"5\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSFamilies/5\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSFamilies\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"name\": \"5\",\r\n \"label\": \"Windows Server 2016\",\r\n \"versions\": [\r\n {\r\n \"version\": \"WA-GUEST-OS-5.0_201608-01\",\r\n \"label\": \"Windows Azure Guest OS 5.0 (Release 201608-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.10_201708-01\",\r\n \"label\": \"Windows Azure Guest OS 5.10 (Release 201708-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.11_201709-01\",\r\n \"label\": \"Windows Azure Guest OS 5.11 (Release 201709-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.12_201710-01\",\r\n \"label\": \"Windows Azure Guest OS 5.12 (Release 201710-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.12_201710-02\",\r\n \"label\": \"Windows Azure Guest OS 5.12 (Release 201710-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.13_201711-01\",\r\n \"label\": \"Windows Azure Guest OS 5.13 (Release 201711-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.14_201712-01\",\r\n \"label\": \"Windows Azure Guest OS 5.14 (Release 201712-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.15_201801-01\",\r\n \"label\": \"WindowsAzureGuestOS5.15(Release201801-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.16_201802-01\",\r\n \"label\": \"WindowsAzureGuestOS5.16 (Release 201802-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.17_201803-01\",\r\n \"label\": \"WindowsAzureGuestOS5.17 (Release 201803-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.18_201804-01\",\r\n \"label\": \"WindowsAzureGuestOS5.18 (Release 201804-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.19_201805-01\",\r\n \"label\": \"Windows Azure Guest OS 5.19 (Release 201805-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.1_201609-01\",\r\n \"label\": \"Windows Azure Guest OS 5.1 (Release 201609-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.20_201806-01\",\r\n \"label\": \"Windows Azure Guest OS 5.20 (Release 201806-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.21_201807-01\",\r\n \"label\": \"Windows Azure Guest OS 5.21 (Release 201807-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.21_201807-02\",\r\n \"label\": \"Windows Azure Guest OS 5.21 (Release 201807-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.22_201808-01\",\r\n \"label\": \"Windows Azure Guest OS 5.22 (Release 201808-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.23_201809-01\",\r\n \"label\": \"Windows Azure Guest OS 5.23 (Release 201809-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.24_201810-01\",\r\n \"label\": \"Windows Azure Guest OS 5.24 (Release 201810-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.25_201811-01\",\r\n \"label\": \"Windows Azure Guest OS 5.25 (Release 201811-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.26_201812-01\",\r\n \"label\": \"Windows Azure Guest OS 5.26 (Release 201812-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.27_201901-01\",\r\n \"label\": \"Windows Azure Guest OS 5.27 (Release 201901-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.28_201902-01\",\r\n \"label\": \"Windows Azure Guest OS 5.28 (Release 201902-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.29_201903-01\",\r\n \"label\": \"Windows Azure Guest OS 5.29 (Release 201903-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.2_201610-01\",\r\n \"label\": \"Windows Azure Guest OS 5.2 (Release 201610-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.2_201610-02\",\r\n \"label\": \"Windows Azure Guest OS 5.2 (Release 201610-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.30_201904-01\",\r\n \"label\": \"Windows Azure Guest OS 5.30 (Release 201904-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.31_201905-01\",\r\n \"label\": \"Windows Azure Guest OS 5.31 (Release 201905-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.32_201906-01\",\r\n \"label\": \"Windows Azure Guest OS 5.32 (Release 201906-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.33_201907-01\",\r\n \"label\": \"Windows Azure Guest OS 5.33 (Release 201907-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.34_201908-01\",\r\n \"label\": \"Windows Azure Guest OS 5.34 (Release 201908-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.35_201909-01\",\r\n \"label\": \"Windows Azure Guest OS 5.35 (Release 201909-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.36_201910-01\",\r\n \"label\": \"Windows Azure Guest OS 5.36 (Release 201910-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.37_201911-01\",\r\n \"label\": \"Windows Azure Guest OS 5.37 (Release 201911-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.38_201912-01\",\r\n \"label\": \"Windows Azure Guest OS 5.38 (Release 201912-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.39_202001-01\",\r\n \"label\": \"Windows Azure Guest OS 5.39 (Release 202001-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.3_201611-01\",\r\n \"label\": \"Windows Azure Guest OS 5.3 (Release 201611-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.40_202002-01\",\r\n \"label\": \"Windows Azure Guest OS 5.40 (Release 202002-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.41_202003-01\",\r\n \"label\": \"Windows Azure Guest OS 5.41 (Release 202003-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.42_202004-01\",\r\n \"label\": \"Windows Azure Guest OS 5.42 (Release 202004-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.43_202005-01\",\r\n \"label\": \"Windows Azure Guest OS 5.43 (Release 202005-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.43_202005-02\",\r\n \"label\": \"Windows Azure Guest OS 5.43 (Release 202005-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.44_202006-02\",\r\n \"label\": \"Windows Azure Guest OS 5.44 (Release 202006-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.45_202007-01\",\r\n \"label\": \"Windows Azure Guest OS 5.45 (Release 202007-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.46_202008-01\",\r\n \"label\": \"Windows Azure Guest OS 5.46 (Release 202008-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.46_202008-02\",\r\n \"label\": \"Windows Azure Guest OS 5.46 (Release 202008-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.47_202009-01\",\r\n \"label\": \"Windows Azure Guest OS 5.47 (Release 202009-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.48_202010-01\",\r\n \"label\": \"Windows Azure Guest OS 5.48 (Release 202010-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.48_202010-02\",\r\n \"label\": \"Windows Azure Guest OS 5.48 (Release 202010-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.49_202011-01\",\r\n \"label\": \"Windows Azure Guest OS 5.49 (Release 202011-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.4_201612-01\",\r\n \"label\": \"Windows Azure Guest OS 5.4 (Release 201612-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.50_202012-01\",\r\n \"label\": \"Windows Azure Guest OS 5.50 (Release 202012-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": true\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.51_202101-01\",\r\n \"label\": \"Windows Azure Guest OS 5.51 (Release 202101-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": true\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.52_202102-01\",\r\n \"label\": \"Windows Azure Guest OS 5.52 (Release 202102-01)\",\r\n \"isDefault\": true,\r\n \"isActive\": true\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.53_202103-01\",\r\n \"label\": \"Windows Azure Guest OS 5.53 (Release 202103-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.5_201703-01\",\r\n \"label\": \"Windows Azure Guest OS 5.5 (Release 201703-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.6_201704-01\",\r\n \"label\": \"Windows Azure Guest OS 5.6 (Release 201704-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"4\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSFamilies/4\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSFamilies\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"name\": \"4\",\r\n \"label\": \"Windows Server 2012 R2\",\r\n \"versions\": [\r\n {\r\n \"version\": \"WA-GUEST-OS-4.0_201309-03\",\r\n \"label\": \"Windows Azure Guest OS 4.0 (Release 201309-03)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.10_201407-01\",\r\n \"label\": \"Windows Azure Guest OS 4.10 (Release 201407-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.11_201408-01\",\r\n \"label\": \"Windows Azure Guest OS 4.11 (Release 201408-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.11_201408-02\",\r\n \"label\": \"Windows Azure Guest OS 4.11 (Release 201408-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.12_201400-01\",\r\n \"label\": \"Windows Azure Guest OS 4.12 (Release 201409-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.12_201409-02\",\r\n \"label\": \"Windows Azure Guest OS 4.12 (Release 201409-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.13_201410-01\",\r\n \"label\": \"Windows Azure Guest OS 4.13 (Release 201410-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.14_201411-01\",\r\n \"label\": \"Windows Azure Guest OS 4.14 (Release 201411-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.15_201412-01\",\r\n \"label\": \"Windows Azure Guest OS 4.15 (Release 201412-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.16_201501-01\",\r\n \"label\": \"Windows Azure Guest OS 4.16 (Release 201501-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.17_201502-01\",\r\n \"label\": \"Windows Azure Guest OS 4.17 (Release 201502-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.18_201503-01\",\r\n \"label\": \"Windows Azure Guest OS 4.18 (Release 201503-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.19_201504-01\",\r\n \"label\": \"Windows Azure Guest OS 4.19 (Release 201504-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.1_201310-01\",\r\n \"label\": \"Windows Azure Guest OS 4.1 (Release 201310-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.20_201505-01\",\r\n \"label\": \"Windows Azure Guest OS 4.20 (Release 201505-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.20_201505-02\",\r\n \"label\": \"Windows Azure Guest OS 4.20 (Release 201505-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.21_201506-01\",\r\n \"label\": \"Windows Azure Guest OS 4.21 (Release 201506-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.22_201507-01\",\r\n \"label\": \"Windows Azure Guest OS 4.22 (Release 201507-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.22_201507-02\",\r\n \"label\": \"Windows Azure Guest OS 4.22 (Release 201507-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.23_201508-01\",\r\n \"label\": \"Windows Azure Guest OS 4.23 (Release 201508-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.23_201508-02\",\r\n \"label\": \"Windows Azure Guest OS 4.23 (Release 201508-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.24_201509-01\",\r\n \"label\": \"Windows Azure Guest OS 4.24 (Release 201509-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.25_201510-01\",\r\n \"label\": \"Windows Azure Guest OS 4.25 (Release 201510-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.26_201511-01\",\r\n \"label\": \"Windows Azure Guest OS 4.26 (Release 201511-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.26_201511-02\",\r\n \"label\": \"Windows Azure Guest OS 4.26 (Release 201511-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.27_201512-01\",\r\n \"label\": \"Windows Azure Guest OS 4.27 (Release 201512-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.27_201512-02\",\r\n \"label\": \"Windows Azure Guest OS 4.27 (Release 201512-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.28_201601-01\",\r\n \"label\": \"Windows Azure Guest OS 4.28 (Release 201601-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.29_201602-01\",\r\n \"label\": \"Windows Azure Guest OS 4.29 (Release 201602-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.29_201602-02\",\r\n \"label\": \"Windows Azure Guest OS 4.29 (Release 201602-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.2_201311-01\",\r\n \"label\": \"Windows Azure Guest OS 4.2 (Release 201311-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.30_201603-01\",\r\n \"label\": \"Windows Azure Guest OS 4.30 (Release 201603-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.31_201604-01\",\r\n \"label\": \"Windows Azure Guest OS 4.31 (Release 201604-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.32_201605-01\",\r\n \"label\": \"Windows Azure Guest OS 4.32 (Release 201605-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.33_201606-01\",\r\n \"label\": \"Windows Azure Guest OS 4.33 (Release 201606-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.34_201607-01\",\r\n \"label\": \"Windows Azure Guest OS 4.34 (Release 201607-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.35_201608-01\",\r\n \"label\": \"Windows Azure Guest OS 4.35 (Release 201608-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.36_201609-01\",\r\n \"label\": \"Windows Azure Guest OS 4.36 (Release 201609-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.37_201610-01\",\r\n \"label\": \"Windows Azure Guest OS 4.37 (Release 201610-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.37_201610-02\",\r\n \"label\": \"Windows Azure Guest OS 4.37 (Release 201610-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.38_201611-01\",\r\n \"label\": \"Windows Azure Guest OS 4.38 (Release 201611-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.39_201612-01\",\r\n \"label\": \"Windows Azure Guest OS 4.39 (Release 201612-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.3_201312-01\",\r\n \"label\": \"Windows Azure Guest OS 4.3 (Release 201312-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.40_201703-01\",\r\n \"label\": \"Windows Azure Guest OS 4.40 (Release 201703-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.41_201704-01\",\r\n \"label\": \"Windows Azure Guest OS 4.41 (Release 201704-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.45_201708-01\",\r\n \"label\": \"Windows Azure Guest OS 4.45 (Release 201708-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.46_201709-01\",\r\n \"label\": \"Windows Azure Guest OS 4.46 (Release 201709-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.47_201710-01\",\r\n \"label\": \"Windows Azure Guest OS 4.47 (Release 201710-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.47_201710-02\",\r\n \"label\": \"Windows Azure Guest OS 4.47 (Release 201710-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.48_201711-01\",\r\n \"label\": \"Windows Azure Guest OS 4.48 (Release 201711-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.49_201712-01\",\r\n \"label\": \"Windows Azure Guest OS 4.49 (Release 201712-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.4_201401-01\",\r\n \"label\": \"Windows Azure Guest OS 4.4 (Release 201401-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.50_201801-01\",\r\n \"label\": \"WindowsAzureGuestOS4.50(Release201801-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.51_201802-01\",\r\n \"label\": \"WindowsAzureGuestOS4.51 (Release 201802-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.52_201803-01\",\r\n \"label\": \"WindowsAzureGuestOS4.52 (Release 201803-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.53_201804-01\",\r\n \"label\": \"WindowsAzureGuestOS4.53 (Release 201804-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.54_201805-01\",\r\n \"label\": \"Windows Azure Guest OS 4.54 (Release 201805-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.55_201806-01\",\r\n \"label\": \"Windows Azure Guest OS 4.55 (Release 201806-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.56_201807-01\",\r\n \"label\": \"Windows Azure Guest OS 4.56 (Release 201807-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.56_201807-02\",\r\n \"label\": \"Windows Azure Guest OS 4.56 (Release 201807-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.57_201808-01\",\r\n \"label\": \"Windows Azure Guest OS 4.57 (Release 201808-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.58_201809-01\",\r\n \"label\": \"Windows Azure Guest OS 4.58 (Release 201809-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.59_201810-01\",\r\n \"label\": \"Windows Azure Guest OS 4.59 (Release 201810-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.5_201402-01\",\r\n \"label\": \"Windows Azure Guest OS 4.5 (Release 201402-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.60_201811-01\",\r\n \"label\": \"Windows Azure Guest OS 4.60 (Release 201811-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.61_201812-01\",\r\n \"label\": \"Windows Azure Guest OS 4.61 (Release 201812-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.62_201901-01\",\r\n \"label\": \"Windows Azure Guest OS 4.62 (Release 201901-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.63_201902-01\",\r\n \"label\": \"Windows Azure Guest OS 4.63 (Release 201902-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.64_201903-01\",\r\n \"label\": \"Windows Azure Guest OS 4.64 (Release 201903-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.65_201904-01\",\r\n \"label\": \"Windows Azure Guest OS 4.65 (Release 201904-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.66_201905-01\",\r\n \"label\": \"Windows Azure Guest OS 4.66 (Release 201905-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.67_201906-01\",\r\n \"label\": \"Windows Azure Guest OS 4.67 (Release 201906-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.68_201907-01\",\r\n \"label\": \"Windows Azure Guest OS 4.68 (Release 201907-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.69_201908-01\",\r\n \"label\": \"Windows Azure Guest OS 4.69 (Release 201908-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.6_201403-01\",\r\n \"label\": \"Windows Azure Guest OS 4.6 (Release 201403-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.70_201909-01\",\r\n \"label\": \"Windows Azure Guest OS 4.70 (Release 201909-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.71_201910-01\",\r\n \"label\": \"Windows Azure Guest OS 4.71 (Release 201910-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.72_201911-01\",\r\n \"label\": \"Windows Azure Guest OS 4.72 (Release 201911-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.73_201912-01\",\r\n \"label\": \"Windows Azure Guest OS 4.73 (Release 201912-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.74_202001-01\",\r\n \"label\": \"Windows Azure Guest OS 4.74 (Release 202001-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.75_202002-01\",\r\n \"label\": \"Windows Azure Guest OS 4.75 (Release 202002-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.76_202003-01\",\r\n \"label\": \"Windows Azure Guest OS 4.76 (Release 202003-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.77_202004-01\",\r\n \"label\": \"Windows Azure Guest OS 4.77 (Release 202004-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.78_202005-01\",\r\n \"label\": \"Windows Azure Guest OS 4.78 (Release 202005-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.78_202005-02\",\r\n \"label\": \"Windows Azure Guest OS 4.78 (Release 202005-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.79_202006-02\",\r\n \"label\": \"Windows Azure Guest OS 4.79 (Release 202006-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.7_201404-01\",\r\n \"label\": \"Windows Azure Guest OS 4.7 (Release 201404-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.80_202007-01\",\r\n \"label\": \"Windows Azure Guest OS 4.80 (Release 202007-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.81_202008-01\",\r\n \"label\": \"Windows Azure Guest OS 4.81 (Release 202008-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.81_202008-02\",\r\n \"label\": \"Windows Azure Guest OS 4.81 (Release 202008-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.82_202009-01\",\r\n \"label\": \"Windows Azure Guest OS 4.82 (Release 202009-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.83_202010-01\",\r\n \"label\": \"Windows Azure Guest OS 4.83 (Release 202010-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.83_202010-02\",\r\n \"label\": \"Windows Azure Guest OS 4.83 (Release 202010-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.84_202011-01\",\r\n \"label\": \"Windows Azure Guest OS 4.84 (Release 202011-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.85_202012-01\",\r\n \"label\": \"Windows Azure Guest OS 4.85 (Release 202012-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": true\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.86_202101-01\",\r\n \"label\": \"Windows Azure Guest OS 4.86 (Release 202101-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": true\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.87_202102-01\",\r\n \"label\": \"Windows Azure Guest OS 4.87 (Release 202102-01)\",\r\n \"isDefault\": true,\r\n \"isActive\": true\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.88_202103-01\",\r\n \"label\": \"Windows Azure Guest OS 4.88 (Release 202103-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.8_201405-01\",\r\n \"label\": \"Windows Azure Guest OS 4.8 (Release 201405-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-4.9_201406-01\",\r\n \"label\": \"Windows Azure Guest OS 4.9 (Release 201406-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"6\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSFamilies/6\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSFamilies\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"name\": \"6\",\r\n \"label\": \"Windows Server 2019\",\r\n \"versions\": [\r\n {\r\n \"version\": \"WA-GUEST-OS-6.0_201810-00\",\r\n \"label\": \"Windows Azure Guest OS 6.0 (Release 201810-00)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-6.0_201810-01\",\r\n \"label\": \"Windows Azure Guest OS 6.0 (Release 201810-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-6.10_201908-01\",\r\n \"label\": \"Windows Azure Guest OS 6.10 (Release 201908-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-6.11_201909-01\",\r\n \"label\": \"Windows Azure Guest OS 6.11 (Release 201909-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-6.12_201910-01\",\r\n \"label\": \"Windows Azure Guest OS 6.12 (Release 201910-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-6.13_201911-01\",\r\n \"label\": \"Windows Azure Guest OS 6.13 (Release 201911-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-6.14_201912-01\",\r\n \"label\": \"Windows Azure Guest OS 6.14 (Release 201912-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-6.15_202001-01\",\r\n \"label\": \"Windows Azure Guest OS 6.15 (Release 202001-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-6.16_202002-01\",\r\n \"label\": \"Windows Azure Guest OS 6.16 (Release 202002-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-6.17_202003-01\",\r\n \"label\": \"Windows Azure Guest OS 6.17 (Release 202003-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-6.18_202004-01\",\r\n \"label\": \"Windows Azure Guest OS 6.18 (Release 202004-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-6.19_202005-01\",\r\n \"label\": \"Windows Azure Guest OS 6.19 (Release 202005-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-6.19_202005-02\",\r\n \"label\": \"Windows Azure Guest OS 6.19 (Release 202005-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-6.1_201811-01\",\r\n \"label\": \"Windows Azure Guest OS 6.1 (Release 201811-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-6.20_202006-02\",\r\n \"label\": \"Windows Azure Guest OS 6.20 (Release 202006-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-6.21_202007-01\",\r\n \"label\": \"Windows Azure Guest OS 6.21 (Release 202007-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-6.22_202008-01\",\r\n \"label\": \"Windows Azure Guest OS 6.22 (Release 202008-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-6.22_202008-02\",\r\n \"label\": \"Windows Azure Guest OS 6.22 (Release 202008-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-6.23_202009-01\",\r\n \"label\": \"Windows Azure Guest OS 6.23 (Release 202009-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-6.24_202010-01\",\r\n \"label\": \"Windows Azure Guest OS 6.24 (Release 202010-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-6.24_202010-02\",\r\n \"label\": \"Windows Azure Guest OS 6.24 (Release 202010-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-6.25_202011-01\",\r\n \"label\": \"Windows Azure Guest OS 6.25 (Release 202011-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-6.26_202012-01\",\r\n \"label\": \"Windows Azure Guest OS 6.26 (Release 202012-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": true\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-6.27_202101-01\",\r\n \"label\": \"Windows Azure Guest OS 6.27 (Release 202101-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": true\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-6.28_202102-01\",\r\n \"label\": \"Windows Azure Guest OS 6.28 (Release 202102-01)\",\r\n \"isDefault\": true,\r\n \"isActive\": true\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-6.29_202103-01\",\r\n \"label\": \"Windows Azure Guest OS 6.29 (Release 202103-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-6.2_201812-01\",\r\n \"label\": \"Windows Azure Guest OS 6.2 (Release 201812-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-6.3_201901-01\",\r\n \"label\": \"Windows Azure Guest OS 6.3 (Release 201901-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-6.4_201902-01\",\r\n \"label\": \"Windows Azure Guest OS 6.4 (Release 201902-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-6.5_201903-01\",\r\n \"label\": \"Windows Azure Guest OS 6.5 (Release 201903-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-6.6_201904-01\",\r\n \"label\": \"Windows Azure Guest OS 6.6 (Release 201904-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-6.7_201905-01\",\r\n \"label\": \"Windows Azure Guest OS 6.7 (Release 201905-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-6.8_201906-01\",\r\n \"label\": \"Windows Azure Guest OS 6.8 (Release 201906-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-6.9_201907-01\",\r\n \"label\": \"Windows Azure Guest OS 6.9 (Release 201907-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"3\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSFamilies/3\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSFamilies\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"name\": \"3\",\r\n \"label\": \"Windows Server 2012\",\r\n \"versions\": [\r\n {\r\n \"version\": \"WA-GUEST-OS-3.0_201208-02\",\r\n \"label\": \"Windows Azure Guest OS 3.0 (Release 201208-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.10_201312-01\",\r\n \"label\": \"Windows Azure Guest OS 3.10 (Release 201312-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.11_201401-01\",\r\n \"label\": \"Windows Azure Guest OS 3.11 (Release 201401-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.12_201402-01\",\r\n \"label\": \"Windows Azure Guest OS 3.12 (Release 201402-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.13_201403-01\",\r\n \"label\": \"Windows Azure Guest OS 3.13 (Release 201403-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.14_201404-01\",\r\n \"label\": \"Windows Azure Guest OS 3.14 (Release 201404-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.15_201405-01\",\r\n \"label\": \"Windows Azure Guest OS 3.15 (Release 201405-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.16_201406-01\",\r\n \"label\": \"Windows Azure Guest OS 3.16 (Release 201406-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.17_201407-01\",\r\n \"label\": \"Windows Azure Guest OS 3.17 (Release 201407-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.18_201408-01\",\r\n \"label\": \"Windows Azure Guest OS 3.18 (Release 201408-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.18_201408-02\",\r\n \"label\": \"Windows Azure Guest OS 3.18 (Release 201408-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.19_201409-01\",\r\n \"label\": \"Windows Azure Guest OS 3.19 (Release 201409-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.19_201409-02\",\r\n \"label\": \"Windows Azure Guest OS 3.19 (Release 201409-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.1_201210-01\",\r\n \"label\": \"Windows Azure Guest OS 3.1 (Release 201210-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.20_201410-01\",\r\n \"label\": \"Windows Azure Guest OS 3.20 (Release 201410-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.21_201411-01\",\r\n \"label\": \"Windows Azure Guest OS 3.21 (Release 201411-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.22_201412-01\",\r\n \"label\": \"Windows Azure Guest OS 3.22 (Release 201412-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.23_201501-01\",\r\n \"label\": \"Windows Azure Guest OS 3.23 (Release 201501-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.24_201502-01\",\r\n \"label\": \"Windows Azure Guest OS 3.24 (Release 201502-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.25_201503-01\",\r\n \"label\": \"Windows Azure Guest OS 3.25 (Release 201503-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.26_201504-01\",\r\n \"label\": \"Windows Azure Guest OS 3.26 (Release 201504-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.27_201505-01\",\r\n \"label\": \"Windows Azure Guest OS 3.27 (Release 201505-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.27_201505-02\",\r\n \"label\": \"Windows Azure Guest OS 3.27 (Release 201505-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.28_201506-01\",\r\n \"label\": \"Windows Azure Guest OS 3.28 (Release 201506-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.29_201507-01\",\r\n \"label\": \"Windows Azure Guest OS 3.29 (Release 201507-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.29_201507-02\",\r\n \"label\": \"Windows Azure Guest OS 3.29 (Release 201507-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.2_201301-02\",\r\n \"label\": \"Windows Azure Guest OS 3.2 (Release 201301-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.2_201301-03\",\r\n \"label\": \"Windows Azure Guest OS 3.2 (Release 201301-03)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.2_201302-01\",\r\n \"label\": \"Windows Azure Guest OS 3.2 (Release 201302-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.2_201302-02\",\r\n \"label\": \"Windows Azure Guest OS 3.2 (Release 201302-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.2_201302-03\",\r\n \"label\": \"Windows Azure Guest OS 3.2 (Release 201302-03)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.2_201302-04\",\r\n \"label\": \"Windows Azure Guest OS 3.2 (Release 201302-04)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.30_201508-01\",\r\n \"label\": \"Windows Azure Guest OS 3.30 (Release 201508-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.30_201508-02\",\r\n \"label\": \"Windows Azure Guest OS 3.30 (Release 201508-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.31_201509-01\",\r\n \"label\": \"Windows Azure Guest OS 3.31 (Release 201509-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.32_201510-01\",\r\n \"label\": \"Windows Azure Guest OS 3.32 (Release 201510-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.33_201511-01\",\r\n \"label\": \"Windows Azure Guest OS 3.33 (Release 201511-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.33_201511-02\",\r\n \"label\": \"Windows Azure Guest OS 3.33 (Release 201511-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.34_201512-01\",\r\n \"label\": \"Windows Azure Guest OS 3.34 (Release 201512-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.34_201512-02\",\r\n \"label\": \"Windows Azure Guest OS 3.34 (Release 201512-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.35_201601-01\",\r\n \"label\": \"Windows Azure Guest OS 3.35 (Release 201601-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.36_201602-01\",\r\n \"label\": \"Windows Azure Guest OS 3.36 (Release 201602-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.36_201602-02\",\r\n \"label\": \"Windows Azure Guest OS 3.36 (Release 201602-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.37_201603-01\",\r\n \"label\": \"Windows Azure Guest OS 3.37 (Release 201603-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.38_201604-01\",\r\n \"label\": \"Windows Azure Guest OS 3.38 (Release 201604-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.39_201605-01\",\r\n \"label\": \"Windows Azure Guest OS 3.39 (Release 201605-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.3_201305-01\",\r\n \"label\": \"Windows Azure Guest OS 3.3 (Release 201305-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.40_201606-01\",\r\n \"label\": \"Windows Azure Guest OS 3.40 (Release 201606-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.41_201607-01\",\r\n \"label\": \"Windows Azure Guest OS 3.41 (Release 201607-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.42_201608-01\",\r\n \"label\": \"Windows Azure Guest OS 3.42 (Release 201608-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.43_201609-01\",\r\n \"label\": \"Windows Azure Guest OS 3.43 (Release 201609-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.44_201610-01\",\r\n \"label\": \"Windows Azure Guest OS 3.44 (Release 201610-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.44_201610-02\",\r\n \"label\": \"Windows Azure Guest OS 3.44 (Release 201610-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.45_201611-01\",\r\n \"label\": \"Windows Azure Guest OS 3.45 (Release 201611-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.46_201612-01\",\r\n \"label\": \"Windows Azure Guest OS 3.46 (Release 201612-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.47_201703-01\",\r\n \"label\": \"Windows Azure Guest OS 3.47 (Release 201703-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.48_201704-01\",\r\n \"label\": \"Windows Azure Guest OS 3.48 (Release 201704-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.4_201306-01\",\r\n \"label\": \"Windows Azure Guest OS 3.4 (Release 201306-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.52_201708-01\",\r\n \"label\": \"Windows Azure Guest OS 3.52 (Release 201708-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.53_201709-01\",\r\n \"label\": \"Windows Azure Guest OS 3.53 (Release 201709-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.54_201710-01\",\r\n \"label\": \"Windows Azure Guest OS 3.54 (Release 201710-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.54_201710-02\",\r\n \"label\": \"Windows Azure Guest OS 3.54 (Release 201710-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.55_201711-01\",\r\n \"label\": \"Windows Azure Guest OS 3.55 (Release 201711-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.56_201712-01\",\r\n \"label\": \"Windows Azure Guest OS 3.56 (Release 201712-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.57_201801-01\",\r\n \"label\": \"Windows Azure Guest OS 3.57 (Release 201801-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.58_201802-01\",\r\n \"label\": \"Windows Azure Guest OS 3.58 (Release 201802-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.58_201802-02\",\r\n \"label\": \"Windows Azure Guest OS 3.58 (Release 201802-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.59_201803-01\",\r\n \"label\": \"Windows Azure Guest OS 3.59 (Release 201803-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.5_201307-01\",\r\n \"label\": \"Windows Azure Guest OS 3.5 (Release 201307-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.60_201804-01\",\r\n \"label\": \"Windows Azure Guest OS 3.60 (Release 201804-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.61_201805-01\",\r\n \"label\": \"Windows Azure Guest OS 3.61 (Release 201805-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.62_201806-01\",\r\n \"label\": \"Windows Azure Guest OS 3.62 (Release 201806-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.63_201807-01\",\r\n \"label\": \"Windows Azure Guest OS 3.63 (Release 201807-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.63_201807-02\",\r\n \"label\": \"Windows Azure Guest OS 3.63 (Release 201807-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.64_201808-01\",\r\n \"label\": \"Windows Azure Guest OS 3.64 (Release 201808-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.65_201809-01\",\r\n \"label\": \"Windows Azure Guest OS 3.65 (Release 201809-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.66_201810-01\",\r\n \"label\": \"Windows Azure Guest OS 3.66 (Release 201810-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.67_201811-01\",\r\n \"label\": \"Windows Azure Guest OS 3.67 (Release 201811-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.68_201812-01\",\r\n \"label\": \"Windows Azure Guest OS 3.68 (Release 201812-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.69_201901-01\",\r\n \"label\": \"Windows Azure Guest OS 3.69 (Release 201901-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.6_201308-01\",\r\n \"label\": \"Windows Azure Guest OS 3.6 (Release 201308-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.70_201902-01\",\r\n \"label\": \"Windows Azure Guest OS 3.70 (Release 201902-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.71_201903-01\",\r\n \"label\": \"Windows Azure Guest OS 3.71 (Release 201903-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.72_201904-01\",\r\n \"label\": \"Windows Azure Guest OS 3.72 (Release 201904-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.73_201905-01\",\r\n \"label\": \"Windows Azure Guest OS 3.73 (Release 201905-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.74_201906-01\",\r\n \"label\": \"Windows Azure Guest OS 3.74 (Release 201906-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.75_201907-01\",\r\n \"label\": \"Windows Azure Guest OS 3.75 (Release 201907-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.76_201908-01\",\r\n \"label\": \"Windows Azure Guest OS 3.76 (Release 201908-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.77_201909-01\",\r\n \"label\": \"Windows Azure Guest OS 3.77 (Release 201909-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.78_201910-01\",\r\n \"label\": \"Windows Azure Guest OS 3.78 (Release 201910-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.79_201911-01\",\r\n \"label\": \"Windows Azure Guest OS 3.79 (Release 201911-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.7_201309-01\",\r\n \"label\": \"Windows Azure Guest OS 3.7 (Release 201309-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.7_201309-03\",\r\n \"label\": \"Windows Azure Guest OS 3.7 (Release 201309-03)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.80_201912-01\",\r\n \"label\": \"Windows Azure Guest OS 3.80 (Release 201912-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.81_202001-01\",\r\n \"label\": \"Windows Azure Guest OS 3.81 (Release 202001-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.82_202002-01\",\r\n \"label\": \"Windows Azure Guest OS 3.82 (Release 202002-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.83_202003-01\",\r\n \"label\": \"Windows Azure Guest OS 3.83 (Release 202003-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.84_202004-01\",\r\n \"label\": \"Windows Azure Guest OS 3.84 (Release 202004-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.85_202005-01\",\r\n \"label\": \"Windows Azure Guest OS 3.85 (Release 202005-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.85_202005-02\",\r\n \"label\": \"Windows Azure Guest OS 3.85 (Release 202005-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.86_202006-02\",\r\n \"label\": \"Windows Azure Guest OS 3.86 (Release 202006-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.87_202007-01\",\r\n \"label\": \"Windows Azure Guest OS 3.87 (Release 202007-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.88_202008-01\",\r\n \"label\": \"Windows Azure Guest OS 3.88 (Release 202008-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.88_202008-02\",\r\n \"label\": \"Windows Azure Guest OS 3.88 (Release 202008-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.89_202009-01\",\r\n \"label\": \"Windows Azure Guest OS 3.89 (Release 202009-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.8_201310-01\",\r\n \"label\": \"Windows Azure Guest OS 3.8 (Release 201310-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.90_202010-01\",\r\n \"label\": \"Windows Azure Guest OS 3.90 (Release 202010-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.90_202010-02\",\r\n \"label\": \"Windows Azure Guest OS 3.90 (Release 202010-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.91_202011-01\",\r\n \"label\": \"Windows Azure Guest OS 3.91 (Release 202011-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.92_202012-01\",\r\n \"label\": \"Windows Azure Guest OS 3.92 (Release 202012-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": true\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.93_202101-01\",\r\n \"label\": \"Windows Azure Guest OS 3.93 (Release 202101-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": true\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.94_202102-01\",\r\n \"label\": \"Windows Azure Guest OS 3.94 (Release 202102-01)\",\r\n \"isDefault\": true,\r\n \"isActive\": true\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.95_202103-01\",\r\n \"label\": \"Windows Azure Guest OS 3.95 (Release 202103-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-3.9_201311-01\",\r\n \"label\": \"Windows Azure Guest OS 3.9 (Release 201311-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"2\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSFamilies/2\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSFamilies\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"name\": \"2\",\r\n \"label\": \"Windows Server 2008 R2\",\r\n \"versions\": [\r\n {\r\n \"version\": \"WA-GUEST-OS-2.0_201010-01\",\r\n \"label\": \"Windows Azure Guest OS 2.0 (Release 201010-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.100_202007-01\",\r\n \"label\": \"Windows Azure Guest OS 2.100 (Release 202007-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.101_202008-01\",\r\n \"label\": \"Windows Azure Guest OS 2.101 (Release 202008-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.101_202008-02\",\r\n \"label\": \"Windows Azure Guest OS 2.101 (Release 202008-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.102_202009-01\",\r\n \"label\": \"Windows Azure Guest OS 2.102 (Release 202009-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.103_202010-01\",\r\n \"label\": \"Windows Azure Guest OS 2.103 (Release 202010-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.103_202010-02\",\r\n \"label\": \"Windows Azure Guest OS 2.103 (Release 202010-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.104_202011-01\",\r\n \"label\": \"Windows Azure Guest OS 2.104 (Release 202011-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.105_202012-01\",\r\n \"label\": \"Windows Azure Guest OS 2.105 (Release 202012-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": true\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.106_202101-01\",\r\n \"label\": \"Windows Azure Guest OS 2.106 (Release 202101-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": true\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.107_202102-01\",\r\n \"label\": \"Windows Azure Guest OS 2.107 (Release 202102-01)\",\r\n \"isDefault\": true,\r\n \"isActive\": true\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.108_202103-01\",\r\n \"label\": \"Windows Azure Guest OS 2.108 (Release 202103-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.10_201202-01\",\r\n \"label\": \"Windows Azure Guest OS 2.10 (Release 201202-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.11_201204-01\",\r\n \"label\": \"Windows Azure Guest OS 2.11 (Release 201204-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.11_201204-02\",\r\n \"label\": \"Windows Azure Guest OS 2.11 (Release 201204-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.12_201208-01\",\r\n \"label\": \"Windows Azure Guest OS 2.12 (Release 201208-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.12_201208-02\",\r\n \"label\": \"Windows Azure Guest OS 2.12 (Release 201208-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.13_201210-01\",\r\n \"label\": \"Windows Azure Guest OS 2.13 (Release 201210-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.14_201301-02\",\r\n \"label\": \"Windows Azure Guest OS 2.14 (Release 201301-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.14_201301-03\",\r\n \"label\": \"Windows Azure Guest OS 2.14 (Release 201301-03)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.14_201302-01\",\r\n \"label\": \"Windows Azure Guest OS 2.14 (Release 201302-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.14_201302-02\",\r\n \"label\": \"Windows Azure Guest OS 2.14 (Release 201302-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.14_201302-03\",\r\n \"label\": \"Windows Azure Guest OS 2.14 (Release 201302-03)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.14_201302-04\",\r\n \"label\": \"Windows Azure Guest OS 2.14 (Release 201302-04)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.15_201305-01\",\r\n \"label\": \"Windows Azure Guest OS 2.15 (Release 201305-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.16_201306-01\",\r\n \"label\": \"Windows Azure Guest OS 2.16 (Release 201306-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.17_201307-01\",\r\n \"label\": \"Windows Azure Guest OS 2.17 (Release 201307-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.18_201308-01\",\r\n \"label\": \"Windows Azure Guest OS 2.18 (Release 201308-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.19_201309-01\",\r\n \"label\": \"Windows Azure Guest OS 2.19 (Release 201309-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.19_201309-03\",\r\n \"label\": \"Windows Azure Guest OS 2.19 (Release 201309-03)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.1_201011-01\",\r\n \"label\": \"Windows Azure Guest OS 2.1 (Release 201011-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.20_201310-01\",\r\n \"label\": \"Windows Azure Guest OS 2.20 (Release 201310-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.21_201311-01\",\r\n \"label\": \"Windows Azure Guest OS 2.21 (Release 201311-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.22_201312-01\",\r\n \"label\": \"Windows Azure Guest OS 2.22 (Release 201312-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.23_201401-01\",\r\n \"label\": \"Windows Azure Guest OS 2.23 (Release 201401-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.24_201402-01\",\r\n \"label\": \"Windows Azure Guest OS 2.24 (Release 201402-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.25_201403-01\",\r\n \"label\": \"Windows Azure Guest OS 2.25 (Release 201403-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.26_201404-01\",\r\n \"label\": \"Windows Azure Guest OS 2.26 (Release 201404-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.27_201405-01\",\r\n \"label\": \"Windows Azure Guest OS 2.27 (Release 201405-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.28_201406-01\",\r\n \"label\": \"Windows Azure Guest OS 2.28 (Release 201406-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.29_201407-01\",\r\n \"label\": \"Windows Azure Guest OS 2.29 (Release 201407-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.2_201101-01\",\r\n \"label\": \"Windows Azure Guest OS 2.2 (Release 201101-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.30_201408-01\",\r\n \"label\": \"Windows Azure Guest OS 2.30 (Release 201408-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.30_201408-02\",\r\n \"label\": \"Windows Azure Guest OS 2.30 (Release 201408-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.31_201409-01\",\r\n \"label\": \"Windows Azure Guest OS 2.31 (Release 201409-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.31_201409-02\",\r\n \"label\": \"Windows Azure Guest OS 2.31 (Release 201409-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.32_201410-01\",\r\n \"label\": \"Windows Azure Guest OS 2.32 (Release 201410-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.33_201411-01\",\r\n \"label\": \"Windows Azure Guest OS 2.33 (Release 201411-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.34_201412-01\",\r\n \"label\": \"Windows Azure Guest OS 2.34 (Release 201412-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.35_201501-01\",\r\n \"label\": \"Windows Azure Guest OS 2.35 (Release 201501-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.36_201502-01\",\r\n \"label\": \"Windows Azure Guest OS 2.36 (Release 201502-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.37_201503-01\",\r\n \"label\": \"Windows Azure Guest OS 2.37 (Release 201503-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.38_201504-01\",\r\n \"label\": \"Windows Azure Guest OS 2.38 (Release 201504-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.39_201505-01\",\r\n \"label\": \"Windows Azure Guest OS 2.39 (Release 201505-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.39_201505-02\",\r\n \"label\": \"Windows Azure Guest OS 2.39 (Release 201505-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.3_201102-01\",\r\n \"label\": \"Windows Azure Guest OS 2.3 (Release 201102-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.40_201506-01\",\r\n \"label\": \"Windows Azure Guest OS 2.40 (Release 201506-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.41_201507-01\",\r\n \"label\": \"Windows Azure Guest OS 2.41 (Release 201507-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.41_201507-02\",\r\n \"label\": \"Windows Azure Guest OS 2.41 (Release 201507-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.42_201508-01\",\r\n \"label\": \"Windows Azure Guest OS 2.42 (Release 201508-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.42_201508-02\",\r\n \"label\": \"Windows Azure Guest OS 2.42 (Release 201508-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.43_201509-01\",\r\n \"label\": \"Windows Azure Guest OS 2.43 (Release 201509-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.44_201510-01\",\r\n \"label\": \"Windows Azure Guest OS 2.44 (Release 201510-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.45_201511-01\",\r\n \"label\": \"Windows Azure Guest OS 2.45 (Release 201511-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.45_201511-02\",\r\n \"label\": \"Windows Azure Guest OS 2.45 (Release 201511-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.46_201512-01\",\r\n \"label\": \"Windows Azure Guest OS 2.46 (Release 201512-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.46_201512-02\",\r\n \"label\": \"Windows Azure Guest OS 2.46 (Release 201512-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.47_201601-01\",\r\n \"label\": \"Windows Azure Guest OS 2.47 (Release 201601-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.48_201602-01\",\r\n \"label\": \"Windows Azure Guest OS 2.48 (Release 201602-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.48_201602-02\",\r\n \"label\": \"Windows Azure Guest OS 2.48 (Release 201602-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.49_201603-01\",\r\n \"label\": \"Windows Azure Guest OS 2.49 (Release 201603-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.4_201103-01\",\r\n \"label\": \"Windows Azure Guest OS 2.4 (Release 201103-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.50_201604-01\",\r\n \"label\": \"Windows Azure Guest OS 2.50 (Release 201604-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.51_201605-01\",\r\n \"label\": \"Windows Azure Guest OS 2.51 (Release 201605-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.52_201606-01\",\r\n \"label\": \"Windows Azure Guest OS 2.52 (Release 201606-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.53_201607-01\",\r\n \"label\": \"Windows Azure Guest OS 2.53 (Release 201607-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.54_201608-01\",\r\n \"label\": \"Windows Azure Guest OS 2.54 (Release 201608-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.55_201609-01\",\r\n \"label\": \"Windows Azure Guest OS 2.55 (Release 201609-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.56_201610-01\",\r\n \"label\": \"Windows Azure Guest OS 2.56 (Release 201610-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.56_201610-02\",\r\n \"label\": \"Windows Azure Guest OS 2.56 (Release 201610-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.57_201611-01\",\r\n \"label\": \"Windows Azure Guest OS 2.57 (Release 201611-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.58_201612-01\",\r\n \"label\": \"Windows Azure Guest OS 2.58 (Release 201612-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.59_201701-01\",\r\n \"label\": \"Windows Azure Guest OS 2.59 (Release 201701-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.5_201104-01\",\r\n \"label\": \"Windows Azure Guest OS 2.5 (Release 201104-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.60_201703-01\",\r\n \"label\": \"Windows Azure Guest OS 2.60 (Release 201703-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.61_201704-01\",\r\n \"label\": \"Windows Azure Guest OS 2.61 (Release 201704-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.65_201708-01\",\r\n \"label\": \"Windows Azure Guest OS 2.65 (Release 201708-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.66_201709-01\",\r\n \"label\": \"Windows Azure Guest OS 2.66 (Release 201709-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.67_201710-01\",\r\n \"label\": \"Windows Azure Guest OS 2.67 (Release 201710-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.67_201710-02\",\r\n \"label\": \"Windows Azure Guest OS 2.67 (Release 201710-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.68_201711-01\",\r\n \"label\": \"Windows Azure Guest OS 2.68 (Release 201711-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.69_201712-01\",\r\n \"label\": \"Windows Azure Guest OS 2.69 (Release 201712-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.6_201105-01\",\r\n \"label\": \"Windows Azure Guest OS 2.6 (Release 201105-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.70_201801-01\",\r\n \"label\": \"Windows Azure Guest OS 2.70 (Release 201801-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.71_201802-01\",\r\n \"label\": \"Windows Azure Guest OS 2.71 (Release 201802-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.72_201803-01\",\r\n \"label\": \"Windows Azure Guest OS 2.72 (Release 201803-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.73_201804-01\",\r\n \"label\": \"Windows Azure Guest OS 2.73 (Release 201804-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.74_201805-01\",\r\n \"label\": \"Windows Azure Guest OS 2.74 (Release 201805-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.75_201806-01\",\r\n \"label\": \"Windows Azure Guest OS 2.75 (Release 201806-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.76_201807-01\",\r\n \"label\": \"Windows Azure Guest OS 2.76 (Release 201807-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.76_201807-02\",\r\n \"label\": \"Windows Azure Guest OS 2.76 (Release 201807-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.77_201808-01\",\r\n \"label\": \"Windows Azure Guest OS 2.77 (Release 201808-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.78_201809-01\",\r\n \"label\": \"Windows Azure Guest OS 2.78 (Release 201809-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.79_201810-01\",\r\n \"label\": \"Windows Azure Guest OS 2.79 (Release 201810-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.7_201107-01\",\r\n \"label\": \"Windows Azure Guest OS 2.7 (Release 201107-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.80_201811-01\",\r\n \"label\": \"Windows Azure Guest OS 2.80 (Release 201811-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.81_201812-01\",\r\n \"label\": \"Windows Azure Guest OS 2.81 (Release 201812-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.82_201901-01\",\r\n \"label\": \"Windows Azure Guest OS 2.82 (Release 201901-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.83_201902-01\",\r\n \"label\": \"Windows Azure Guest OS 2.83 (Release 201902-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.84_201903-01\",\r\n \"label\": \"Windows Azure Guest OS 2.84 (Release 201903-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.85_201904-01\",\r\n \"label\": \"Windows Azure Guest OS 2.85 (Release 201904-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.86_201905-01\",\r\n \"label\": \"Windows Azure Guest OS 2.86 (Release 201905-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.87_201906-01\",\r\n \"label\": \"Windows Azure Guest OS 2.87 (Release 201906-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.88_201907-01\",\r\n \"label\": \"Windows Azure Guest OS 2.88 (Release 201907-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.89_201908-01\",\r\n \"label\": \"Windows Azure Guest OS 2.89 (Release 201908-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.8_201109-01\",\r\n \"label\": \"Windows Azure Guest OS 2.8 (Release 201109-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.8_201109-02\",\r\n \"label\": \"Windows Azure Guest OS 2.8 (Release 201109-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.8_201109-03\",\r\n \"label\": \"Windows Azure Guest OS 2.8 (Release 201109-03)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.90_201909-01\",\r\n \"label\": \"Windows Azure Guest OS 2.90 (Release 201909-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.91_201910-01\",\r\n \"label\": \"Windows Azure Guest OS 2.91 (Release 201910-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.92_201911-01\",\r\n \"label\": \"Windows Azure Guest OS 2.92 (Release 201911-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.93_201912-01\",\r\n \"label\": \"Windows Azure Guest OS 2.93 (Release 201912-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.94_202001-01\",\r\n \"label\": \"Windows Azure Guest OS 2.94 (Release 202001-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.95_202002-01\",\r\n \"label\": \"Windows Azure Guest OS 2.95 (Release 202002-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.96_202003-01\",\r\n \"label\": \"Windows Azure Guest OS 2.96 (Release 202003-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.97_202004-01\",\r\n \"label\": \"Windows Azure Guest OS 2.97 (Release 202004-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.98_202005-01\",\r\n \"label\": \"Windows Azure Guest OS 2.98 (Release 202005-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.98_202005-02\",\r\n \"label\": \"Windows Azure Guest OS 2.98 (Release 202005-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.99_202006-02\",\r\n \"label\": \"Windows Azure Guest OS 2.99 (Release 202006-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.9_201112-01\",\r\n \"label\": \"Windows Azure Guest OS 2.9 (Release 201112-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.9_201112-02\",\r\n \"label\": \"Windows Azure Guest OS 2.9 (Release 201112-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-2.9_201112-03\",\r\n \"label\": \"Windows Azure Guest OS 2.9 (Release 201112-03)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n}", + "isContentBase64": false + } + }, + "Get-AzCloudServiceOSFamily+[NoContext]+Get OS family+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOsFamilies/5?api-version=2021-03-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOsFamilies/5?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "24" ], + "x-ms-client-request-id": [ "3f692f46-d5e4-491a-b8a0-406c27555b7b" ], + "CommandName": [ "Get-AzCloudServiceOSFamily" ], + "FullCommandName": [ "Get-AzCloudServiceOSFamily_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "8f848e9d-c4a6-47ee-9f32-425f29a4e5ae" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11935" ], + "x-ms-correlation-request-id": [ "79e66d98-64b0-4c17-99f3-e289f6343332" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T010714Z:79e66d98-64b0-4c17-99f3-e289f6343332" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 26 Mar 2021 01:07:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "11378" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"name\": \"5\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSFamilies/5\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSFamilies\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"name\": \"5\",\r\n \"label\": \"Windows Server 2016\",\r\n \"versions\": [\r\n {\r\n \"version\": \"WA-GUEST-OS-5.0_201608-01\",\r\n \"label\": \"Windows Azure Guest OS 5.0 (Release 201608-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.10_201708-01\",\r\n \"label\": \"Windows Azure Guest OS 5.10 (Release 201708-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.11_201709-01\",\r\n \"label\": \"Windows Azure Guest OS 5.11 (Release 201709-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.12_201710-01\",\r\n \"label\": \"Windows Azure Guest OS 5.12 (Release 201710-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.12_201710-02\",\r\n \"label\": \"Windows Azure Guest OS 5.12 (Release 201710-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.13_201711-01\",\r\n \"label\": \"Windows Azure Guest OS 5.13 (Release 201711-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.14_201712-01\",\r\n \"label\": \"Windows Azure Guest OS 5.14 (Release 201712-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.15_201801-01\",\r\n \"label\": \"WindowsAzureGuestOS5.15(Release201801-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.16_201802-01\",\r\n \"label\": \"WindowsAzureGuestOS5.16 (Release 201802-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.17_201803-01\",\r\n \"label\": \"WindowsAzureGuestOS5.17 (Release 201803-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.18_201804-01\",\r\n \"label\": \"WindowsAzureGuestOS5.18 (Release 201804-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.19_201805-01\",\r\n \"label\": \"Windows Azure Guest OS 5.19 (Release 201805-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.1_201609-01\",\r\n \"label\": \"Windows Azure Guest OS 5.1 (Release 201609-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.20_201806-01\",\r\n \"label\": \"Windows Azure Guest OS 5.20 (Release 201806-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.21_201807-01\",\r\n \"label\": \"Windows Azure Guest OS 5.21 (Release 201807-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.21_201807-02\",\r\n \"label\": \"Windows Azure Guest OS 5.21 (Release 201807-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.22_201808-01\",\r\n \"label\": \"Windows Azure Guest OS 5.22 (Release 201808-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.23_201809-01\",\r\n \"label\": \"Windows Azure Guest OS 5.23 (Release 201809-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.24_201810-01\",\r\n \"label\": \"Windows Azure Guest OS 5.24 (Release 201810-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.25_201811-01\",\r\n \"label\": \"Windows Azure Guest OS 5.25 (Release 201811-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.26_201812-01\",\r\n \"label\": \"Windows Azure Guest OS 5.26 (Release 201812-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.27_201901-01\",\r\n \"label\": \"Windows Azure Guest OS 5.27 (Release 201901-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.28_201902-01\",\r\n \"label\": \"Windows Azure Guest OS 5.28 (Release 201902-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.29_201903-01\",\r\n \"label\": \"Windows Azure Guest OS 5.29 (Release 201903-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.2_201610-01\",\r\n \"label\": \"Windows Azure Guest OS 5.2 (Release 201610-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.2_201610-02\",\r\n \"label\": \"Windows Azure Guest OS 5.2 (Release 201610-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.30_201904-01\",\r\n \"label\": \"Windows Azure Guest OS 5.30 (Release 201904-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.31_201905-01\",\r\n \"label\": \"Windows Azure Guest OS 5.31 (Release 201905-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.32_201906-01\",\r\n \"label\": \"Windows Azure Guest OS 5.32 (Release 201906-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.33_201907-01\",\r\n \"label\": \"Windows Azure Guest OS 5.33 (Release 201907-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.34_201908-01\",\r\n \"label\": \"Windows Azure Guest OS 5.34 (Release 201908-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.35_201909-01\",\r\n \"label\": \"Windows Azure Guest OS 5.35 (Release 201909-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.36_201910-01\",\r\n \"label\": \"Windows Azure Guest OS 5.36 (Release 201910-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.37_201911-01\",\r\n \"label\": \"Windows Azure Guest OS 5.37 (Release 201911-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.38_201912-01\",\r\n \"label\": \"Windows Azure Guest OS 5.38 (Release 201912-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.39_202001-01\",\r\n \"label\": \"Windows Azure Guest OS 5.39 (Release 202001-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.3_201611-01\",\r\n \"label\": \"Windows Azure Guest OS 5.3 (Release 201611-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.40_202002-01\",\r\n \"label\": \"Windows Azure Guest OS 5.40 (Release 202002-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.41_202003-01\",\r\n \"label\": \"Windows Azure Guest OS 5.41 (Release 202003-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.42_202004-01\",\r\n \"label\": \"Windows Azure Guest OS 5.42 (Release 202004-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.43_202005-01\",\r\n \"label\": \"Windows Azure Guest OS 5.43 (Release 202005-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.43_202005-02\",\r\n \"label\": \"Windows Azure Guest OS 5.43 (Release 202005-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.44_202006-02\",\r\n \"label\": \"Windows Azure Guest OS 5.44 (Release 202006-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.45_202007-01\",\r\n \"label\": \"Windows Azure Guest OS 5.45 (Release 202007-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.46_202008-01\",\r\n \"label\": \"Windows Azure Guest OS 5.46 (Release 202008-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.46_202008-02\",\r\n \"label\": \"Windows Azure Guest OS 5.46 (Release 202008-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.47_202009-01\",\r\n \"label\": \"Windows Azure Guest OS 5.47 (Release 202009-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.48_202010-01\",\r\n \"label\": \"Windows Azure Guest OS 5.48 (Release 202010-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.48_202010-02\",\r\n \"label\": \"Windows Azure Guest OS 5.48 (Release 202010-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.49_202011-01\",\r\n \"label\": \"Windows Azure Guest OS 5.49 (Release 202011-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.4_201612-01\",\r\n \"label\": \"Windows Azure Guest OS 5.4 (Release 201612-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.50_202012-01\",\r\n \"label\": \"Windows Azure Guest OS 5.50 (Release 202012-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": true\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.51_202101-01\",\r\n \"label\": \"Windows Azure Guest OS 5.51 (Release 202101-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": true\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.52_202102-01\",\r\n \"label\": \"Windows Azure Guest OS 5.52 (Release 202102-01)\",\r\n \"isDefault\": true,\r\n \"isActive\": true\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.53_202103-01\",\r\n \"label\": \"Windows Azure Guest OS 5.53 (Release 202103-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.5_201703-01\",\r\n \"label\": \"Windows Azure Guest OS 5.5 (Release 201703-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n },\r\n {\r\n \"version\": \"WA-GUEST-OS-5.6_201704-01\",\r\n \"label\": \"Windows Azure Guest OS 5.6 (Release 201704-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false\r\n }\r\n ]\r\n }\r\n}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/CloudService/test/Get-AzCloudServiceOSFamily.Tests.ps1 b/src/CloudService/test/Get-AzCloudServiceOSFamily.Tests.ps1 new file mode 100644 index 000000000000..b36d47910458 --- /dev/null +++ b/src/CloudService/test/Get-AzCloudServiceOSFamily.Tests.ps1 @@ -0,0 +1,30 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzCloudServiceOSFamily.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Get-AzCloudServiceOSFamily' { + It 'List OS families in location' { + $osFamilies = Get-AzCloudServiceOSFamily -location $env.Location + $osFamilies.Count | Should BeGreaterThan 0 + } + + It 'Get OS family' { + $osFamily = Get-AzCloudServiceOSFamily -location $env.Location -OSFamilyName $env.OSFamilyName + $osFamily.Name | Should Not BeNullOrEmpty + $osFamily.Label | Should Not BeNullOrEmpty + } + + # TODO: add this test once id is fixed on server side to match case sensitive req + It 'GetViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/CloudService/test/Get-AzCloudServiceOSVersion.Recording.json b/src/CloudService/test/Get-AzCloudServiceOSVersion.Recording.json new file mode 100644 index 000000000000..1ddeedebaf0d --- /dev/null +++ b/src/CloudService/test/Get-AzCloudServiceOSVersion.Recording.json @@ -0,0 +1,86 @@ +{ + "Get-AzCloudServiceOSVersion+[NoContext]+List OS versions in location+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOsVersions?api-version=2021-03-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOsVersions?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "25" ], + "x-ms-client-request-id": [ "e6fd3a7d-731b-4bb1-871c-eba19f362c49" ], + "CommandName": [ "Get-AzCloudServiceOSVersion" ], + "FullCommandName": [ "Get-AzCloudServiceOSVersion_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "62d15cc3-9eb7-47ac-8e38-22fb17d4f4c1" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11934" ], + "x-ms-correlation-request-id": [ "7aa3ab4d-470f-458c-9e10-4df2d4c6b982" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T010715Z:7aa3ab4d-470f-458c-9e10-4df2d4c6b982" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 26 Mar 2021 01:07:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "266603" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"WA-GUEST-OS-2.106_202101-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.106_202101-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.106_202101-01\",\r\n \"label\": \"Windows Azure Guest OS 2.106 (Release 202101-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": true,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.107_202102-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.107_202102-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.107_202102-01\",\r\n \"label\": \"Windows Azure Guest OS 2.107 (Release 202102-01)\",\r\n \"isDefault\": true,\r\n \"isActive\": true,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.105_202012-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.105_202012-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.105_202012-01\",\r\n \"label\": \"Windows Azure Guest OS 2.105 (Release 202012-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": true,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.20_201505-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.20_201505-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.20_201505-01\",\r\n \"label\": \"Windows Azure Guest OS 4.20 (Release 201505-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.44_201610-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.44_201610-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.44_201610-02\",\r\n \"label\": \"Windows Azure Guest OS 3.44 (Release 201610-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.44_202006-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.44_202006-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.44_202006-02\",\r\n \"label\": \"Windows Azure Guest OS 5.44 (Release 202006-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.31_201409-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.31_201409-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.31_201409-02\",\r\n \"label\": \"Windows Azure Guest OS 2.31 (Release 201409-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.97_202004-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.97_202004-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.97_202004-01\",\r\n \"label\": \"Windows Azure Guest OS 2.97 (Release 202004-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.45_201611-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.45_201611-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.45_201611-01\",\r\n \"label\": \"Windows Azure Guest OS 3.45 (Release 201611-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.14_201302-04\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.14_201302-04\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.14_201302-04\",\r\n \"label\": \"Windows Azure Guest OS 2.14 (Release 201302-04)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.20_201806-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.20_201806-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.20_201806-01\",\r\n \"label\": \"Windows Azure Guest OS 5.20 (Release 201806-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.94_202102-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.94_202102-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.94_202102-01\",\r\n \"label\": \"Windows Azure Guest OS 3.94 (Release 202102-01)\",\r\n \"isDefault\": true,\r\n \"isActive\": true,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.70_201909-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.70_201909-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.70_201909-01\",\r\n \"label\": \"Windows Azure Guest OS 4.70 (Release 201909-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.76_201908-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.76_201908-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.76_201908-01\",\r\n \"label\": \"Windows Azure Guest OS 3.76 (Release 201908-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.24_201509-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.24_201509-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.24_201509-01\",\r\n \"label\": \"Windows Azure Guest OS 4.24 (Release 201509-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.73_201804-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.73_201804-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.73_201804-01\",\r\n \"label\": \"Windows Azure Guest OS 2.73 (Release 201804-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-6.5_201903-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-6.5_201903-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-6.5_201903-01\",\r\n \"label\": \"Windows Azure Guest OS 6.5 (Release 201903-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"6\",\r\n \"familyLabel\": \"Windows Server 2019\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.38_201912-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.38_201912-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.38_201912-01\",\r\n \"label\": \"Windows Azure Guest OS 5.38 (Release 201912-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.98_202005-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.98_202005-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.98_202005-02\",\r\n \"label\": \"Windows Azure Guest OS 2.98 (Release 202005-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.29_201903-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.29_201903-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.29_201903-01\",\r\n \"label\": \"Windows Azure Guest OS 5.29 (Release 201903-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.89_202009-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.89_202009-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.89_202009-01\",\r\n \"label\": \"Windows Azure Guest OS 3.89 (Release 202009-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.29_201507-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.29_201507-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.29_201507-02\",\r\n \"label\": \"Windows Azure Guest OS 3.29 (Release 201507-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.36_201910-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.36_201910-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.36_201910-01\",\r\n \"label\": \"Windows Azure Guest OS 5.36 (Release 201910-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.30_201408-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.30_201408-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.30_201408-02\",\r\n \"label\": \"Windows Azure Guest OS 2.30 (Release 201408-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.27_201901-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.27_201901-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.27_201901-01\",\r\n \"label\": \"Windows Azure Guest OS 5.27 (Release 201901-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.108_202103-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.108_202103-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.108_202103-01\",\r\n \"label\": \"Windows Azure Guest OS 2.108 (Release 202103-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.83_202010-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.83_202010-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.83_202010-01\",\r\n \"label\": \"Windows Azure Guest OS 4.83 (Release 202010-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.36_201609-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.36_201609-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.36_201609-01\",\r\n \"label\": \"Windows Azure Guest OS 4.36 (Release 201609-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.12_201400-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.12_201400-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.12_201400-01\",\r\n \"label\": \"Windows Azure Guest OS 4.12 (Release 201409-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.7_201309-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.7_201309-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.7_201309-01\",\r\n \"label\": \"Windows Azure Guest OS 3.7 (Release 201309-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.7_201309-03\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.7_201309-03\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.7_201309-03\",\r\n \"label\": \"Windows Azure Guest OS 3.7 (Release 201309-03)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.63_201807-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.63_201807-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.63_201807-01\",\r\n \"label\": \"Windows Azure Guest OS 3.63 (Release 201807-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.11_201408-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.11_201408-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.11_201408-01\",\r\n \"label\": \"Windows Azure Guest OS 4.11 (Release 201408-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-6.4_201902-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-6.4_201902-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-6.4_201902-01\",\r\n \"label\": \"Windows Azure Guest OS 6.4 (Release 201902-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"6\",\r\n \"familyLabel\": \"Windows Server 2019\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-6.25_202011-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-6.25_202011-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-6.25_202011-01\",\r\n \"label\": \"Windows Azure Guest OS 6.25 (Release 202011-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"6\",\r\n \"familyLabel\": \"Windows Server 2019\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.30_201603-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.30_201603-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.30_201603-01\",\r\n \"label\": \"Windows Azure Guest OS 4.30 (Release 201603-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.39_201505-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.39_201505-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.39_201505-02\",\r\n \"label\": \"Windows Azure Guest OS 2.39 (Release 201505-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.38_201611-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.38_201611-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.38_201611-01\",\r\n \"label\": \"Windows Azure Guest OS 4.38 (Release 201611-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.45_202007-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.45_202007-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.45_202007-01\",\r\n \"label\": \"Windows Azure Guest OS 5.45 (Release 202007-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.75_201806-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.75_201806-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.75_201806-01\",\r\n \"label\": \"Windows Azure Guest OS 2.75 (Release 201806-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.42_202004-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.42_202004-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.42_202004-01\",\r\n \"label\": \"Windows Azure Guest OS 5.42 (Release 202004-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.29_201602-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.29_201602-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.29_201602-02\",\r\n \"label\": \"Windows Azure Guest OS 4.29 (Release 201602-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.27_201512-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.27_201512-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.27_201512-01\",\r\n \"label\": \"Windows Azure Guest OS 4.27 (Release 201512-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.26_201812-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.26_201812-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.26_201812-01\",\r\n \"label\": \"Windows Azure Guest OS 5.26 (Release 201812-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.37_201610-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.37_201610-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.37_201610-02\",\r\n \"label\": \"Windows Azure Guest OS 4.37 (Release 201610-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.26_201404-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.26_201404-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.26_201404-01\",\r\n \"label\": \"Windows Azure Guest OS 2.26 (Release 201404-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.95_202002-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.95_202002-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.95_202002-01\",\r\n \"label\": \"Windows Azure Guest OS 2.95 (Release 202002-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.45_201511-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.45_201511-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.45_201511-02\",\r\n \"label\": \"Windows Azure Guest OS 2.45 (Release 201511-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.48_202010-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.48_202010-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.48_202010-01\",\r\n \"label\": \"Windows Azure Guest OS 5.48 (Release 202010-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.6_201704-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.6_201704-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.6_201704-01\",\r\n \"label\": \"Windows Azure Guest OS 5.6 (Release 201704-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-6.28_202102-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-6.28_202102-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-6.28_202102-01\",\r\n \"label\": \"Windows Azure Guest OS 6.28 (Release 202102-01)\",\r\n \"isDefault\": true,\r\n \"isActive\": true,\r\n \"family\": \"6\",\r\n \"familyLabel\": \"Windows Server 2019\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.46_201512-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.46_201512-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.46_201512-02\",\r\n \"label\": \"Windows Azure Guest OS 2.46 (Release 201512-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.19_201409-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.19_201409-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.19_201409-02\",\r\n \"label\": \"Windows Azure Guest OS 3.19 (Release 201409-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.46_202008-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.46_202008-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.46_202008-01\",\r\n \"label\": \"Windows Azure Guest OS 5.46 (Release 202008-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.25_201811-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.25_201811-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.25_201811-01\",\r\n \"label\": \"Windows Azure Guest OS 5.25 (Release 201811-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.32_201906-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.32_201906-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.32_201906-01\",\r\n \"label\": \"Windows Azure Guest OS 5.32 (Release 201906-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.41_201507-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.41_201507-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.41_201507-02\",\r\n \"label\": \"Windows Azure Guest OS 2.41 (Release 201507-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.43_201609-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.43_201609-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.43_201609-01\",\r\n \"label\": \"Windows Azure Guest OS 3.43 (Release 201609-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-6.10_201908-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-6.10_201908-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-6.10_201908-01\",\r\n \"label\": \"Windows Azure Guest OS 6.10 (Release 201908-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"6\",\r\n \"familyLabel\": \"Windows Server 2019\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.6_201308-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.6_201308-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.6_201308-01\",\r\n \"label\": \"Windows Azure Guest OS 3.6 (Release 201308-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.50_201801-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.50_201801-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.50_201801-01\",\r\n \"label\": \"WindowsAzureGuestOS4.50(Release201801-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.90_201909-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.90_201909-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.90_201909-01\",\r\n \"label\": \"Windows Azure Guest OS 2.90 (Release 201909-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.103_202010-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.103_202010-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.103_202010-02\",\r\n \"label\": \"Windows Azure Guest OS 2.103 (Release 202010-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.103_202010-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.103_202010-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.103_202010-01\",\r\n \"label\": \"Windows Azure Guest OS 2.103 (Release 202010-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.16_201306-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.16_201306-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.16_201306-01\",\r\n \"label\": \"Windows Azure Guest OS 2.16 (Release 201306-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.28_201406-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.28_201406-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.28_201406-01\",\r\n \"label\": \"Windows Azure Guest OS 2.28 (Release 201406-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-6.0_201810-00\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-6.0_201810-00\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-6.0_201810-00\",\r\n \"label\": \"Windows Azure Guest OS 6.0 (Release 201810-00)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"6\",\r\n \"familyLabel\": \"Windows Server 2019\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-6.0_201810-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-6.0_201810-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-6.0_201810-01\",\r\n \"label\": \"Windows Azure Guest OS 6.0 (Release 201810-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"6\",\r\n \"familyLabel\": \"Windows Server 2019\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.14_201302-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.14_201302-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.14_201302-01\",\r\n \"label\": \"Windows Azure Guest OS 2.14 (Release 201302-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.43_202005-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.43_202005-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.43_202005-02\",\r\n \"label\": \"Windows Azure Guest OS 5.43 (Release 202005-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.41_201607-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.41_201607-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.41_201607-01\",\r\n \"label\": \"Windows Azure Guest OS 3.41 (Release 201607-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.22_201507-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.22_201507-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.22_201507-01\",\r\n \"label\": \"Windows Azure Guest OS 4.22 (Release 201507-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.77_201808-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.77_201808-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.77_201808-01\",\r\n \"label\": \"Windows Azure Guest OS 2.77 (Release 201808-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.90_202010-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.90_202010-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.90_202010-01\",\r\n \"label\": \"Windows Azure Guest OS 3.90 (Release 202010-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.86_202006-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.86_202006-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.86_202006-02\",\r\n \"label\": \"Windows Azure Guest OS 3.86 (Release 202006-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.37_201911-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.37_201911-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.37_201911-01\",\r\n \"label\": \"Windows Azure Guest OS 5.37 (Release 201911-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.56_201610-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.56_201610-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.56_201610-01\",\r\n \"label\": \"Windows Azure Guest OS 2.56 (Release 201610-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.56_201807-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.56_201807-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.56_201807-02\",\r\n \"label\": \"Windows Azure Guest OS 4.56 (Release 201807-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.59_201701-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.59_201701-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.59_201701-01\",\r\n \"label\": \"Windows Azure Guest OS 2.59 (Release 201701-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-6.26_202012-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-6.26_202012-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-6.26_202012-01\",\r\n \"label\": \"Windows Azure Guest OS 6.26 (Release 202012-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": true,\r\n \"family\": \"6\",\r\n \"familyLabel\": \"Windows Server 2019\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.24_201810-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.24_201810-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.24_201810-01\",\r\n \"label\": \"Windows Azure Guest OS 5.24 (Release 201810-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.84_202004-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.84_202004-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.84_202004-01\",\r\n \"label\": \"Windows Azure Guest OS 3.84 (Release 202004-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.3_201611-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.3_201611-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.3_201611-01\",\r\n \"label\": \"Windows Azure Guest OS 5.3 (Release 201611-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.4_201612-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.4_201612-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.4_201612-01\",\r\n \"label\": \"Windows Azure Guest OS 5.4 (Release 201612-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.88_202008-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.88_202008-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.88_202008-01\",\r\n \"label\": \"Windows Azure Guest OS 3.88 (Release 202008-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.19_201309-03\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.19_201309-03\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.19_201309-03\",\r\n \"label\": \"Windows Azure Guest OS 2.19 (Release 201309-03)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.85_202012-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.85_202012-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.85_202012-01\",\r\n \"label\": \"Windows Azure Guest OS 4.85 (Release 202012-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": true,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-6.1_201811-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-6.1_201811-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-6.1_201811-01\",\r\n \"label\": \"Windows Azure Guest OS 6.1 (Release 201811-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"6\",\r\n \"familyLabel\": \"Windows Server 2019\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-6.21_202007-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-6.21_202007-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-6.21_202007-01\",\r\n \"label\": \"Windows Azure Guest OS 6.21 (Release 202007-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"6\",\r\n \"familyLabel\": \"Windows Server 2019\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.50_202012-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.50_202012-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.50_202012-01\",\r\n \"label\": \"Windows Azure Guest OS 5.50 (Release 202012-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": true,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-6.9_201907-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-6.9_201907-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-6.9_201907-01\",\r\n \"label\": \"Windows Azure Guest OS 6.9 (Release 201907-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"6\",\r\n \"familyLabel\": \"Windows Server 2019\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.7_201107-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.7_201107-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.7_201107-01\",\r\n \"label\": \"Windows Azure Guest OS 2.7 (Release 201107-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.50_201604-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.50_201604-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.50_201604-01\",\r\n \"label\": \"Windows Azure Guest OS 2.50 (Release 201604-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.40_202002-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.40_202002-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.40_202002-01\",\r\n \"label\": \"Windows Azure Guest OS 5.40 (Release 202002-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.58_201612-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.58_201612-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.58_201612-01\",\r\n \"label\": \"Windows Azure Guest OS 2.58 (Release 201612-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.0_201010-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.0_201010-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.0_201010-01\",\r\n \"label\": \"Windows Azure Guest OS 2.0 (Release 201010-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.12_201208-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.12_201208-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.12_201208-02\",\r\n \"label\": \"Windows Azure Guest OS 2.12 (Release 201208-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.83_202010-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.83_202010-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.83_202010-02\",\r\n \"label\": \"Windows Azure Guest OS 4.83 (Release 202010-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.31_201905-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.31_201905-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.31_201905-01\",\r\n \"label\": \"Windows Azure Guest OS 5.31 (Release 201905-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.65_201809-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.65_201809-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.65_201809-01\",\r\n \"label\": \"Windows Azure Guest OS 3.65 (Release 201809-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.2_201302-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.2_201302-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.2_201302-01\",\r\n \"label\": \"Windows Azure Guest OS 3.2 (Release 201302-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.2_201302-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.2_201302-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.2_201302-02\",\r\n \"label\": \"Windows Azure Guest OS 3.2 (Release 201302-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.2_201302-03\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.2_201302-03\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.2_201302-03\",\r\n \"label\": \"Windows Azure Guest OS 3.2 (Release 201302-03)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.2_201302-04\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.2_201302-04\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.2_201302-04\",\r\n \"label\": \"Windows Azure Guest OS 3.2 (Release 201302-04)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.19_201309-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.19_201309-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.19_201309-01\",\r\n \"label\": \"Windows Azure Guest OS 2.19 (Release 201309-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.24_201402-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.24_201402-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.24_201402-01\",\r\n \"label\": \"Windows Azure Guest OS 2.24 (Release 201402-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.54_201608-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.54_201608-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.54_201608-01\",\r\n \"label\": \"Windows Azure Guest OS 2.54 (Release 201608-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.10_201708-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.10_201708-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.10_201708-01\",\r\n \"label\": \"Windows Azure Guest OS 5.10 (Release 201708-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.94_202001-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.94_202001-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.94_202001-01\",\r\n \"label\": \"Windows Azure Guest OS 2.94 (Release 202001-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.11_201408-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.11_201408-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.11_201408-02\",\r\n \"label\": \"Windows Azure Guest OS 4.11 (Release 201408-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-6.8_201906-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-6.8_201906-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-6.8_201906-01\",\r\n \"label\": \"Windows Azure Guest OS 6.8 (Release 201906-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"6\",\r\n \"familyLabel\": \"Windows Server 2019\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.21_201506-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.21_201506-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.21_201506-01\",\r\n \"label\": \"Windows Azure Guest OS 4.21 (Release 201506-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.48_201602-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.48_201602-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.48_201602-01\",\r\n \"label\": \"Windows Azure Guest OS 2.48 (Release 201602-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.37_201610-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.37_201610-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.37_201610-01\",\r\n \"label\": \"Windows Azure Guest OS 4.37 (Release 201610-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.4_201401-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.4_201401-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.4_201401-01\",\r\n \"label\": \"Windows Azure Guest OS 4.4 (Release 201401-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.81_202008-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.81_202008-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.81_202008-02\",\r\n \"label\": \"Windows Azure Guest OS 4.81 (Release 202008-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.32_201605-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.32_201605-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.32_201605-01\",\r\n \"label\": \"Windows Azure Guest OS 4.32 (Release 201605-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.3_201102-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.3_201102-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.3_201102-01\",\r\n \"label\": \"Windows Azure Guest OS 2.3 (Release 201102-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.77_201909-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.77_201909-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.77_201909-01\",\r\n \"label\": \"Windows Azure Guest OS 3.77 (Release 201909-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.46_202008-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.46_202008-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.46_202008-02\",\r\n \"label\": \"Windows Azure Guest OS 5.46 (Release 202008-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.1_201011-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.1_201011-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.1_201011-01\",\r\n \"label\": \"Windows Azure Guest OS 2.1 (Release 201011-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.23_201508-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.23_201508-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.23_201508-01\",\r\n \"label\": \"Windows Azure Guest OS 4.23 (Release 201508-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.96_202003-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.96_202003-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.96_202003-01\",\r\n \"label\": \"Windows Azure Guest OS 2.96 (Release 202003-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.57_201611-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.57_201611-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.57_201611-01\",\r\n \"label\": \"Windows Azure Guest OS 2.57 (Release 201611-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.92_201911-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.92_201911-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.92_201911-01\",\r\n \"label\": \"Windows Azure Guest OS 2.92 (Release 201911-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.2_201610-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.2_201610-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.2_201610-02\",\r\n \"label\": \"Windows Azure Guest OS 5.2 (Release 201610-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.2_201610-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.2_201610-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.2_201610-01\",\r\n \"label\": \"Windows Azure Guest OS 5.2 (Release 201610-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.91_201910-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.91_201910-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.91_201910-01\",\r\n \"label\": \"Windows Azure Guest OS 2.91 (Release 201910-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.36_201602-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.36_201602-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.36_201602-02\",\r\n \"label\": \"Windows Azure Guest OS 3.36 (Release 201602-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-6.24_202010-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-6.24_202010-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-6.24_202010-01\",\r\n \"label\": \"Windows Azure Guest OS 6.24 (Release 202010-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"6\",\r\n \"familyLabel\": \"Windows Server 2019\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.39_201612-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.39_201612-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.39_201612-01\",\r\n \"label\": \"Windows Azure Guest OS 4.39 (Release 201612-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-6.19_202005-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-6.19_202005-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-6.19_202005-02\",\r\n \"label\": \"Windows Azure Guest OS 6.19 (Release 202005-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"6\",\r\n \"familyLabel\": \"Windows Server 2019\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.27_201505-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.27_201505-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.27_201505-02\",\r\n \"label\": \"Windows Azure Guest OS 3.27 (Release 201505-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.34_201607-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.34_201607-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.34_201607-01\",\r\n \"label\": \"Windows Azure Guest OS 4.34 (Release 201607-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-6.22_202008-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-6.22_202008-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-6.22_202008-01\",\r\n \"label\": \"Windows Azure Guest OS 6.22 (Release 202008-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"6\",\r\n \"familyLabel\": \"Windows Server 2019\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.21_201807-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.21_201807-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.21_201807-01\",\r\n \"label\": \"Windows Azure Guest OS 5.21 (Release 201807-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.4_201306-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.4_201306-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.4_201306-01\",\r\n \"label\": \"Windows Azure Guest OS 3.4 (Release 201306-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.52_201803-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.52_201803-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.52_201803-01\",\r\n \"label\": \"WindowsAzureGuestOS4.52 (Release 201803-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.84_201903-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.84_201903-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.84_201903-01\",\r\n \"label\": \"Windows Azure Guest OS 2.84 (Release 201903-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.3_201305-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.3_201305-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.3_201305-01\",\r\n \"label\": \"Windows Azure Guest OS 3.3 (Release 201305-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.34_201908-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.34_201908-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.34_201908-01\",\r\n \"label\": \"Windows Azure Guest OS 5.34 (Release 201908-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.82_201901-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.82_201901-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.82_201901-01\",\r\n \"label\": \"Windows Azure Guest OS 2.82 (Release 201901-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.56_201807-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.56_201807-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.56_201807-01\",\r\n \"label\": \"Windows Azure Guest OS 4.56 (Release 201807-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.86_202101-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.86_202101-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.86_202101-01\",\r\n \"label\": \"Windows Azure Guest OS 4.86 (Release 202101-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": true,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.18_201804-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.18_201804-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.18_201804-01\",\r\n \"label\": \"WindowsAzureGuestOS5.18 (Release 201804-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-6.15_202001-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-6.15_202001-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-6.15_202001-01\",\r\n \"label\": \"Windows Azure Guest OS 6.15 (Release 202001-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"6\",\r\n \"familyLabel\": \"Windows Server 2019\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.79_202006-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.79_202006-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.79_202006-02\",\r\n \"label\": \"Windows Azure Guest OS 4.79 (Release 202006-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.24_201502-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.24_201502-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.24_201502-01\",\r\n \"label\": \"Windows Azure Guest OS 3.24 (Release 201502-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.3_201312-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.3_201312-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.3_201312-01\",\r\n \"label\": \"Windows Azure Guest OS 4.3 (Release 201312-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.10_201202-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.10_201202-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.10_201202-01\",\r\n \"label\": \"Windows Azure Guest OS 2.10 (Release 201202-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.59_201810-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.59_201810-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.59_201810-01\",\r\n \"label\": \"Windows Azure Guest OS 4.59 (Release 201810-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.60_201703-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.60_201703-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.60_201703-01\",\r\n \"label\": \"Windows Azure Guest OS 2.60 (Release 201703-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.33_201907-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.33_201907-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.33_201907-01\",\r\n \"label\": \"Windows Azure Guest OS 5.33 (Release 201907-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.54_201805-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.54_201805-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.54_201805-01\",\r\n \"label\": \"Windows Azure Guest OS 4.54 (Release 201805-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.67_201710-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.67_201710-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.67_201710-02\",\r\n \"label\": \"Windows Azure Guest OS 2.67 (Release 201710-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.22_201808-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.22_201808-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.22_201808-01\",\r\n \"label\": \"Windows Azure Guest OS 5.22 (Release 201808-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.58_201809-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.58_201809-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.58_201809-01\",\r\n \"label\": \"Windows Azure Guest OS 4.58 (Release 201809-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.5_201104-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.5_201104-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.5_201104-01\",\r\n \"label\": \"Windows Azure Guest OS 2.5 (Release 201104-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.64_201903-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.64_201903-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.64_201903-01\",\r\n \"label\": \"Windows Azure Guest OS 4.64 (Release 201903-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.12_201208-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.12_201208-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.12_201208-01\",\r\n \"label\": \"Windows Azure Guest OS 2.12 (Release 201208-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-6.17_202003-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-6.17_202003-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-6.17_202003-01\",\r\n \"label\": \"Windows Azure Guest OS 6.17 (Release 202003-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"6\",\r\n \"familyLabel\": \"Windows Server 2019\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.14_201712-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.14_201712-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.14_201712-01\",\r\n \"label\": \"Windows Azure Guest OS 5.14 (Release 201712-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.62_201901-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.62_201901-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.62_201901-01\",\r\n \"label\": \"Windows Azure Guest OS 4.62 (Release 201901-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-6.11_201909-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-6.11_201909-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-6.11_201909-01\",\r\n \"label\": \"Windows Azure Guest OS 6.11 (Release 201909-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"6\",\r\n \"familyLabel\": \"Windows Server 2019\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.68_201907-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.68_201907-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.68_201907-01\",\r\n \"label\": \"Windows Azure Guest OS 4.68 (Release 201907-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.12_201710-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.12_201710-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.12_201710-01\",\r\n \"label\": \"Windows Azure Guest OS 5.12 (Release 201710-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.66_201709-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.66_201709-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.66_201709-01\",\r\n \"label\": \"Windows Azure Guest OS 2.66 (Release 201709-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.16_201802-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.16_201802-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.16_201802-01\",\r\n \"label\": \"WindowsAzureGuestOS5.16 (Release 201802-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.66_201905-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.66_201905-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.66_201905-01\",\r\n \"label\": \"Windows Azure Guest OS 4.66 (Release 201905-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.17_201307-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.17_201307-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.17_201307-01\",\r\n \"label\": \"Windows Azure Guest OS 2.17 (Release 201307-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.52_201606-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.52_201606-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.52_201606-01\",\r\n \"label\": \"Windows Azure Guest OS 2.52 (Release 201606-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.27_201405-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.27_201405-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.27_201405-01\",\r\n \"label\": \"Windows Azure Guest OS 2.27 (Release 201405-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.40_201703-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.40_201703-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.40_201703-01\",\r\n \"label\": \"Windows Azure Guest OS 4.40 (Release 201703-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-6.3_201901-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-6.3_201901-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-6.3_201901-01\",\r\n \"label\": \"Windows Azure Guest OS 6.3 (Release 201901-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"6\",\r\n \"familyLabel\": \"Windows Server 2019\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.68_201711-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.68_201711-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.68_201711-01\",\r\n \"label\": \"Windows Azure Guest OS 2.68 (Release 201711-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.31_201604-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.31_201604-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.31_201604-01\",\r\n \"label\": \"Windows Azure Guest OS 4.31 (Release 201604-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.77_202004-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.77_202004-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.77_202004-01\",\r\n \"label\": \"Windows Azure Guest OS 4.77 (Release 202004-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.47_201710-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.47_201710-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.47_201710-02\",\r\n \"label\": \"Windows Azure Guest OS 4.47 (Release 201710-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.20_201310-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.20_201310-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.20_201310-01\",\r\n \"label\": \"Windows Azure Guest OS 2.20 (Release 201310-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.26_201504-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.26_201504-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.26_201504-01\",\r\n \"label\": \"Windows Azure Guest OS 3.26 (Release 201504-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.81_202008-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.81_202008-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.81_202008-01\",\r\n \"label\": \"Windows Azure Guest OS 4.81 (Release 202008-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.93_202101-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.93_202101-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.93_202101-01\",\r\n \"label\": \"Windows Azure Guest OS 3.93 (Release 202101-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": true,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.93_201912-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.93_201912-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.93_201912-01\",\r\n \"label\": \"Windows Azure Guest OS 2.93 (Release 201912-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.15_201305-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.15_201305-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.15_201305-01\",\r\n \"label\": \"Windows Azure Guest OS 2.15 (Release 201305-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.12_201409-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.12_201409-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.12_201409-02\",\r\n \"label\": \"Windows Azure Guest OS 4.12 (Release 201409-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.35_201608-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.35_201608-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.35_201608-01\",\r\n \"label\": \"Windows Azure Guest OS 4.35 (Release 201608-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.26_201511-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.26_201511-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.26_201511-02\",\r\n \"label\": \"Windows Azure Guest OS 4.26 (Release 201511-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.78_202005-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.78_202005-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.78_202005-02\",\r\n \"label\": \"Windows Azure Guest OS 4.78 (Release 202005-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.20_201505-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.20_201505-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.20_201505-02\",\r\n \"label\": \"Windows Azure Guest OS 4.20 (Release 201505-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.42_201508-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.42_201508-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.42_201508-02\",\r\n \"label\": \"Windows Azure Guest OS 2.42 (Release 201508-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.51_201605-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.51_201605-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.51_201605-01\",\r\n \"label\": \"Windows Azure Guest OS 2.51 (Release 201605-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.46_201709-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.46_201709-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.46_201709-01\",\r\n \"label\": \"Windows Azure Guest OS 4.46 (Release 201709-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.76_201807-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.76_201807-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.76_201807-02\",\r\n \"label\": \"Windows Azure Guest OS 2.76 (Release 201807-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.30_201508-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.30_201508-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.30_201508-01\",\r\n \"label\": \"Windows Azure Guest OS 3.30 (Release 201508-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.29_201407-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.29_201407-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.29_201407-01\",\r\n \"label\": \"Windows Azure Guest OS 2.29 (Release 201407-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.14_201404-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.14_201404-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.14_201404-01\",\r\n \"label\": \"Windows Azure Guest OS 3.14 (Release 201404-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.38_201604-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.38_201604-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.38_201604-01\",\r\n \"label\": \"Windows Azure Guest OS 3.38 (Release 201604-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.76_202003-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.76_202003-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.76_202003-01\",\r\n \"label\": \"Windows Azure Guest OS 4.76 (Release 202003-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.48_201711-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.48_201711-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.48_201711-01\",\r\n \"label\": \"Windows Azure Guest OS 4.48 (Release 201711-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.12_201402-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.12_201402-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.12_201402-01\",\r\n \"label\": \"Windows Azure Guest OS 3.12 (Release 201402-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.6_201105-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.6_201105-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.6_201105-01\",\r\n \"label\": \"Windows Azure Guest OS 2.6 (Release 201105-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.36_201602-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.36_201602-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.36_201602-01\",\r\n \"label\": \"Windows Azure Guest OS 3.36 (Release 201602-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-6.19_202005-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-6.19_202005-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-6.19_202005-01\",\r\n \"label\": \"Windows Azure Guest OS 6.19 (Release 202005-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"6\",\r\n \"familyLabel\": \"Windows Server 2019\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.55_201609-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.55_201609-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.55_201609-01\",\r\n \"label\": \"Windows Azure Guest OS 2.55 (Release 201609-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.15_201801-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.15_201801-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.15_201801-01\",\r\n \"label\": \"WindowsAzureGuestOS5.15(Release201801-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.51_201802-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.51_201802-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.51_201802-01\",\r\n \"label\": \"WindowsAzureGuestOS4.51 (Release 201802-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.0_201208-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.0_201208-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.0_201208-02\",\r\n \"label\": \"Windows Azure Guest OS 3.0 (Release 201208-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.88_202103-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.88_202103-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.88_202103-01\",\r\n \"label\": \"Windows Azure Guest OS 4.88 (Release 202103-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.84_202011-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.84_202011-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.84_202011-01\",\r\n \"label\": \"Windows Azure Guest OS 4.84 (Release 202011-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.11_201709-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.11_201709-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.11_201709-01\",\r\n \"label\": \"Windows Azure Guest OS 5.11 (Release 201709-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.98_202005-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.98_202005-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.98_202005-01\",\r\n \"label\": \"Windows Azure Guest OS 2.98 (Release 202005-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.28_201506-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.28_201506-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.28_201506-01\",\r\n \"label\": \"Windows Azure Guest OS 3.28 (Release 201506-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-6.22_202008-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-6.22_202008-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-6.22_202008-02\",\r\n \"label\": \"Windows Azure Guest OS 6.22 (Release 202008-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"6\",\r\n \"familyLabel\": \"Windows Server 2019\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.21_201807-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.21_201807-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.21_201807-02\",\r\n \"label\": \"Windows Azure Guest OS 5.21 (Release 201807-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.5_201307-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.5_201307-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.5_201307-01\",\r\n \"label\": \"Windows Azure Guest OS 3.5 (Release 201307-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.75_202002-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.75_202002-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.75_202002-01\",\r\n \"label\": \"Windows Azure Guest OS 4.75 (Release 202002-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.80_201811-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.80_201811-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.80_201811-01\",\r\n \"label\": \"Windows Azure Guest OS 2.80 (Release 201811-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.60_201804-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.60_201804-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.60_201804-01\",\r\n \"label\": \"Windows Azure Guest OS 3.60 (Release 201804-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.23_201401-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.23_201401-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.23_201401-01\",\r\n \"label\": \"Windows Azure Guest OS 2.23 (Release 201401-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.8_201310-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.8_201310-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.8_201310-01\",\r\n \"label\": \"Windows Azure Guest OS 3.8 (Release 201310-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.70_201902-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.70_201902-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.70_201902-01\",\r\n \"label\": \"Windows Azure Guest OS 3.70 (Release 201902-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.1_201609-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.1_201609-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.1_201609-01\",\r\n \"label\": \"Windows Azure Guest OS 5.1 (Release 201609-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.78_201910-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.78_201910-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.78_201910-01\",\r\n \"label\": \"Windows Azure Guest OS 3.78 (Release 201910-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.20_201410-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.20_201410-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.20_201410-01\",\r\n \"label\": \"Windows Azure Guest OS 3.20 (Release 201410-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.13_201711-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.13_201711-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.13_201711-01\",\r\n \"label\": \"Windows Azure Guest OS 5.13 (Release 201711-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.95_202103-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.95_202103-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.95_202103-01\",\r\n \"label\": \"Windows Azure Guest OS 3.95 (Release 202103-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.8_201405-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.8_201405-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.8_201405-01\",\r\n \"label\": \"Windows Azure Guest OS 4.8 (Release 201405-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.70_201801-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.70_201801-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.70_201801-01\",\r\n \"label\": \"Windows Azure Guest OS 2.70 (Release 201801-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.47_201601-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.47_201601-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.47_201601-01\",\r\n \"label\": \"Windows Azure Guest OS 2.47 (Release 201601-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.30_201408-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.30_201408-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.30_201408-01\",\r\n \"label\": \"Windows Azure Guest OS 2.30 (Release 201408-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.83_202003-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.83_202003-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.83_202003-01\",\r\n \"label\": \"Windows Azure Guest OS 3.83 (Release 202003-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.16_201501-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.16_201501-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.16_201501-01\",\r\n \"label\": \"Windows Azure Guest OS 4.16 (Release 201501-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.69_201712-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.69_201712-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.69_201712-01\",\r\n \"label\": \"Windows Azure Guest OS 2.69 (Release 201712-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.87_202007-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.87_202007-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.87_202007-01\",\r\n \"label\": \"Windows Azure Guest OS 3.87 (Release 202007-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.46_201512-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.46_201512-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.46_201512-01\",\r\n \"label\": \"Windows Azure Guest OS 2.46 (Release 201512-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.13_201210-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.13_201210-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.13_201210-01\",\r\n \"label\": \"Windows Azure Guest OS 2.13 (Release 201210-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.67_201710-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.67_201710-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.67_201710-01\",\r\n \"label\": \"Windows Azure Guest OS 2.67 (Release 201710-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.14_201301-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.14_201301-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.14_201301-02\",\r\n \"label\": \"Windows Azure Guest OS 2.14 (Release 201301-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.80_201912-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.80_201912-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.80_201912-01\",\r\n \"label\": \"Windows Azure Guest OS 3.80 (Release 201912-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.63_201807-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.63_201807-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.63_201807-02\",\r\n \"label\": \"Windows Azure Guest OS 3.63 (Release 201807-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.25_201403-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.25_201403-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.25_201403-01\",\r\n \"label\": \"Windows Azure Guest OS 2.25 (Release 201403-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.85_202005-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.85_202005-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.85_202005-02\",\r\n \"label\": \"Windows Azure Guest OS 3.85 (Release 202005-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.0_201608-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.0_201608-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.0_201608-01\",\r\n \"label\": \"Windows Azure Guest OS 5.0 (Release 201608-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.38_201504-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.38_201504-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.38_201504-01\",\r\n \"label\": \"Windows Azure Guest OS 2.38 (Release 201504-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.60_201811-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.60_201811-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.60_201811-01\",\r\n \"label\": \"Windows Azure Guest OS 4.60 (Release 201811-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.88_201907-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.88_201907-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.88_201907-01\",\r\n \"label\": \"Windows Azure Guest OS 2.88 (Release 201907-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.66_201810-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.66_201810-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.66_201810-01\",\r\n \"label\": \"Windows Azure Guest OS 3.66 (Release 201810-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.22_201312-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.22_201312-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.22_201312-01\",\r\n \"label\": \"Windows Azure Guest OS 2.22 (Release 201312-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.33_201511-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.33_201511-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.33_201511-02\",\r\n \"label\": \"Windows Azure Guest OS 3.33 (Release 201511-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.35_201909-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.35_201909-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.35_201909-01\",\r\n \"label\": \"Windows Azure Guest OS 5.35 (Release 201909-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.28_201601-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.28_201601-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.28_201601-01\",\r\n \"label\": \"Windows Azure Guest OS 4.28 (Release 201601-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.83_201902-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.83_201902-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.83_201902-01\",\r\n \"label\": \"Windows Azure Guest OS 2.83 (Release 201902-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.86_201905-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.86_201905-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.86_201905-01\",\r\n \"label\": \"Windows Azure Guest OS 2.86 (Release 201905-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.49_201603-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.49_201603-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.49_201603-01\",\r\n \"label\": \"Windows Azure Guest OS 2.49 (Release 201603-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.45_201511-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.45_201511-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.45_201511-01\",\r\n \"label\": \"Windows Azure Guest OS 2.45 (Release 201511-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.18_201503-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.18_201503-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.18_201503-01\",\r\n \"label\": \"Windows Azure Guest OS 4.18 (Release 201503-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-6.7_201905-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-6.7_201905-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-6.7_201905-01\",\r\n \"label\": \"Windows Azure Guest OS 6.7 (Release 201905-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"6\",\r\n \"familyLabel\": \"Windows Server 2019\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.14_201302-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.14_201302-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.14_201302-02\",\r\n \"label\": \"Windows Azure Guest OS 2.14 (Release 201302-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.40_201506-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.40_201506-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.40_201506-01\",\r\n \"label\": \"Windows Azure Guest OS 2.40 (Release 201506-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.49_201712-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.49_201712-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.49_201712-01\",\r\n \"label\": \"Windows Azure Guest OS 4.49 (Release 201712-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.6_201403-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.6_201403-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.6_201403-01\",\r\n \"label\": \"Windows Azure Guest OS 4.6 (Release 201403-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-6.16_202002-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-6.16_202002-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-6.16_202002-01\",\r\n \"label\": \"Windows Azure Guest OS 6.16 (Release 202002-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"6\",\r\n \"familyLabel\": \"Windows Server 2019\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.18_201408-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.18_201408-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.18_201408-01\",\r\n \"label\": \"Windows Azure Guest OS 3.18 (Release 201408-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.81_201812-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.81_201812-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.81_201812-01\",\r\n \"label\": \"Windows Azure Guest OS 2.81 (Release 201812-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.47_201710-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.47_201710-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.47_201710-01\",\r\n \"label\": \"Windows Azure Guest OS 4.47 (Release 201710-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.11_201401-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.11_201401-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.11_201401-01\",\r\n \"label\": \"Windows Azure Guest OS 3.11 (Release 201401-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.35_201601-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.35_201601-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.35_201601-01\",\r\n \"label\": \"Windows Azure Guest OS 3.35 (Release 201601-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.39_201505-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.39_201505-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.39_201505-01\",\r\n \"label\": \"Windows Azure Guest OS 2.39 (Release 201505-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.16_201406-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.16_201406-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.16_201406-01\",\r\n \"label\": \"Windows Azure Guest OS 3.16 (Release 201406-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.58_201802-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.58_201802-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.58_201802-01\",\r\n \"label\": \"Windows Azure Guest OS 3.58 (Release 201802-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.72_201904-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.72_201904-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.72_201904-01\",\r\n \"label\": \"Windows Azure Guest OS 3.72 (Release 201904-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.21_201311-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.21_201311-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.21_201311-01\",\r\n \"label\": \"Windows Azure Guest OS 2.21 (Release 201311-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.9_201311-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.9_201311-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.9_201311-01\",\r\n \"label\": \"Windows Azure Guest OS 3.9 (Release 201311-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.51_202101-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.51_202101-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.51_202101-01\",\r\n \"label\": \"Windows Azure Guest OS 5.51 (Release 202101-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": true,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.19_201805-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.19_201805-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.19_201805-01\",\r\n \"label\": \"Windows Azure Guest OS 5.19 (Release 201805-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.68_201812-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.68_201812-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.68_201812-01\",\r\n \"label\": \"Windows Azure Guest OS 3.68 (Release 201812-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.33_201606-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.33_201606-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.33_201606-01\",\r\n \"label\": \"Windows Azure Guest OS 4.33 (Release 201606-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.32_201510-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.32_201510-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.32_201510-01\",\r\n \"label\": \"Windows Azure Guest OS 3.32 (Release 201510-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.42_201508-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.42_201508-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.42_201508-01\",\r\n \"label\": \"Windows Azure Guest OS 2.42 (Release 201508-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.76_201807-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.76_201807-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.76_201807-01\",\r\n \"label\": \"Windows Azure Guest OS 2.76 (Release 201807-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.23_201501-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.23_201501-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.23_201501-01\",\r\n \"label\": \"Windows Azure Guest OS 3.23 (Release 201501-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-6.6_201904-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-6.6_201904-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-6.6_201904-01\",\r\n \"label\": \"Windows Azure Guest OS 6.6 (Release 201904-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"6\",\r\n \"familyLabel\": \"Windows Server 2019\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.36_201502-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.36_201502-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.36_201502-01\",\r\n \"label\": \"Windows Azure Guest OS 2.36 (Release 201502-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.14_201411-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.14_201411-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.14_201411-01\",\r\n \"label\": \"Windows Azure Guest OS 4.14 (Release 201411-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.48_201704-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.48_201704-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.48_201704-01\",\r\n \"label\": \"Windows Azure Guest OS 3.48 (Release 201704-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.101_202008-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.101_202008-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.101_202008-01\",\r\n \"label\": \"Windows Azure Guest OS 2.101 (Release 202008-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.101_202008-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.101_202008-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.101_202008-02\",\r\n \"label\": \"Windows Azure Guest OS 2.101 (Release 202008-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.44_201510-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.44_201510-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.44_201510-01\",\r\n \"label\": \"Windows Azure Guest OS 2.44 (Release 201510-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.63_201902-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.63_201902-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.63_201902-01\",\r\n \"label\": \"Windows Azure Guest OS 4.63 (Release 201902-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.2_201301-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.2_201301-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.2_201301-02\",\r\n \"label\": \"Windows Azure Guest OS 3.2 (Release 201301-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.2_201301-03\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.2_201301-03\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.2_201301-03\",\r\n \"label\": \"Windows Azure Guest OS 3.2 (Release 201301-03)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.79_201911-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.79_201911-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.79_201911-01\",\r\n \"label\": \"Windows Azure Guest OS 3.79 (Release 201911-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.28_201902-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.28_201902-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.28_201902-01\",\r\n \"label\": \"Windows Azure Guest OS 5.28 (Release 201902-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.67_201906-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.67_201906-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.67_201906-01\",\r\n \"label\": \"Windows Azure Guest OS 4.67 (Release 201906-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.53_201607-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.53_201607-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.53_201607-01\",\r\n \"label\": \"Windows Azure Guest OS 2.53 (Release 201607-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.74_202001-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.74_202001-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.74_202001-01\",\r\n \"label\": \"Windows Azure Guest OS 4.74 (Release 202001-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.56_201610-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.56_201610-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.56_201610-02\",\r\n \"label\": \"Windows Azure Guest OS 2.56 (Release 201610-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.74_201906-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.74_201906-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.74_201906-01\",\r\n \"label\": \"Windows Azure Guest OS 3.74 (Release 201906-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.41_201704-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.41_201704-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.41_201704-01\",\r\n \"label\": \"Windows Azure Guest OS 4.41 (Release 201704-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.47_202009-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.47_202009-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.47_202009-01\",\r\n \"label\": \"Windows Azure Guest OS 5.47 (Release 202009-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.61_201812-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.61_201812-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.61_201812-01\",\r\n \"label\": \"Windows Azure Guest OS 4.61 (Release 201812-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.74_201805-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.74_201805-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.74_201805-01\",\r\n \"label\": \"Windows Azure Guest OS 2.74 (Release 201805-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.56_201712-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.56_201712-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.56_201712-01\",\r\n \"label\": \"Windows Azure Guest OS 3.56 (Release 201712-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.11_201204-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.11_201204-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.11_201204-01\",\r\n \"label\": \"Windows Azure Guest OS 2.11 (Release 201204-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.34_201512-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.34_201512-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.34_201512-01\",\r\n \"label\": \"Windows Azure Guest OS 3.34 (Release 201512-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.72_201911-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.72_201911-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.72_201911-01\",\r\n \"label\": \"Windows Azure Guest OS 4.72 (Release 201911-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.25_201503-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.25_201503-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.25_201503-01\",\r\n \"label\": \"Windows Azure Guest OS 3.25 (Release 201503-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.17_201803-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.17_201803-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.17_201803-01\",\r\n \"label\": \"WindowsAzureGuestOS5.17 (Release 201803-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.53_201804-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.53_201804-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.53_201804-01\",\r\n \"label\": \"WindowsAzureGuestOS4.53 (Release 201804-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.23_201809-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.23_201809-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.23_201809-01\",\r\n \"label\": \"Windows Azure Guest OS 5.23 (Release 201809-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-6.18_202004-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-6.18_202004-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-6.18_202004-01\",\r\n \"label\": \"Windows Azure Guest OS 6.18 (Release 202004-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"6\",\r\n \"familyLabel\": \"Windows Server 2019\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.22_201507-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.22_201507-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.22_201507-02\",\r\n \"label\": \"Windows Azure Guest OS 4.22 (Release 201507-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.85_201904-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.85_201904-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.85_201904-01\",\r\n \"label\": \"Windows Azure Guest OS 2.85 (Release 201904-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.82_202002-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.82_202002-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.82_202002-01\",\r\n \"label\": \"Windows Azure Guest OS 3.82 (Release 202002-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.9_201112-03\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.9_201112-03\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.9_201112-03\",\r\n \"label\": \"Windows Azure Guest OS 2.9 (Release 201112-03)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.9_201112-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.9_201112-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.9_201112-02\",\r\n \"label\": \"Windows Azure Guest OS 2.9 (Release 201112-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.9_201112-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.9_201112-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.9_201112-01\",\r\n \"label\": \"Windows Azure Guest OS 2.9 (Release 201112-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.57_201808-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.57_201808-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.57_201808-01\",\r\n \"label\": \"Windows Azure Guest OS 4.57 (Release 201808-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.1_201210-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.1_201210-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.1_201210-01\",\r\n \"label\": \"Windows Azure Guest OS 3.1 (Release 201210-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.2_201311-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.2_201311-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.2_201311-01\",\r\n \"label\": \"Windows Azure Guest OS 4.2 (Release 201311-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.52_201708-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.52_201708-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.52_201708-01\",\r\n \"label\": \"Windows Azure Guest OS 3.52 (Release 201708-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-6.2_201812-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-6.2_201812-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-6.2_201812-01\",\r\n \"label\": \"Windows Azure Guest OS 6.2 (Release 201812-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"6\",\r\n \"familyLabel\": \"Windows Server 2019\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.32_201410-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.32_201410-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.32_201410-01\",\r\n \"label\": \"Windows Azure Guest OS 2.32 (Release 201410-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.21_201411-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.21_201411-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.21_201411-01\",\r\n \"label\": \"Windows Azure Guest OS 3.21 (Release 201411-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.48_201602-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.48_201602-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.48_201602-02\",\r\n \"label\": \"Windows Azure Guest OS 2.48 (Release 201602-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.31_201509-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.31_201509-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.31_201509-01\",\r\n \"label\": \"Windows Azure Guest OS 3.31 (Release 201509-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.35_201501-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.35_201501-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.35_201501-01\",\r\n \"label\": \"Windows Azure Guest OS 2.35 (Release 201501-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.62_201806-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.62_201806-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.62_201806-01\",\r\n \"label\": \"Windows Azure Guest OS 3.62 (Release 201806-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.89_201908-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.89_201908-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.89_201908-01\",\r\n \"label\": \"Windows Azure Guest OS 2.89 (Release 201908-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.5_201402-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.5_201402-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.5_201402-01\",\r\n \"label\": \"Windows Azure Guest OS 4.5 (Release 201402-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.54_201710-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.54_201710-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.54_201710-01\",\r\n \"label\": \"Windows Azure Guest OS 3.54 (Release 201710-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.39_202001-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.39_202001-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.39_202001-01\",\r\n \"label\": \"Windows Azure Guest OS 5.39 (Release 202001-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.61_201704-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.61_201704-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.61_201704-01\",\r\n \"label\": \"Windows Azure Guest OS 2.61 (Release 201704-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.82_202009-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.82_202009-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.82_202009-01\",\r\n \"label\": \"Windows Azure Guest OS 4.82 (Release 202009-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.53_202103-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.53_202103-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.53_202103-01\",\r\n \"label\": \"Windows Azure Guest OS 5.53 (Release 202103-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.81_202001-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.81_202001-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.81_202001-01\",\r\n \"label\": \"Windows Azure Guest OS 3.81 (Release 202001-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.10_201312-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.10_201312-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.10_201312-01\",\r\n \"label\": \"Windows Azure Guest OS 3.10 (Release 201312-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.22_201412-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.22_201412-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.22_201412-01\",\r\n \"label\": \"Windows Azure Guest OS 3.22 (Release 201412-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.72_201803-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.72_201803-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.72_201803-01\",\r\n \"label\": \"Windows Azure Guest OS 2.72 (Release 201803-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.55_201806-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.55_201806-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.55_201806-01\",\r\n \"label\": \"Windows Azure Guest OS 4.55 (Release 201806-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.85_202005-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.85_202005-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.85_202005-01\",\r\n \"label\": \"Windows Azure Guest OS 3.85 (Release 202005-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.8_201109-03\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.8_201109-03\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.8_201109-03\",\r\n \"label\": \"Windows Azure Guest OS 2.8 (Release 201109-03)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.8_201109-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.8_201109-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.8_201109-02\",\r\n \"label\": \"Windows Azure Guest OS 2.8 (Release 201109-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.8_201109-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.8_201109-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.8_201109-01\",\r\n \"label\": \"Windows Azure Guest OS 2.8 (Release 201109-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.80_202007-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.80_202007-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.80_202007-01\",\r\n \"label\": \"Windows Azure Guest OS 4.80 (Release 202007-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.15_201405-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.15_201405-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.15_201405-01\",\r\n \"label\": \"Windows Azure Guest OS 3.15 (Release 201405-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.39_201605-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.39_201605-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.39_201605-01\",\r\n \"label\": \"Windows Azure Guest OS 3.39 (Release 201605-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.2_201101-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.2_201101-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.2_201101-01\",\r\n \"label\": \"Windows Azure Guest OS 2.2 (Release 201101-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.9_201406-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.9_201406-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.9_201406-01\",\r\n \"label\": \"Windows Azure Guest OS 4.9 (Release 201406-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.46_201612-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.46_201612-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.46_201612-01\",\r\n \"label\": \"Windows Azure Guest OS 3.46 (Release 201612-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.65_201708-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.65_201708-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.65_201708-01\",\r\n \"label\": \"Windows Azure Guest OS 2.65 (Release 201708-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-6.27_202101-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-6.27_202101-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-6.27_202101-01\",\r\n \"label\": \"Windows Azure Guest OS 6.27 (Release 202101-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": true,\r\n \"family\": \"6\",\r\n \"familyLabel\": \"Windows Server 2019\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.65_201904-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.65_201904-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.65_201904-01\",\r\n \"label\": \"Windows Azure Guest OS 4.65 (Release 201904-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.13_201403-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.13_201403-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.13_201403-01\",\r\n \"label\": \"Windows Azure Guest OS 3.13 (Release 201403-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.33_201511-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.33_201511-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.33_201511-01\",\r\n \"label\": \"Windows Azure Guest OS 3.33 (Release 201511-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.37_201603-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.37_201603-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.37_201603-01\",\r\n \"label\": \"Windows Azure Guest OS 3.37 (Release 201603-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.34_201412-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.34_201412-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.34_201412-01\",\r\n \"label\": \"Windows Azure Guest OS 2.34 (Release 201412-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.67_201811-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.67_201811-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.67_201811-01\",\r\n \"label\": \"Windows Azure Guest OS 3.67 (Release 201811-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.102_202009-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.102_202009-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.102_202009-01\",\r\n \"label\": \"Windows Azure Guest OS 2.102 (Release 202009-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.69_201908-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.69_201908-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.69_201908-01\",\r\n \"label\": \"Windows Azure Guest OS 4.69 (Release 201908-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.27_201505-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.27_201505-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.27_201505-01\",\r\n \"label\": \"Windows Azure Guest OS 3.27 (Release 201505-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.69_201901-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.69_201901-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.69_201901-01\",\r\n \"label\": \"Windows Azure Guest OS 3.69 (Release 201901-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.79_201810-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.79_201810-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.79_201810-01\",\r\n \"label\": \"Windows Azure Guest OS 2.79 (Release 201810-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.42_201608-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.42_201608-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.42_201608-01\",\r\n \"label\": \"Windows Azure Guest OS 3.42 (Release 201608-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.14_201301-03\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.14_201301-03\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.14_201301-03\",\r\n \"label\": \"Windows Azure Guest OS 2.14 (Release 201301-03)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-6.14_201912-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-6.14_201912-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-6.14_201912-01\",\r\n \"label\": \"Windows Azure Guest OS 6.14 (Release 201912-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"6\",\r\n \"familyLabel\": \"Windows Server 2019\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.41_202003-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.41_202003-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.41_202003-01\",\r\n \"label\": \"Windows Azure Guest OS 5.41 (Release 202003-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.71_201903-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.71_201903-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.71_201903-01\",\r\n \"label\": \"Windows Azure Guest OS 3.71 (Release 201903-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.49_202011-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.49_202011-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.49_202011-01\",\r\n \"label\": \"Windows Azure Guest OS 5.49 (Release 202011-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-6.12_201910-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-6.12_201910-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-6.12_201910-01\",\r\n \"label\": \"Windows Azure Guest OS 6.12 (Release 201910-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"6\",\r\n \"familyLabel\": \"Windows Server 2019\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.23_201508-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.23_201508-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.23_201508-02\",\r\n \"label\": \"Windows Azure Guest OS 4.23 (Release 201508-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.44_201610-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.44_201610-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.44_201610-01\",\r\n \"label\": \"Windows Azure Guest OS 3.44 (Release 201610-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.31_201409-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.31_201409-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.31_201409-01\",\r\n \"label\": \"Windows Azure Guest OS 2.31 (Release 201409-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.78_201809-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.78_201809-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.78_201809-01\",\r\n \"label\": \"Windows Azure Guest OS 2.78 (Release 201809-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.40_201606-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.40_201606-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.40_201606-01\",\r\n \"label\": \"Windows Azure Guest OS 3.40 (Release 201606-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.45_201708-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.45_201708-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.45_201708-01\",\r\n \"label\": \"Windows Azure Guest OS 4.45 (Release 201708-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.14_201302-03\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.14_201302-03\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.14_201302-03\",\r\n \"label\": \"Windows Azure Guest OS 2.14 (Release 201302-03)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.61_201805-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.61_201805-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.61_201805-01\",\r\n \"label\": \"Windows Azure Guest OS 3.61 (Release 201805-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.91_202011-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.91_202011-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.91_202011-01\",\r\n \"label\": \"Windows Azure Guest OS 3.91 (Release 202011-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.29_201507-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.29_201507-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.29_201507-01\",\r\n \"label\": \"Windows Azure Guest OS 3.29 (Release 201507-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.18_201408-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.18_201408-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.18_201408-02\",\r\n \"label\": \"Windows Azure Guest OS 3.18 (Release 201408-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.13_201410-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.13_201410-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.13_201410-01\",\r\n \"label\": \"Windows Azure Guest OS 4.13 (Release 201410-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-6.20_202006-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-6.20_202006-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-6.20_202006-02\",\r\n \"label\": \"Windows Azure Guest OS 6.20 (Release 202006-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"6\",\r\n \"familyLabel\": \"Windows Server 2019\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.58_201802-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.58_201802-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.58_201802-02\",\r\n \"label\": \"Windows Azure Guest OS 3.58 (Release 201802-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.73_201912-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.73_201912-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.73_201912-01\",\r\n \"label\": \"Windows Azure Guest OS 4.73 (Release 201912-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.33_201411-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.33_201411-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.33_201411-01\",\r\n \"label\": \"Windows Azure Guest OS 2.33 (Release 201411-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.5_201703-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.5_201703-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.5_201703-01\",\r\n \"label\": \"Windows Azure Guest OS 5.5 (Release 201703-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.87_201906-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.87_201906-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.87_201906-01\",\r\n \"label\": \"Windows Azure Guest OS 2.87 (Release 201906-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.55_201711-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.55_201711-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.55_201711-01\",\r\n \"label\": \"Windows Azure Guest OS 3.55 (Release 201711-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-6.24_202010-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-6.24_202010-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-6.24_202010-02\",\r\n \"label\": \"Windows Azure Guest OS 6.24 (Release 202010-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"6\",\r\n \"familyLabel\": \"Windows Server 2019\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.11_201204-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.11_201204-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.11_201204-02\",\r\n \"label\": \"Windows Azure Guest OS 2.11 (Release 201204-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.34_201512-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.34_201512-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.34_201512-02\",\r\n \"label\": \"Windows Azure Guest OS 3.34 (Release 201512-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.29_201602-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.29_201602-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.29_201602-01\",\r\n \"label\": \"Windows Azure Guest OS 4.29 (Release 201602-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.27_201512-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.27_201512-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.27_201512-02\",\r\n \"label\": \"Windows Azure Guest OS 4.27 (Release 201512-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.4_201103-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.4_201103-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.4_201103-01\",\r\n \"label\": \"Windows Azure Guest OS 2.4 (Release 201103-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.73_201905-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.73_201905-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.73_201905-01\",\r\n \"label\": \"Windows Azure Guest OS 3.73 (Release 201905-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.48_202010-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.48_202010-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.48_202010-02\",\r\n \"label\": \"Windows Azure Guest OS 5.48 (Release 202010-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.15_201412-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.15_201412-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.15_201412-01\",\r\n \"label\": \"Windows Azure Guest OS 4.15 (Release 201412-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.64_201808-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.64_201808-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.64_201808-01\",\r\n \"label\": \"Windows Azure Guest OS 3.64 (Release 201808-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.17_201502-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.17_201502-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.17_201502-01\",\r\n \"label\": \"Windows Azure Guest OS 4.17 (Release 201502-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.99_202006-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.99_202006-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.99_202006-02\",\r\n \"label\": \"Windows Azure Guest OS 2.99 (Release 202006-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.43_202005-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.43_202005-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.43_202005-01\",\r\n \"label\": \"Windows Azure Guest OS 5.43 (Release 202005-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.19_201409-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.19_201409-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.19_201409-01\",\r\n \"label\": \"Windows Azure Guest OS 3.19 (Release 201409-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.10_201407-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.10_201407-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.10_201407-01\",\r\n \"label\": \"Windows Azure Guest OS 4.10 (Release 201407-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.54_201710-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.54_201710-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.54_201710-02\",\r\n \"label\": \"Windows Azure Guest OS 3.54 (Release 201710-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.25_201510-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.25_201510-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.25_201510-01\",\r\n \"label\": \"Windows Azure Guest OS 4.25 (Release 201510-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.59_201803-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.59_201803-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.59_201803-01\",\r\n \"label\": \"Windows Azure Guest OS 3.59 (Release 201803-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.17_201407-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.17_201407-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.17_201407-01\",\r\n \"label\": \"Windows Azure Guest OS 3.17 (Release 201407-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.71_201802-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.71_201802-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.71_201802-01\",\r\n \"label\": \"Windows Azure Guest OS 2.71 (Release 201802-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-6.29_202103-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-6.29_202103-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-6.29_202103-01\",\r\n \"label\": \"Windows Azure Guest OS 6.29 (Release 202103-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"6\",\r\n \"familyLabel\": \"Windows Server 2019\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.57_201801-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.57_201801-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.57_201801-01\",\r\n \"label\": \"Windows Azure Guest OS 3.57 (Release 201801-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.104_202011-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.104_202011-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.104_202011-01\",\r\n \"label\": \"Windows Azure Guest OS 2.104 (Release 202011-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.41_201507-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.41_201507-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.41_201507-01\",\r\n \"label\": \"Windows Azure Guest OS 2.41 (Release 201507-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.12_201710-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.12_201710-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.12_201710-02\",\r\n \"label\": \"Windows Azure Guest OS 5.12 (Release 201710-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.100_202007-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.100_202007-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.100_202007-01\",\r\n \"label\": \"Windows Azure Guest OS 2.100 (Release 202007-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.87_202102-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.87_202102-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.87_202102-01\",\r\n \"label\": \"Windows Azure Guest OS 4.87 (Release 202102-01)\",\r\n \"isDefault\": true,\r\n \"isActive\": true,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.18_201308-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.18_201308-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.18_201308-01\",\r\n \"label\": \"Windows Azure Guest OS 2.18 (Release 201308-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-6.23_202009-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-6.23_202009-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-6.23_202009-01\",\r\n \"label\": \"Windows Azure Guest OS 6.23 (Release 202009-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"6\",\r\n \"familyLabel\": \"Windows Server 2019\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.26_201511-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.26_201511-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.26_201511-01\",\r\n \"label\": \"Windows Azure Guest OS 4.26 (Release 201511-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.78_202005-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.78_202005-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.78_202005-01\",\r\n \"label\": \"Windows Azure Guest OS 4.78 (Release 202005-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.75_201907-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.75_201907-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.75_201907-01\",\r\n \"label\": \"Windows Azure Guest OS 3.75 (Release 201907-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.7_201404-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.7_201404-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.7_201404-01\",\r\n \"label\": \"Windows Azure Guest OS 4.7 (Release 201404-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.37_201503-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.37_201503-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.37_201503-01\",\r\n \"label\": \"Windows Azure Guest OS 2.37 (Release 201503-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.30_201508-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.30_201508-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.30_201508-02\",\r\n \"label\": \"Windows Azure Guest OS 3.30 (Release 201508-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.1_201310-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.1_201310-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.1_201310-01\",\r\n \"label\": \"Windows Azure Guest OS 4.1 (Release 201310-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.47_201703-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.47_201703-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.47_201703-01\",\r\n \"label\": \"Windows Azure Guest OS 3.47 (Release 201703-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.92_202012-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.92_202012-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.92_202012-01\",\r\n \"label\": \"Windows Azure Guest OS 3.92 (Release 202012-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": true,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.71_201910-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.71_201910-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.71_201910-01\",\r\n \"label\": \"Windows Azure Guest OS 4.71 (Release 201910-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.88_202008-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.88_202008-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.88_202008-02\",\r\n \"label\": \"Windows Azure Guest OS 3.88 (Release 202008-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.19_201504-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.19_201504-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.19_201504-01\",\r\n \"label\": \"Windows Azure Guest OS 4.19 (Release 201504-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.30_201904-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.30_201904-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.30_201904-01\",\r\n \"label\": \"Windows Azure Guest OS 5.30 (Release 201904-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-5.52_202102-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-5.52_202102-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-5.52_202102-01\",\r\n \"label\": \"Windows Azure Guest OS 5.52 (Release 202102-01)\",\r\n \"isDefault\": true,\r\n \"isActive\": true,\r\n \"family\": \"5\",\r\n \"familyLabel\": \"Windows Server 2016\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-6.13_201911-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-6.13_201911-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-6.13_201911-01\",\r\n \"label\": \"Windows Azure Guest OS 6.13 (Release 201911-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"6\",\r\n \"familyLabel\": \"Windows Server 2019\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-2.43_201509-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.43_201509-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.43_201509-01\",\r\n \"label\": \"Windows Azure Guest OS 2.43 (Release 201509-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.90_202010-02\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.90_202010-02\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.90_202010-02\",\r\n \"label\": \"Windows Azure Guest OS 3.90 (Release 202010-02)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-4.0_201309-03\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-4.0_201309-03\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-4.0_201309-03\",\r\n \"label\": \"Windows Azure Guest OS 4.0 (Release 201309-03)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"4\",\r\n \"familyLabel\": \"Windows Server 2012 R2\"\r\n }\r\n },\r\n {\r\n \"name\": \"WA-GUEST-OS-3.53_201709-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-3.53_201709-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-3.53_201709-01\",\r\n \"label\": \"Windows Azure Guest OS 3.53 (Release 201709-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": false,\r\n \"family\": \"3\",\r\n \"familyLabel\": \"Windows Server 2012\"\r\n }\r\n }\r\n ]\r\n}", + "isContentBase64": false + } + }, + "Get-AzCloudServiceOSVersion+[NoContext]+Get OS version+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOsVersions/WA-GUEST-OS-2.106_202101-01?api-version=2021-03-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOsVersions/WA-GUEST-OS-2.106_202101-01?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "26" ], + "x-ms-client-request-id": [ "9078c858-9789-442e-ae01-a7aa245070ee" ], + "CommandName": [ "Get-AzCloudServiceOSVersion" ], + "FullCommandName": [ "Get-AzCloudServiceOSVersion_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "714e9524-39ad-4c9f-b57a-45f212306ea3" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11933" ], + "x-ms-correlation-request-id": [ "b67c0c06-17c3-48f3-93ae-0f723d911c81" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T010715Z:b67c0c06-17c3-48f3-93ae-0f723d911c81" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 26 Mar 2021 01:07:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "556" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"name\": \"WA-GUEST-OS-2.106_202101-01\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/EastUS2EUAP/cloudServiceOSVersions/WA-GUEST-OS-2.106_202101-01\",\r\n \"type\": \"Microsoft.Compute/locations/cloudServiceOSVersions\",\r\n \"location\": \"EastUS2EUAP\",\r\n \"properties\": {\r\n \"version\": \"WA-GUEST-OS-2.106_202101-01\",\r\n \"label\": \"Windows Azure Guest OS 2.106 (Release 202101-01)\",\r\n \"isDefault\": false,\r\n \"isActive\": true,\r\n \"family\": \"2\",\r\n \"familyLabel\": \"Windows Server 2008 R2\"\r\n }\r\n}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/CloudService/test/Get-AzCloudServiceOSVersion.Tests.ps1 b/src/CloudService/test/Get-AzCloudServiceOSVersion.Tests.ps1 new file mode 100644 index 000000000000..9972aa8a1ed8 --- /dev/null +++ b/src/CloudService/test/Get-AzCloudServiceOSVersion.Tests.ps1 @@ -0,0 +1,33 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzCloudServiceOSVersion.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Get-AzCloudServiceOSVersion' { + It 'List OS versions in location' { + $osVersions = Get-AzCloudServiceOSVersion -Location $env.Location + $osVersions.Count | Should BeGreaterThan 0 + } + + It 'Get OS version' { + $osVersion = Get-AzCloudServiceOSVersion -Location $env.Location -OSVersionName $env.OSVersionName + $osVersion.Name | Should Not BeNullOrEmpty + $osVersion.Family | Should Not BeNullOrEmpty + $osVersion.FamilyLabel | Should Not BeNullOrEmpty + $osVersion.Version | Should Not BeNullOrEmpty + $osVersion.Label | Should Not BeNullOrEmpty + } + + # TODO: add this test once id is fixed on server side to match case sensitive req + It 'GetViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/CloudService/test/Get-AzCloudServiceRoleInstance.Recording.json b/src/CloudService/test/Get-AzCloudServiceRoleInstance.Recording.json index d95bff1c9492..70edf8963d01 100644 --- a/src/CloudService/test/Get-AzCloudServiceRoleInstance.Recording.json +++ b/src/CloudService/test/Get-AzCloudServiceRoleInstance.Recording.json @@ -1,12 +1,13 @@ { - "Get-AzCloudServiceRoleInstance+[NoContext]+List cloud service role instance+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances?api-version=2020-10-01-preview+1": { + "Get-AzCloudServiceRoleInstance+[NoContext]+List cloud service role instance+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances?api-version=2021-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "1" ], - "x-ms-client-request-id": [ "5fe7039f-702f-48fb-a0a0-00bd66f971db" ], + "x-ms-unique-id": [ "27" ], + "x-ms-client-request-id": [ "f0ae7089-49e7-4ebf-bada-f9501dc3fde3" ], "CommandName": [ "Get-AzCloudServiceRoleInstance" ], "FullCommandName": [ "Get-AzCloudServiceRoleInstance_List" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -22,30 +23,33 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "6488126e-6fa1-4b8d-9a2d-507c9bfa1df6" ], + "x-ms-request-id": [ "ce4d6319-0668-41ce-af79-dc8fb1dd61b6" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/GetCloudService3Min;390,Microsoft.Compute/GetCloudService30Min;2587" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], - "x-ms-correlation-request-id": [ "c1a16d68-29d0-475e-b2f6-bbeb121cd568" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T110116Z:c1a16d68-29d0-475e-b2f6-bbeb121cd568" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11932" ], + "x-ms-correlation-request-id": [ "3e8bbce8-42d4-4229-894b-7464a80ba703" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T010716Z:3e8bbce8-42d4-4229-894b-7464a80ba703" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:01:16 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:07:15 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2920" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"WebRole_IN_0\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WebRole_IN_1\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_0\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WorkerRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WorkerRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_1\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WorkerRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WorkerRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n }\r\n ]\r\n}" + "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"WebRole_IN_0\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WebRole_IN_1\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_0\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WorkerRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WorkerRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_1\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WorkerRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WorkerRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n }\r\n ]\r\n}", + "isContentBase64": false } }, - "Get-AzCloudServiceRoleInstance+[NoContext]+List cloud service role instance InstanceView via Expand+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances?api-version=2020-10-01-preview\u0026$expand=instanceView+1": { + "Get-AzCloudServiceRoleInstance+[NoContext]+List cloud service role instance InstanceView via Expand+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances?api-version=2021-03-01\u0026$expand=instanceView+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances?api-version=2020-10-01-preview\u0026$expand=instanceView", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances?api-version=2021-03-01\u0026$expand=instanceView", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "2" ], - "x-ms-client-request-id": [ "e9d28672-1e73-490b-b4be-72fcf53a606f" ], + "x-ms-unique-id": [ "28" ], + "x-ms-client-request-id": [ "728bc975-0cd5-44fb-b557-df2ec32593c6" ], "CommandName": [ "Get-AzCloudServiceRoleInstance" ], "FullCommandName": [ "Get-AzCloudServiceRoleInstance_List" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -61,30 +65,33 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "b5c308a0-442d-487a-abae-5853e02d1121" ], + "x-ms-request-id": [ "b101025d-2aea-4d25-b9e9-145775c3e84c" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/GetCloudService3Min;389,Microsoft.Compute/GetCloudService30Min;2586" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], - "x-ms-correlation-request-id": [ "6da07ea3-4198-4445-b3a4-570e93e0d544" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T110117Z:6da07ea3-4198-4445-b3a4-570e93e0d544" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11931" ], + "x-ms-correlation-request-id": [ "466521c4-67e4-4590-9a10-b0f829de745c" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T010717Z:466521c4-67e4-4590-9a10-b0f829de745c" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:01:17 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:07:17 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4568" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"WebRole_IN_0\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0/networkInterfaces/nic1\"}]},\r\n \"instanceView\": {\r\n \"platformUpdateDomain\": 0,\r\n \"platformFaultDomain\": 0,\r\n \"privateId\": \"d1179eb1-2655-4436-984b-8bf7a1d2cc25\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"RoleState/RoleStateStarted\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"RoleStateStarted\",\r\n \"message\": \"\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"WebRole_IN_1\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_1/networkInterfaces/nic1\"}]},\r\n \"instanceView\": {\r\n \"platformUpdateDomain\": 1,\r\n \"platformFaultDomain\": 1,\r\n \"privateId\": \"d1179eb1-2655-4436-984b-8bf7a1d2cc25\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"RoleState/RoleStateStarted\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"RoleStateStarted\",\r\n \"message\": \"\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_0\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WorkerRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WorkerRole_IN_0/networkInterfaces/nic1\"}]},\r\n \"instanceView\": {\r\n \"platformUpdateDomain\": 0,\r\n \"platformFaultDomain\": 0,\r\n \"privateId\": \"d1179eb1-2655-4436-984b-8bf7a1d2cc25\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"RoleState/RoleStateStarted\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"RoleStateStarted\",\r\n \"message\": \"\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_1\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WorkerRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WorkerRole_IN_1/networkInterfaces/nic1\"}]},\r\n \"instanceView\": {\r\n \"platformUpdateDomain\": 1,\r\n \"platformFaultDomain\": 1,\r\n \"privateId\": \"d1179eb1-2655-4436-984b-8bf7a1d2cc25\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"RoleState/RoleStateStarted\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"RoleStateStarted\",\r\n \"message\": \"\"\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n ]\r\n}" + "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"WebRole_IN_0\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0/networkInterfaces/nic1\"}]},\r\n \"instanceView\": {\r\n \"platformUpdateDomain\": 0,\r\n \"platformFaultDomain\": 0,\r\n \"privateId\": \"c1893e78-9ae2-4f24-9f46-c403e4ab2d1c\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"RoleState/RoleStateStarted\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"RoleStateStarted\",\r\n \"message\": \"\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"WebRole_IN_1\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_1/networkInterfaces/nic1\"}]},\r\n \"instanceView\": {\r\n \"platformUpdateDomain\": 1,\r\n \"platformFaultDomain\": 1,\r\n \"privateId\": \"c1893e78-9ae2-4f24-9f46-c403e4ab2d1c\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"RoleState/RoleStateStarted\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"RoleStateStarted\",\r\n \"message\": \"\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_0\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WorkerRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WorkerRole_IN_0/networkInterfaces/nic1\"}]},\r\n \"instanceView\": {\r\n \"platformUpdateDomain\": 0,\r\n \"platformFaultDomain\": 0,\r\n \"privateId\": \"c1893e78-9ae2-4f24-9f46-c403e4ab2d1c\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"RoleState/RoleStateStarted\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"RoleStateStarted\",\r\n \"message\": \"\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_1\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WorkerRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WorkerRole_IN_1/networkInterfaces/nic1\"}]},\r\n \"instanceView\": {\r\n \"platformUpdateDomain\": 1,\r\n \"platformFaultDomain\": 1,\r\n \"privateId\": \"c1893e78-9ae2-4f24-9f46-c403e4ab2d1c\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"RoleState/RoleStateStarted\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"RoleStateStarted\",\r\n \"message\": \"\"\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n ]\r\n}", + "isContentBase64": false } }, - "Get-AzCloudServiceRoleInstance+[NoContext]+Get cloud service role instance+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0?api-version=2020-10-01-preview+1": { + "Get-AzCloudServiceRoleInstance+[NoContext]+Get cloud service role instance+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0?api-version=2021-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "3" ], - "x-ms-client-request-id": [ "fc86ec83-66e9-414a-95a1-849d83c8fcae" ], + "x-ms-unique-id": [ "29" ], + "x-ms-client-request-id": [ "36d49341-ce64-4fd7-bd27-ac2aed7ca81a" ], "CommandName": [ "Get-AzCloudServiceRoleInstance" ], "FullCommandName": [ "Get-AzCloudServiceRoleInstance_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -100,30 +107,33 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "1e1dcd26-3459-407d-a044-c3a771562618" ], + "x-ms-request-id": [ "4a010cb8-6838-498f-99ad-14324bedec4a" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/GetCloudService3Min;388,Microsoft.Compute/GetCloudService30Min;2585" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], - "x-ms-correlation-request-id": [ "60c99d24-9eff-4612-8fdb-056bd81fee67" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T110118Z:60c99d24-9eff-4612-8fdb-056bd81fee67" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11930" ], + "x-ms-correlation-request-id": [ "153ce8f4-0981-438b-95a0-a6d2141a1c93" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T010717Z:153ce8f4-0981-438b-95a0-a6d2141a1c93" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:01:17 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:07:17 GMT" ] }, "ContentHeaders": { "Content-Length": [ "665" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"name\": \"WebRole_IN_0\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n}" + "Content": "{\r\n \"name\": \"WebRole_IN_0\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n}", + "isContentBase64": false } }, - "Get-AzCloudServiceRoleInstance+[NoContext]+Get cloud service role instance InstanceView via Expand+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0?api-version=2020-10-01-preview\u0026$expand=instanceView+1": { + "Get-AzCloudServiceRoleInstance+[NoContext]+Get cloud service role instance InstanceView via Expand+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0?api-version=2021-03-01\u0026$expand=instanceView+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0?api-version=2020-10-01-preview\u0026$expand=instanceView", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0?api-version=2021-03-01\u0026$expand=instanceView", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "4" ], - "x-ms-client-request-id": [ "5c5b2b33-1d09-4e96-bd2b-37556a821bc6" ], + "x-ms-unique-id": [ "30" ], + "x-ms-client-request-id": [ "05cb44c8-f46f-4e57-9e19-9db1eda01b37" ], "CommandName": [ "Get-AzCloudServiceRoleInstance" ], "FullCommandName": [ "Get-AzCloudServiceRoleInstance_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -139,30 +149,33 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "b21b0b5e-a5b6-4392-9016-d6f6c27075d9" ], + "x-ms-request-id": [ "8b2351bf-8823-4b2f-bbfd-dc94443a1f14" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/GetCloudService3Min;387,Microsoft.Compute/GetCloudService30Min;2584" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], - "x-ms-correlation-request-id": [ "af4ff365-5168-4fae-a849-7ca2be994abe" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T110118Z:af4ff365-5168-4fae-a849-7ca2be994abe" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11929" ], + "x-ms-correlation-request-id": [ "4e36a7bc-e01b-46b4-962a-2502bed4d7d8" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T010718Z:4e36a7bc-e01b-46b4-962a-2502bed4d7d8" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:01:18 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:07:18 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1025" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"name\": \"WebRole_IN_0\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0/networkInterfaces/nic1\"}]},\r\n \"instanceView\": {\r\n \"platformUpdateDomain\": 0,\r\n \"platformFaultDomain\": 0,\r\n \"privateId\": \"d1179eb1-2655-4436-984b-8bf7a1d2cc25\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"RoleState/RoleStateStarted\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"RoleStateStarted\",\r\n \"message\": \"\"\r\n }\r\n ]\r\n }\r\n }\r\n}" + "Content": "{\r\n \"name\": \"WebRole_IN_0\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0/networkInterfaces/nic1\"}]},\r\n \"instanceView\": {\r\n \"platformUpdateDomain\": 0,\r\n \"platformFaultDomain\": 0,\r\n \"privateId\": \"c1893e78-9ae2-4f24-9f46-c403e4ab2d1c\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"RoleState/RoleStateStarted\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"RoleStateStarted\",\r\n \"message\": \"\"\r\n }\r\n ]\r\n }\r\n }\r\n}", + "isContentBase64": false } }, - "Get-AzCloudServiceRoleInstance+[NoContext]+Get cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances?api-version=2020-10-01-preview+1": { + "Get-AzCloudServiceRoleInstance+[NoContext]+Get cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances?api-version=2021-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "5" ], - "x-ms-client-request-id": [ "bc1e6a3a-73ac-4929-b6f9-6b3c67dbb034" ], + "x-ms-unique-id": [ "31" ], + "x-ms-client-request-id": [ "761030df-909a-4eff-9cbd-796e7476ffb0" ], "CommandName": [ "Get-AzCloudServiceRoleInstance" ], "FullCommandName": [ "Get-AzCloudServiceRoleInstance_List" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -178,30 +191,33 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "0e3f3078-35cd-4b12-9bf0-201a0b998907" ], + "x-ms-request-id": [ "626613da-0e41-407e-ad0f-054a99ac480d" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/GetCloudService3Min;386,Microsoft.Compute/GetCloudService30Min;2583" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], - "x-ms-correlation-request-id": [ "ff4dd5d4-5b6a-4393-b411-447400a5947b" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T110118Z:ff4dd5d4-5b6a-4393-b411-447400a5947b" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11928" ], + "x-ms-correlation-request-id": [ "9d9cda66-df4a-41a7-b6f2-aea152532e21" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T010718Z:9d9cda66-df4a-41a7-b6f2-aea152532e21" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:01:18 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:07:18 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2920" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"WebRole_IN_0\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WebRole_IN_1\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_0\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WorkerRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WorkerRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_1\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WorkerRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WorkerRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n }\r\n ]\r\n}" + "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"WebRole_IN_0\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WebRole_IN_1\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_0\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WorkerRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WorkerRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_1\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WorkerRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WorkerRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n }\r\n ]\r\n}", + "isContentBase64": false } }, - "Get-AzCloudServiceRoleInstance+[NoContext]+Get cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0?api-version=2020-10-01-preview+2": { + "Get-AzCloudServiceRoleInstance+[NoContext]+Get cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0?api-version=2021-03-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "6" ], - "x-ms-client-request-id": [ "9c644eca-8128-4994-b6c5-524fa5a78f53" ], + "x-ms-unique-id": [ "32" ], + "x-ms-client-request-id": [ "a3505e17-9259-46f9-8990-b36c79102825" ], "CommandName": [ "Get-AzCloudServiceRoleInstance" ], "FullCommandName": [ "Get-AzCloudServiceRoleInstance_GetViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -217,30 +233,33 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "a65ef471-d739-4ec1-8382-409942500158" ], + "x-ms-request-id": [ "00830eef-23f3-4bac-8ba4-ce7c7100b450" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/GetCloudService3Min;385,Microsoft.Compute/GetCloudService30Min;2582" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], - "x-ms-correlation-request-id": [ "1205924f-68a7-400a-b318-9923baa43b16" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T110119Z:1205924f-68a7-400a-b318-9923baa43b16" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11927" ], + "x-ms-correlation-request-id": [ "b9264b2b-4402-45ff-9cf9-f9014653cdde" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T010719Z:b9264b2b-4402-45ff-9cf9-f9014653cdde" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:01:18 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:07:18 GMT" ] }, "ContentHeaders": { "Content-Length": [ "665" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"name\": \"WebRole_IN_0\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n}" + "Content": "{\r\n \"name\": \"WebRole_IN_0\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n}", + "isContentBase64": false } }, - "Get-AzCloudServiceRoleInstance+[NoContext]+Get cloud service role instance InstanceView via identity and Expand+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances?api-version=2020-10-01-preview+1": { + "Get-AzCloudServiceRoleInstance+[NoContext]+Get cloud service role instance InstanceView via identity and Expand+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances?api-version=2021-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "7" ], - "x-ms-client-request-id": [ "d512bc55-89ee-4b4e-b059-b5b400eec2fa" ], + "x-ms-unique-id": [ "33" ], + "x-ms-client-request-id": [ "8ea9bf6b-872e-4dd4-b351-cff4f8fff12c" ], "CommandName": [ "Get-AzCloudServiceRoleInstance" ], "FullCommandName": [ "Get-AzCloudServiceRoleInstance_List" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -256,30 +275,33 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "04ad8be9-e533-4790-86a7-63200b7cbcc0" ], + "x-ms-request-id": [ "b63311a8-1bd3-4511-9e19-e8d36288c469" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/GetCloudService3Min;384,Microsoft.Compute/GetCloudService30Min;2581" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], - "x-ms-correlation-request-id": [ "65df3dca-538a-418d-a63d-ecfedddde6c0" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T110119Z:65df3dca-538a-418d-a63d-ecfedddde6c0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11926" ], + "x-ms-correlation-request-id": [ "2abfe9ab-d6d8-4ea3-99a3-cfd5867f03dd" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T010719Z:2abfe9ab-d6d8-4ea3-99a3-cfd5867f03dd" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:01:19 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:07:19 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2920" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"WebRole_IN_0\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WebRole_IN_1\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_0\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WorkerRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WorkerRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_1\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WorkerRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WorkerRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n }\r\n ]\r\n}" + "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"WebRole_IN_0\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WebRole_IN_1\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_0\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WorkerRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WorkerRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_1\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WorkerRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WorkerRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n }\r\n ]\r\n}", + "isContentBase64": false } }, - "Get-AzCloudServiceRoleInstance+[NoContext]+Get cloud service role instance InstanceView via identity and Expand+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0?api-version=2020-10-01-preview\u0026$expand=instanceView+2": { + "Get-AzCloudServiceRoleInstance+[NoContext]+Get cloud service role instance InstanceView via identity and Expand+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0?api-version=2021-03-01\u0026$expand=instanceView+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0?api-version=2020-10-01-preview\u0026$expand=instanceView", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0?api-version=2021-03-01\u0026$expand=instanceView", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "8" ], - "x-ms-client-request-id": [ "8195e900-ec86-47e9-957a-77528eb95c27" ], + "x-ms-unique-id": [ "34" ], + "x-ms-client-request-id": [ "323c3246-fc54-45c0-a857-afd6cc4780a4" ], "CommandName": [ "Get-AzCloudServiceRoleInstance" ], "FullCommandName": [ "Get-AzCloudServiceRoleInstance_GetViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -295,20 +317,22 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "cb148776-3858-4ca7-bd8d-e3a6070be2d8" ], + "x-ms-request-id": [ "93bb855c-8a15-4f45-b971-5753c8f35042" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/GetCloudService3Min;383,Microsoft.Compute/GetCloudService30Min;2580" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], - "x-ms-correlation-request-id": [ "facecf52-1e80-4d0f-a531-5038ce2924f1" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T110119Z:facecf52-1e80-4d0f-a531-5038ce2924f1" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11925" ], + "x-ms-correlation-request-id": [ "ff82e92a-cdbe-4281-ac42-88a032a9e61c" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T010720Z:ff82e92a-cdbe-4281-ac42-88a032a9e61c" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:01:19 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:07:19 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1025" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"name\": \"WebRole_IN_0\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0/networkInterfaces/nic1\"}]},\r\n \"instanceView\": {\r\n \"platformUpdateDomain\": 0,\r\n \"platformFaultDomain\": 0,\r\n \"privateId\": \"d1179eb1-2655-4436-984b-8bf7a1d2cc25\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"RoleState/RoleStateStarted\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"RoleStateStarted\",\r\n \"message\": \"\"\r\n }\r\n ]\r\n }\r\n }\r\n}" + "Content": "{\r\n \"name\": \"WebRole_IN_0\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0/networkInterfaces/nic1\"}]},\r\n \"instanceView\": {\r\n \"platformUpdateDomain\": 0,\r\n \"platformFaultDomain\": 0,\r\n \"privateId\": \"c1893e78-9ae2-4f24-9f46-c403e4ab2d1c\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"RoleState/RoleStateStarted\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"RoleStateStarted\",\r\n \"message\": \"\"\r\n }\r\n ]\r\n }\r\n }\r\n}", + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/CloudService/test/Get-AzCloudServiceRoleInstanceRemoteDesktopFile.Recording.json b/src/CloudService/test/Get-AzCloudServiceRoleInstanceRemoteDesktopFile.Recording.json index ae481e1f253d..7e52f21f2b84 100644 --- a/src/CloudService/test/Get-AzCloudServiceRoleInstanceRemoteDesktopFile.Recording.json +++ b/src/CloudService/test/Get-AzCloudServiceRoleInstanceRemoteDesktopFile.Recording.json @@ -1,12 +1,13 @@ { - "Get-AzCloudServiceRoleInstanceRemoteDesktopFile+[NoContext]+Get remote desktop file+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0/remoteDesktopFile?api-version=2020-10-01-preview+1": { + "Get-AzCloudServiceRoleInstanceRemoteDesktopFile+[NoContext]+Get remote desktop file+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0/remoteDesktopFile?api-version=2021-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0/remoteDesktopFile?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0/remoteDesktopFile?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "1" ], - "x-ms-client-request-id": [ "551c6840-1764-430d-ab3f-c3ba2e38edb1" ], + "x-ms-unique-id": [ "35" ], + "x-ms-client-request-id": [ "209de16d-e43a-4e46-b8ac-34714c5b1c00" ], "CommandName": [ "Get-AzCloudServiceRoleInstanceRemoteDesktopFile" ], "FullCommandName": [ "Get-AzCloudServiceRoleInstanceRemoteDesktopFile_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -18,26 +19,27 @@ }, "Response": { "StatusCode": 200, - "isContentBase64": true, "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "bad5061e-63f4-4331-a0f9-1f39bb47a42a" ], + "x-ms-request-id": [ "39f0061b-e750-446c-96bb-6352459eb995" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/GetCloudService3Min;382,Microsoft.Compute/GetCloudService30Min;2579" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], - "x-ms-correlation-request-id": [ "d7006b83-4799-47e3-a7b9-0435fec90f70" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210127T100026Z:d7006b83-4799-47e3-a7b9-0435fec90f70" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11924" ], + "x-ms-correlation-request-id": [ "ddbb5074-cd3a-44b6-a214-813dd330ddad" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T010720Z:ddbb5074-cd3a-44b6-a214-813dd330ddad" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Wed, 27 Jan 2021 10:00:25 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:07:20 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "104" ], + "Content-Length": [ "109" ], "Content-Type": [ "application/x-rdp" ], "Expires": [ "-1" ], - "Content-Disposition": [ "attachment; filename=cscmdlettest1p3wg7ft-WebRole_IN_0.rdp" ] + "Content-Disposition": [ "attachment; filename=cscmdlettestoe6r0n2k-WebRole_IN_0.rdp" ] }, - "Content": "ZnVsbCBhZGRyZXNzOnM6NTIuMjI1LjE4MS40DQp1c2VybmFtZTpzOnlvdXJpDQpMb2FkQmFsYW5jZUluZm86czpDb29raWU6IG1zdHNoYXNoPVdlYlJvbGUjV2ViUm9sZV9JTl8wDQo=" + "Content": "full address:s:52.225.152.33\r\nusername:s:userazure\r\nLoadBalanceInfo:s:Cookie: mstshash=WebRole#WebRole_IN_0\r\n", + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/CloudService/test/Get-AzCloudServiceRoleInstanceView.Recording.json b/src/CloudService/test/Get-AzCloudServiceRoleInstanceView.Recording.json index 2742658f9606..1fc453366cbd 100644 --- a/src/CloudService/test/Get-AzCloudServiceRoleInstanceView.Recording.json +++ b/src/CloudService/test/Get-AzCloudServiceRoleInstanceView.Recording.json @@ -1,12 +1,13 @@ { - "Get-AzCloudServiceRoleInstanceView+[NoContext]+Get cloud service role instance InstanceView+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0/instanceView?api-version=2020-10-01-preview+1": { + "Get-AzCloudServiceRoleInstanceView+[NoContext]+Get cloud service role instance InstanceView+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0/instanceView?api-version=2021-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0/instanceView?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0/instanceView?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "1" ], - "x-ms-client-request-id": [ "2ea793ce-8958-473d-8226-589462b9d2ea" ], + "x-ms-unique-id": [ "36" ], + "x-ms-client-request-id": [ "9513ef52-b601-489f-8366-4517f3d67218" ], "CommandName": [ "Get-AzCloudServiceRoleInstanceView" ], "FullCommandName": [ "Get-AzCloudServiceRoleInstanceView_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -22,20 +23,22 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "fe07cc54-f359-4605-a770-f5b7e5231c4f" ], + "x-ms-request-id": [ "1c74ae4c-c48a-4dd6-892c-a91908bf45af" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/GetCloudService3Min;381,Microsoft.Compute/GetCloudService30Min;2578" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], - "x-ms-correlation-request-id": [ "f0dc2505-ae61-471a-8d5b-605fa3aee490" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T110137Z:f0dc2505-ae61-471a-8d5b-605fa3aee490" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11923" ], + "x-ms-correlation-request-id": [ "b9317268-26cb-4c58-9a5e-1b862a019d34" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T010721Z:b9317268-26cb-4c58-9a5e-1b862a019d34" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:01:37 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:07:20 GMT" ] }, "ContentHeaders": { "Content-Length": [ "289" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"platformUpdateDomain\": 0,\r\n \"platformFaultDomain\": 0,\r\n \"privateId\": \"d1179eb1-2655-4436-984b-8bf7a1d2cc25\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"RoleState/RoleStateStarted\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"RoleStateStarted\",\r\n \"message\": \"\"\r\n }\r\n ]\r\n}" + "Content": "{\r\n \"platformUpdateDomain\": 0,\r\n \"platformFaultDomain\": 0,\r\n \"privateId\": \"c1893e78-9ae2-4f24-9f46-c403e4ab2d1c\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"RoleState/RoleStateStarted\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"RoleStateStarted\",\r\n \"message\": \"\"\r\n }\r\n ]\r\n}", + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/CloudService/test/Invoke-AzCloudServiceRebuild.Recording.json b/src/CloudService/test/Invoke-AzCloudServiceRebuild.Recording.json index 402bd42e3cf2..fc22aaccb030 100644 --- a/src/CloudService/test/Invoke-AzCloudServiceRebuild.Recording.json +++ b/src/CloudService/test/Invoke-AzCloudServiceRebuild.Recording.json @@ -1,9 +1,10 @@ { - "Invoke-AzCloudServiceRebuild+[NoContext]+Rebuild cloud service+$POST+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/rebuild?api-version=2020-10-01-preview+1": { + "Invoke-AzCloudServiceRebuild+[NoContext]+Rebuild cloud service+$POST+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/rebuild?api-version=2021-03-01+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/rebuild?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/rebuild?api-version=2021-03-01", "Content": "{\r\n \"roleInstances\": [ \"WebRole_IN_0\" ]\r\n}", + "isContentBase64": false, "Headers": { }, "ContentHeaders": { @@ -16,33 +17,36 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/ed026d54-76dd-4199-97fa-09ed2b2a130d?monitor=true\u0026api-version=2020-10-01-preview" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/ed026d54-76dd-4199-97fa-09ed2b2a130d?api-version=2020-10-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/b7cf14f2-9b92-40a3-8b1c-3577a949ae92?monitor=true\u0026api-version=2021-03-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/b7cf14f2-9b92-40a3-8b1c-3577a949ae92?api-version=2021-03-01" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "ed026d54-76dd-4199-97fa-09ed2b2a130d" ], + "x-ms-request-id": [ "b7cf14f2-9b92-40a3-8b1c-3577a949ae92" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/CreateUpdateDeleteCloudServiceOperations30Min;298" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], - "x-ms-correlation-request-id": [ "a653677d-37d4-4525-b631-987ad3b9cf8f" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T110244Z:a653677d-37d4-4525-b631-987ad3b9cf8f" ], + "x-ms-correlation-request-id": [ "110e6eda-89c8-4230-8b0b-f66c7f366392" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T010723Z:110e6eda-89c8-4230-8b0b-f66c7f366392" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:02:44 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:07:22 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], "Content-Length": [ "0" ] }, - "Content": null + "Content": null, + "isContentBase64": false } }, - "Invoke-AzCloudServiceRebuild+[NoContext]+Rebuild cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/ed026d54-76dd-4199-97fa-09ed2b2a130d?api-version=2020-10-01-preview+2": { + "Invoke-AzCloudServiceRebuild+[NoContext]+Rebuild cloud service+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/b7cf14f2-9b92-40a3-8b1c-3577a949ae92?api-version=2021-03-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/ed026d54-76dd-4199-97fa-09ed2b2a130d?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/b7cf14f2-9b92-40a3-8b1c-3577a949ae92?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "2" ], - "x-ms-client-request-id": [ "29be581d-d35c-43fa-a831-1536df88ef98" ], + "x-ms-unique-id": [ "38" ], + "x-ms-client-request-id": [ "58d69e9f-300b-4236-a94b-36a7a73c8497" ], "CommandName": [ "Invoke-AzCloudServiceRebuild" ], "FullCommandName": [ "Invoke-AzCloudServiceRebuild_RebuildExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -57,32 +61,34 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "e64e94ea-3f57-4f10-aa53-0da20d312434" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "a8d5cbd7-aa0f-4f11-9144-6787ba5cf8cf" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], - "x-ms-correlation-request-id": [ "096084b8-33c6-48ee-9f7d-f68a883c9d93" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T110315Z:096084b8-33c6-48ee-9f7d-f68a883c9d93" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11922" ], + "x-ms-correlation-request-id": [ "d7953913-30c1-4d28-a1c4-5678e0eb4f95" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T010754Z:d7953913-30c1-4d28-a1c4-5678e0eb4f95" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:03:14 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:07:53 GMT" ] }, "ContentHeaders": { "Content-Length": [ "184" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:02:44.0476748+00:00\",\r\n \"endTime\": \"2021-01-26T11:02:59.4590857+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"ed026d54-76dd-4199-97fa-09ed2b2a130d\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:07:22.9314818+00:00\",\r\n \"endTime\": \"2021-03-26T01:07:38.3682767+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"b7cf14f2-9b92-40a3-8b1c-3577a949ae92\"\r\n}", + "isContentBase64": false } }, - "Invoke-AzCloudServiceRebuild+[NoContext]+Rebuild cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/ed026d54-76dd-4199-97fa-09ed2b2a130d?monitor=true\u0026api-version=2020-10-01-preview+3": { + "Invoke-AzCloudServiceRebuild+[NoContext]+Rebuild cloud service+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/b7cf14f2-9b92-40a3-8b1c-3577a949ae92?monitor=true\u0026api-version=2021-03-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/ed026d54-76dd-4199-97fa-09ed2b2a130d?monitor=true\u0026api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/b7cf14f2-9b92-40a3-8b1c-3577a949ae92?monitor=true\u0026api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "3" ], - "x-ms-client-request-id": [ "29be581d-d35c-43fa-a831-1536df88ef98" ], + "x-ms-unique-id": [ "39" ], + "x-ms-client-request-id": [ "58d69e9f-300b-4236-a94b-36a7a73c8497" ], "CommandName": [ "Invoke-AzCloudServiceRebuild" ], "FullCommandName": [ "Invoke-AzCloudServiceRebuild_RebuildExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -97,30 +103,32 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "b0b5a0da-7050-4fb4-885d-9bc0c139c024" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "38dd5098-707f-49d1-9b32-b89951eea987" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], - "x-ms-correlation-request-id": [ "a04280f9-9f39-492f-9ed6-111f4d291b51" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T110315Z:a04280f9-9f39-492f-9ed6-111f4d291b51" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11921" ], + "x-ms-correlation-request-id": [ "36efe26d-8d05-414d-8b67-03420cc1d0ea" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T010754Z:36efe26d-8d05-414d-8b67-03420cc1d0ea" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:03:14 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:07:54 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], "Content-Length": [ "0" ] }, - "Content": null + "Content": null, + "isContentBase64": false } }, - "Invoke-AzCloudServiceRebuild+[NoContext]+Rebuild cloud service via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft?api-version=2020-10-01-preview+1": { + "Invoke-AzCloudServiceRebuild+[NoContext]+Rebuild cloud service via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k?api-version=2021-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "4" ], - "x-ms-client-request-id": [ "45159b80-6677-4b6b-885b-17e649b0bbfc" ], + "x-ms-unique-id": [ "40" ], + "x-ms-client-request-id": [ "9ca87e7e-dd5a-436e-99bf-8928268cbf2b" ], "CommandName": [ "Get-AzCloudService" ], "FullCommandName": [ "Get-AzCloudService_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -136,27 +144,30 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "0757796d-6d3b-4383-85cb-d5ef1cffed09" ], + "x-ms-request-id": [ "6e3dfc5f-0725-47d5-b6a1-1ced0e7072b2" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/GetCloudService3Min;380,Microsoft.Compute/GetCloudService30Min;2577" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], - "x-ms-correlation-request-id": [ "318fbd23-4f94-49cf-9b33-c8d5564c81db" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T110315Z:318fbd23-4f94-49cf-9b33-c8d5564c81db" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11920" ], + "x-ms-correlation-request-id": [ "a35b72c8-2718-405a-99ad-c3da4aff64a0" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T010755Z:a35b72c8-2718-405a-99ad-c3da4aff64a0" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:03:15 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:07:55 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "3522" ], + "Content-Length": [ "3611" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"name\": \"cscmdlettest1p3wg7ft\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Auto\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"name\": \"GenevaExtension\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Succeeded\",\r\n \"rolesAppliedTo\": [\r\n \"*\"\r\n ],\r\n \"publisher\": \"Microsoft.Azure.Geneva\",\r\n \"type\": \"GenevaMonitoringPaaS\",\r\n \"typeHandlerVersion\": \"2.14.0.2\",\r\n \"settings\": \"\"\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"00541f30-ad0f-4939-86c9-178056f1b29a\"\r\n }\r\n}" + "Content": "{\r\n \"name\": \"cscmdlettestoe6r0n2k\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Manual\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Network/publicIPAddresses/cscmdlettestip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"name\": \"RDPExtension\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Succeeded\",\r\n \"rolesAppliedTo\": [\r\n \"*\"\r\n ],\r\n \"publisher\": \"Microsoft.Windows.Azure.Extensions\",\r\n \"type\": \"RDP\",\r\n \"typeHandlerVersion\": \"1.2.1\",\r\n \"settings\": \"\u003cPublicConfig\u003e\u003cUserName\u003euserazure\u003c/UserName\u003e\u003cExpiration\u003e03/25/2022 18:01:31\u003c/Expiration\u003e\u003c/PublicConfig\u003e\"\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"25056192-64fb-42b6-b81f-37e6b25c1515\"\r\n }\r\n}", + "isContentBase64": false } }, - "Invoke-AzCloudServiceRebuild+[NoContext]+Rebuild cloud service via identity+$POST+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/rebuild?api-version=2020-10-01-preview+2": { + "Invoke-AzCloudServiceRebuild+[NoContext]+Rebuild cloud service via identity+$POST+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/rebuild?api-version=2021-03-01+2": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/rebuild?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/rebuild?api-version=2021-03-01", "Content": "{\r\n \"roleInstances\": [ \"WebRole_IN_0\" ]\r\n}", + "isContentBase64": false, "Headers": { }, "ContentHeaders": { @@ -169,33 +180,36 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/b321618f-45e2-40a8-becc-b1a3583bc59e?monitor=true\u0026api-version=2020-10-01-preview" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/b321618f-45e2-40a8-becc-b1a3583bc59e?api-version=2020-10-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/163ab2e8-3701-461f-83da-5759b418fc3e?monitor=true\u0026api-version=2021-03-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/163ab2e8-3701-461f-83da-5759b418fc3e?api-version=2021-03-01" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "b321618f-45e2-40a8-becc-b1a3583bc59e" ], + "x-ms-request-id": [ "163ab2e8-3701-461f-83da-5759b418fc3e" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/CreateUpdateDeleteCloudServiceOperations30Min;297" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], - "x-ms-correlation-request-id": [ "21ca91d0-82d3-455f-b35b-8fc4adaba5de" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T110316Z:21ca91d0-82d3-455f-b35b-8fc4adaba5de" ], + "x-ms-correlation-request-id": [ "fd7863a3-996c-488c-8f24-76b6ba16fe38" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T010757Z:fd7863a3-996c-488c-8f24-76b6ba16fe38" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:03:15 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:07:56 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], "Content-Length": [ "0" ] }, - "Content": null + "Content": null, + "isContentBase64": false } }, - "Invoke-AzCloudServiceRebuild+[NoContext]+Rebuild cloud service via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/b321618f-45e2-40a8-becc-b1a3583bc59e?api-version=2020-10-01-preview+3": { + "Invoke-AzCloudServiceRebuild+[NoContext]+Rebuild cloud service via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/163ab2e8-3701-461f-83da-5759b418fc3e?api-version=2021-03-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/b321618f-45e2-40a8-becc-b1a3583bc59e?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/163ab2e8-3701-461f-83da-5759b418fc3e?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "6" ], - "x-ms-client-request-id": [ "56bdd985-4145-4acd-b871-1d61f53c1d06" ], + "x-ms-unique-id": [ "42" ], + "x-ms-client-request-id": [ "cadb4e8b-3de2-479f-b75e-a3be62e1561b" ], "CommandName": [ "Invoke-AzCloudServiceRebuild" ], "FullCommandName": [ "Invoke-AzCloudServiceRebuild_RebuildViaIdentityExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -210,32 +224,34 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "7c74936e-4d47-49a2-a58a-c801a897a1ad" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "d8bb4404-8cac-4f06-b5af-0570ff85c40a" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], - "x-ms-correlation-request-id": [ "39124b86-173a-4df9-80c1-91227565469c" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T110346Z:39124b86-173a-4df9-80c1-91227565469c" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11919" ], + "x-ms-correlation-request-id": [ "3a895ab4-69c2-472c-9374-f184e016d1f7" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T010828Z:3a895ab4-69c2-472c-9374-f184e016d1f7" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:03:45 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:08:27 GMT" ] }, "ContentHeaders": { "Content-Length": [ "184" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:03:16.1624416+00:00\",\r\n \"endTime\": \"2021-01-26T11:03:31.4644833+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"b321618f-45e2-40a8-becc-b1a3583bc59e\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:07:56.8257541+00:00\",\r\n \"endTime\": \"2021-03-26T01:08:12.1250278+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"163ab2e8-3701-461f-83da-5759b418fc3e\"\r\n}", + "isContentBase64": false } }, - "Invoke-AzCloudServiceRebuild+[NoContext]+Rebuild cloud service via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/b321618f-45e2-40a8-becc-b1a3583bc59e?monitor=true\u0026api-version=2020-10-01-preview+4": { + "Invoke-AzCloudServiceRebuild+[NoContext]+Rebuild cloud service via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/163ab2e8-3701-461f-83da-5759b418fc3e?monitor=true\u0026api-version=2021-03-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/b321618f-45e2-40a8-becc-b1a3583bc59e?monitor=true\u0026api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/163ab2e8-3701-461f-83da-5759b418fc3e?monitor=true\u0026api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "7" ], - "x-ms-client-request-id": [ "56bdd985-4145-4acd-b871-1d61f53c1d06" ], + "x-ms-unique-id": [ "43" ], + "x-ms-client-request-id": [ "cadb4e8b-3de2-479f-b75e-a3be62e1561b" ], "CommandName": [ "Invoke-AzCloudServiceRebuild" ], "FullCommandName": [ "Invoke-AzCloudServiceRebuild_RebuildViaIdentityExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -250,20 +266,21 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "00031c9c-c75c-47ec-a501-e482b96b425e" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "3c1eaf85-4b40-4b48-894c-a2e19ed81a5b" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], - "x-ms-correlation-request-id": [ "8113c144-e0f5-48fd-bc82-834a63ef5053" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T110346Z:8113c144-e0f5-48fd-bc82-834a63ef5053" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11918" ], + "x-ms-correlation-request-id": [ "57a555c9-857f-415c-8ffa-bf74424cefe8" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T010828Z:57a555c9-857f-415c-8ffa-bf74424cefe8" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:03:46 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:08:28 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], "Content-Length": [ "0" ] }, - "Content": null + "Content": null, + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/CloudService/test/Invoke-AzCloudServiceReimage.Recording.json b/src/CloudService/test/Invoke-AzCloudServiceReimage.Recording.json index 9388d4a428bb..06d2aef6839e 100644 --- a/src/CloudService/test/Invoke-AzCloudServiceReimage.Recording.json +++ b/src/CloudService/test/Invoke-AzCloudServiceReimage.Recording.json @@ -1,9 +1,10 @@ { - "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service+$POST+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/reimage?api-version=2020-10-01-preview+1": { + "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service+$POST+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/reimage?api-version=2021-03-01+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/reimage?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/reimage?api-version=2021-03-01", "Content": "{\r\n \"roleInstances\": [ \"WebRole_IN_0\" ]\r\n}", + "isContentBase64": false, "Headers": { }, "ContentHeaders": { @@ -16,73 +17,36 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/853a9e51-b2f4-4331-b43a-3767b2ca5b37?monitor=true\u0026api-version=2020-10-01-preview" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/853a9e51-b2f4-4331-b43a-3767b2ca5b37?api-version=2020-10-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/112144dc-de4b-4d74-a622-70eda6d4dd5c?monitor=true\u0026api-version=2021-03-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/112144dc-de4b-4d74-a622-70eda6d4dd5c?api-version=2021-03-01" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "853a9e51-b2f4-4331-b43a-3767b2ca5b37" ], + "x-ms-request-id": [ "112144dc-de4b-4d74-a622-70eda6d4dd5c" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/CreateUpdateDeleteCloudServiceOperations30Min;296" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], - "x-ms-correlation-request-id": [ "634d90f2-b666-4137-9f1f-79e3790a8024" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T110421Z:634d90f2-b666-4137-9f1f-79e3790a8024" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], + "x-ms-correlation-request-id": [ "ecb6d661-e3ea-4896-85e2-07e2570e636e" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T010830Z:ecb6d661-e3ea-4896-85e2-07e2570e636e" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:04:20 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:08:29 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], "Content-Length": [ "0" ] }, - "Content": null - } - }, - "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/853a9e51-b2f4-4331-b43a-3767b2ca5b37?api-version=2020-10-01-preview+2": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/853a9e51-b2f4-4331-b43a-3767b2ca5b37?api-version=2020-10-01-preview", "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "2" ], - "x-ms-client-request-id": [ "18fcbc81-95e8-41e8-99fa-3eef64006882" ], - "CommandName": [ "Invoke-AzCloudServiceReimage" ], - "FullCommandName": [ "Invoke-AzCloudServiceReimage_ReimageExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "510b8013-de06-4f73-a9e1-bf957a0c83db" ], - "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], - "x-ms-correlation-request-id": [ "e02c57ed-55c8-4634-b5eb-ae35b0da6eb0" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T110452Z:e02c57ed-55c8-4634-b5eb-ae35b0da6eb0" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:04:51 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "134" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:04:21.0443098+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"853a9e51-b2f4-4331-b43a-3767b2ca5b37\"\r\n}" + "isContentBase64": false } }, - "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/853a9e51-b2f4-4331-b43a-3767b2ca5b37?api-version=2020-10-01-preview+3": { + "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/112144dc-de4b-4d74-a622-70eda6d4dd5c?api-version=2021-03-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/853a9e51-b2f4-4331-b43a-3767b2ca5b37?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/112144dc-de4b-4d74-a622-70eda6d4dd5c?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "3" ], - "x-ms-client-request-id": [ "18fcbc81-95e8-41e8-99fa-3eef64006882" ], + "x-ms-unique-id": [ "45" ], + "x-ms-client-request-id": [ "3e2ae830-244a-4378-a384-85d539099205" ], "CommandName": [ "Invoke-AzCloudServiceReimage" ], "FullCommandName": [ "Invoke-AzCloudServiceReimage_ReimageExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -97,32 +61,34 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "7513f6bf-fcd9-4372-862f-811a499b2bdc" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "05cbde7d-9de3-4a79-b1be-f2a626dc7e48" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], - "x-ms-correlation-request-id": [ "08c1aa25-e9b7-4118-bd36-12419d7e2611" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T110522Z:08c1aa25-e9b7-4118-bd36-12419d7e2611" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11917" ], + "x-ms-correlation-request-id": [ "4e478e14-5bee-4c98-95bd-421c864ae75e" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T010900Z:4e478e14-5bee-4c98-95bd-421c864ae75e" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:05:22 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:09:00 GMT" ] }, "ContentHeaders": { "Content-Length": [ "134" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:04:21.0443098+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"853a9e51-b2f4-4331-b43a-3767b2ca5b37\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:08:29.8754735+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"112144dc-de4b-4d74-a622-70eda6d4dd5c\"\r\n}", + "isContentBase64": false } }, - "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/853a9e51-b2f4-4331-b43a-3767b2ca5b37?api-version=2020-10-01-preview+4": { + "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/112144dc-de4b-4d74-a622-70eda6d4dd5c?api-version=2021-03-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/853a9e51-b2f4-4331-b43a-3767b2ca5b37?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/112144dc-de4b-4d74-a622-70eda6d4dd5c?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "4" ], - "x-ms-client-request-id": [ "18fcbc81-95e8-41e8-99fa-3eef64006882" ], + "x-ms-unique-id": [ "46" ], + "x-ms-client-request-id": [ "3e2ae830-244a-4378-a384-85d539099205" ], "CommandName": [ "Invoke-AzCloudServiceReimage" ], "FullCommandName": [ "Invoke-AzCloudServiceReimage_ReimageExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -137,32 +103,34 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "897df8c6-7de7-4f64-ba89-4759ff988121" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "ff6a456d-e5fe-413d-9ca3-8e7c038b2ec2" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], - "x-ms-correlation-request-id": [ "94528881-0d43-4f2b-ab24-2d24e85b22a7" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T110552Z:94528881-0d43-4f2b-ab24-2d24e85b22a7" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11916" ], + "x-ms-correlation-request-id": [ "6de9c1b7-1d93-48cf-8607-95900a633055" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T010930Z:6de9c1b7-1d93-48cf-8607-95900a633055" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:05:52 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:09:30 GMT" ] }, "ContentHeaders": { "Content-Length": [ "134" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:04:21.0443098+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"853a9e51-b2f4-4331-b43a-3767b2ca5b37\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:08:29.8754735+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"112144dc-de4b-4d74-a622-70eda6d4dd5c\"\r\n}", + "isContentBase64": false } }, - "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/853a9e51-b2f4-4331-b43a-3767b2ca5b37?api-version=2020-10-01-preview+5": { + "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/112144dc-de4b-4d74-a622-70eda6d4dd5c?api-version=2021-03-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/853a9e51-b2f4-4331-b43a-3767b2ca5b37?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/112144dc-de4b-4d74-a622-70eda6d4dd5c?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "5" ], - "x-ms-client-request-id": [ "18fcbc81-95e8-41e8-99fa-3eef64006882" ], + "x-ms-unique-id": [ "47" ], + "x-ms-client-request-id": [ "3e2ae830-244a-4378-a384-85d539099205" ], "CommandName": [ "Invoke-AzCloudServiceReimage" ], "FullCommandName": [ "Invoke-AzCloudServiceReimage_ReimageExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -177,32 +145,34 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "f59698ac-98e5-4b36-80e5-5cc6511af502" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "80af6d6a-cfe8-488e-afd7-96d3628e5b26" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], - "x-ms-correlation-request-id": [ "44064af0-36a6-41da-bcd1-19279fed16c4" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T110622Z:44064af0-36a6-41da-bcd1-19279fed16c4" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11915" ], + "x-ms-correlation-request-id": [ "7efe86c8-9fca-4d0c-bf07-63912837afe5" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T011000Z:7efe86c8-9fca-4d0c-bf07-63912837afe5" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:06:22 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:10:00 GMT" ] }, "ContentHeaders": { "Content-Length": [ "134" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:04:21.0443098+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"853a9e51-b2f4-4331-b43a-3767b2ca5b37\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:08:29.8754735+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"112144dc-de4b-4d74-a622-70eda6d4dd5c\"\r\n}", + "isContentBase64": false } }, - "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/853a9e51-b2f4-4331-b43a-3767b2ca5b37?api-version=2020-10-01-preview+6": { + "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/112144dc-de4b-4d74-a622-70eda6d4dd5c?api-version=2021-03-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/853a9e51-b2f4-4331-b43a-3767b2ca5b37?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/112144dc-de4b-4d74-a622-70eda6d4dd5c?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "6" ], - "x-ms-client-request-id": [ "18fcbc81-95e8-41e8-99fa-3eef64006882" ], + "x-ms-unique-id": [ "48" ], + "x-ms-client-request-id": [ "3e2ae830-244a-4378-a384-85d539099205" ], "CommandName": [ "Invoke-AzCloudServiceReimage" ], "FullCommandName": [ "Invoke-AzCloudServiceReimage_ReimageExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -217,32 +187,34 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "7c912760-e510-44c1-8bd3-a9775050ce79" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "b28a894e-9c18-4b38-8df9-957f090de9bd" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], - "x-ms-correlation-request-id": [ "71e24426-0b14-4674-8368-a250707b65b5" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T110653Z:71e24426-0b14-4674-8368-a250707b65b5" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11914" ], + "x-ms-correlation-request-id": [ "5c9dafc9-2341-47d8-b6de-3c209ad80038" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T011031Z:5c9dafc9-2341-47d8-b6de-3c209ad80038" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:06:52 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:10:30 GMT" ] }, "ContentHeaders": { "Content-Length": [ "134" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:04:21.0443098+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"853a9e51-b2f4-4331-b43a-3767b2ca5b37\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:08:29.8754735+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"112144dc-de4b-4d74-a622-70eda6d4dd5c\"\r\n}", + "isContentBase64": false } }, - "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/853a9e51-b2f4-4331-b43a-3767b2ca5b37?api-version=2020-10-01-preview+7": { + "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/112144dc-de4b-4d74-a622-70eda6d4dd5c?api-version=2021-03-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/853a9e51-b2f4-4331-b43a-3767b2ca5b37?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/112144dc-de4b-4d74-a622-70eda6d4dd5c?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "7" ], - "x-ms-client-request-id": [ "18fcbc81-95e8-41e8-99fa-3eef64006882" ], + "x-ms-unique-id": [ "49" ], + "x-ms-client-request-id": [ "3e2ae830-244a-4378-a384-85d539099205" ], "CommandName": [ "Invoke-AzCloudServiceReimage" ], "FullCommandName": [ "Invoke-AzCloudServiceReimage_ReimageExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -257,32 +229,34 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "ae6a51be-1bd5-4903-9539-b5362ac0e29d" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "931c5be8-be99-44cd-8362-ac74790634d1" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], - "x-ms-correlation-request-id": [ "606728b1-ea72-4f33-b05c-b4c139f50329" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T110723Z:606728b1-ea72-4f33-b05c-b4c139f50329" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11913" ], + "x-ms-correlation-request-id": [ "f6978a8d-7e2f-4a8a-8f95-30bf1a4508a4" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T011101Z:f6978a8d-7e2f-4a8a-8f95-30bf1a4508a4" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:07:22 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:11:00 GMT" ] }, "ContentHeaders": { "Content-Length": [ "134" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:04:21.0443098+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"853a9e51-b2f4-4331-b43a-3767b2ca5b37\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:08:29.8754735+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"112144dc-de4b-4d74-a622-70eda6d4dd5c\"\r\n}", + "isContentBase64": false } }, - "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/853a9e51-b2f4-4331-b43a-3767b2ca5b37?api-version=2020-10-01-preview+8": { + "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/112144dc-de4b-4d74-a622-70eda6d4dd5c?api-version=2021-03-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/853a9e51-b2f4-4331-b43a-3767b2ca5b37?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/112144dc-de4b-4d74-a622-70eda6d4dd5c?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "8" ], - "x-ms-client-request-id": [ "18fcbc81-95e8-41e8-99fa-3eef64006882" ], + "x-ms-unique-id": [ "50" ], + "x-ms-client-request-id": [ "3e2ae830-244a-4378-a384-85d539099205" ], "CommandName": [ "Invoke-AzCloudServiceReimage" ], "FullCommandName": [ "Invoke-AzCloudServiceReimage_ReimageExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -297,32 +271,34 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "3bd5dde7-d6a8-4e96-b65e-22f92eb9fa4c" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "e5d64cf4-9913-4030-8559-534ae56772c7" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], - "x-ms-correlation-request-id": [ "2569842e-19c9-4a96-b507-4f40789fa73e" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T110753Z:2569842e-19c9-4a96-b507-4f40789fa73e" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11912" ], + "x-ms-correlation-request-id": [ "59886f84-5900-41e7-bc66-fa2666c02724" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T011131Z:59886f84-5900-41e7-bc66-fa2666c02724" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:07:53 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:11:31 GMT" ] }, "ContentHeaders": { "Content-Length": [ "134" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:04:21.0443098+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"853a9e51-b2f4-4331-b43a-3767b2ca5b37\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:08:29.8754735+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"112144dc-de4b-4d74-a622-70eda6d4dd5c\"\r\n}", + "isContentBase64": false } }, - "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/853a9e51-b2f4-4331-b43a-3767b2ca5b37?api-version=2020-10-01-preview+9": { + "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/112144dc-de4b-4d74-a622-70eda6d4dd5c?api-version=2021-03-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/853a9e51-b2f4-4331-b43a-3767b2ca5b37?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/112144dc-de4b-4d74-a622-70eda6d4dd5c?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "9" ], - "x-ms-client-request-id": [ "18fcbc81-95e8-41e8-99fa-3eef64006882" ], + "x-ms-unique-id": [ "51" ], + "x-ms-client-request-id": [ "3e2ae830-244a-4378-a384-85d539099205" ], "CommandName": [ "Invoke-AzCloudServiceReimage" ], "FullCommandName": [ "Invoke-AzCloudServiceReimage_ReimageExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -337,32 +313,34 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "c45b2a7a-e95d-4de3-910a-747e3e48cbeb" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "dc96da55-978b-4d0f-a4d1-a9243b257da1" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11911" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], - "x-ms-correlation-request-id": [ "dfc3af92-6fab-4aa7-b63d-ce306a9a8e4a" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T110824Z:dfc3af92-6fab-4aa7-b63d-ce306a9a8e4a" ], + "x-ms-correlation-request-id": [ "f1c44042-e6aa-47e0-85e6-7ad0865925f8" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T011201Z:f1c44042-e6aa-47e0-85e6-7ad0865925f8" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:08:23 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:12:01 GMT" ] }, "ContentHeaders": { "Content-Length": [ "134" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:04:21.0443098+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"853a9e51-b2f4-4331-b43a-3767b2ca5b37\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:08:29.8754735+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"112144dc-de4b-4d74-a622-70eda6d4dd5c\"\r\n}", + "isContentBase64": false } }, - "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/853a9e51-b2f4-4331-b43a-3767b2ca5b37?api-version=2020-10-01-preview+10": { + "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/112144dc-de4b-4d74-a622-70eda6d4dd5c?api-version=2021-03-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/853a9e51-b2f4-4331-b43a-3767b2ca5b37?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/112144dc-de4b-4d74-a622-70eda6d4dd5c?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "10" ], - "x-ms-client-request-id": [ "18fcbc81-95e8-41e8-99fa-3eef64006882" ], + "x-ms-unique-id": [ "52" ], + "x-ms-client-request-id": [ "3e2ae830-244a-4378-a384-85d539099205" ], "CommandName": [ "Invoke-AzCloudServiceReimage" ], "FullCommandName": [ "Invoke-AzCloudServiceReimage_ReimageExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -377,72 +355,34 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "8b565575-89e0-4e42-93ac-0dde83322a3e" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "5c7f6448-69c8-4ea9-9966-1fb05ab84382" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], - "x-ms-correlation-request-id": [ "87e4ecd3-7ddc-42bc-ab4b-49b63f745f85" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T110854Z:87e4ecd3-7ddc-42bc-ab4b-49b63f745f85" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11910" ], + "x-ms-correlation-request-id": [ "1b8b16d6-1e52-47a2-8e94-f7d94e5c8c64" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T011231Z:1b8b16d6-1e52-47a2-8e94-f7d94e5c8c64" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:08:53 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "134" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:04:21.0443098+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"853a9e51-b2f4-4331-b43a-3767b2ca5b37\"\r\n}" - } - }, - "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/853a9e51-b2f4-4331-b43a-3767b2ca5b37?api-version=2020-10-01-preview+11": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/853a9e51-b2f4-4331-b43a-3767b2ca5b37?api-version=2020-10-01-preview", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "11" ], - "x-ms-client-request-id": [ "18fcbc81-95e8-41e8-99fa-3eef64006882" ], - "CommandName": [ "Invoke-AzCloudServiceReimage" ], - "FullCommandName": [ "Invoke-AzCloudServiceReimage_ReimageExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "d51bf96a-8160-497e-bd05-805dcca81061" ], - "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], - "x-ms-correlation-request-id": [ "b1fb46db-c8a7-4d29-b5c4-c1e57d399cc1" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T110924Z:b1fb46db-c8a7-4d29-b5c4-c1e57d399cc1" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:09:24 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:12:31 GMT" ] }, "ContentHeaders": { "Content-Length": [ "184" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:04:21.0443098+00:00\",\r\n \"endTime\": \"2021-01-26T11:09:09.1054329+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"853a9e51-b2f4-4331-b43a-3767b2ca5b37\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:08:29.8754735+00:00\",\r\n \"endTime\": \"2021-03-26T01:12:17.4367272+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"112144dc-de4b-4d74-a622-70eda6d4dd5c\"\r\n}", + "isContentBase64": false } }, - "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/853a9e51-b2f4-4331-b43a-3767b2ca5b37?monitor=true\u0026api-version=2020-10-01-preview+12": { + "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/112144dc-de4b-4d74-a622-70eda6d4dd5c?monitor=true\u0026api-version=2021-03-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/853a9e51-b2f4-4331-b43a-3767b2ca5b37?monitor=true\u0026api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/112144dc-de4b-4d74-a622-70eda6d4dd5c?monitor=true\u0026api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "12" ], - "x-ms-client-request-id": [ "18fcbc81-95e8-41e8-99fa-3eef64006882" ], + "x-ms-unique-id": [ "53" ], + "x-ms-client-request-id": [ "3e2ae830-244a-4378-a384-85d539099205" ], "CommandName": [ "Invoke-AzCloudServiceReimage" ], "FullCommandName": [ "Invoke-AzCloudServiceReimage_ReimageExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -457,30 +397,32 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "c9482eb5-76d1-4a2a-83e1-09f4f78d30cd" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "3e289266-e0a3-4e07-8bfb-3ddba352b5f4" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], - "x-ms-correlation-request-id": [ "3a57e914-e465-41b0-8dc8-106d25a59de4" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T110925Z:3a57e914-e465-41b0-8dc8-106d25a59de4" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11909" ], + "x-ms-correlation-request-id": [ "8c89b406-31a7-40f0-b4d3-146d30b0914b" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T011231Z:8c89b406-31a7-40f0-b4d3-146d30b0914b" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:09:25 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:12:31 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], "Content-Length": [ "0" ] }, - "Content": null + "Content": null, + "isContentBase64": false } }, - "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft?api-version=2020-10-01-preview+1": { + "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k?api-version=2021-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "13" ], - "x-ms-client-request-id": [ "64210aa1-cb8f-443d-9497-393372b063da" ], + "x-ms-unique-id": [ "54" ], + "x-ms-client-request-id": [ "8317e106-cb0f-4e9b-ba42-eebee0666915" ], "CommandName": [ "Get-AzCloudService" ], "FullCommandName": [ "Get-AzCloudService_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -496,27 +438,30 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "51d04217-6bbb-4c37-9c1f-883d14e345a8" ], + "x-ms-request-id": [ "fb053c48-d6a9-4fe0-9e17-6fe185b8d33d" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/GetCloudService3Min;397,Microsoft.Compute/GetCloudService30Min;2575" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], - "x-ms-correlation-request-id": [ "d7a331cc-21ca-4a01-9471-e0de60e757f3" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T110925Z:d7a331cc-21ca-4a01-9471-e0de60e757f3" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11908" ], + "x-ms-correlation-request-id": [ "5fd2cd2b-25bf-49b8-87af-215e1289d11b" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T011232Z:5fd2cd2b-25bf-49b8-87af-215e1289d11b" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:09:25 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:12:31 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "3522" ], + "Content-Length": [ "3611" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"name\": \"cscmdlettest1p3wg7ft\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Auto\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"name\": \"GenevaExtension\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Succeeded\",\r\n \"rolesAppliedTo\": [\r\n \"*\"\r\n ],\r\n \"publisher\": \"Microsoft.Azure.Geneva\",\r\n \"type\": \"GenevaMonitoringPaaS\",\r\n \"typeHandlerVersion\": \"2.14.0.2\",\r\n \"settings\": \"\"\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"00541f30-ad0f-4939-86c9-178056f1b29a\"\r\n }\r\n}" + "Content": "{\r\n \"name\": \"cscmdlettestoe6r0n2k\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Manual\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Network/publicIPAddresses/cscmdlettestip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"name\": \"RDPExtension\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Succeeded\",\r\n \"rolesAppliedTo\": [\r\n \"*\"\r\n ],\r\n \"publisher\": \"Microsoft.Windows.Azure.Extensions\",\r\n \"type\": \"RDP\",\r\n \"typeHandlerVersion\": \"1.2.1\",\r\n \"settings\": \"\u003cPublicConfig\u003e\u003cUserName\u003euserazure\u003c/UserName\u003e\u003cExpiration\u003e03/25/2022 18:01:31\u003c/Expiration\u003e\u003c/PublicConfig\u003e\"\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"25056192-64fb-42b6-b81f-37e6b25c1515\"\r\n }\r\n}", + "isContentBase64": false } }, - "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service via identity+$POST+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/reimage?api-version=2020-10-01-preview+2": { + "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service via identity+$POST+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/reimage?api-version=2021-03-01+2": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/reimage?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/reimage?api-version=2021-03-01", "Content": "{\r\n \"roleInstances\": [ \"WebRole_IN_0\" ]\r\n}", + "isContentBase64": false, "Headers": { }, "ContentHeaders": { @@ -529,33 +474,36 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/82f2e9be-fc10-487d-9deb-3505610652bf?monitor=true\u0026api-version=2020-10-01-preview" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/82f2e9be-fc10-487d-9deb-3505610652bf?api-version=2020-10-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/2b84a06b-3698-4ce5-9f83-24f05058fffd?monitor=true\u0026api-version=2021-03-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/2b84a06b-3698-4ce5-9f83-24f05058fffd?api-version=2021-03-01" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "82f2e9be-fc10-487d-9deb-3505610652bf" ], + "x-ms-request-id": [ "2b84a06b-3698-4ce5-9f83-24f05058fffd" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/CreateUpdateDeleteCloudServiceOperations30Min;295" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], - "x-ms-correlation-request-id": [ "ddc662db-3899-46a1-be41-73ad049b195d" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T110925Z:ddc662db-3899-46a1-be41-73ad049b195d" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], + "x-ms-correlation-request-id": [ "47473fa6-d9d4-4326-82f2-2c6ba504be3e" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T011232Z:47473fa6-d9d4-4326-82f2-2c6ba504be3e" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:09:25 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:12:32 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], "Content-Length": [ "0" ] }, - "Content": null + "Content": null, + "isContentBase64": false } }, - "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/82f2e9be-fc10-487d-9deb-3505610652bf?api-version=2020-10-01-preview+3": { + "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/2b84a06b-3698-4ce5-9f83-24f05058fffd?api-version=2021-03-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/82f2e9be-fc10-487d-9deb-3505610652bf?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/2b84a06b-3698-4ce5-9f83-24f05058fffd?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "15" ], - "x-ms-client-request-id": [ "75ffd153-e65d-4e60-b58d-b4d7643b083b" ], + "x-ms-unique-id": [ "56" ], + "x-ms-client-request-id": [ "ddc77e91-768b-44b5-8b36-d06d518ea840" ], "CommandName": [ "Invoke-AzCloudServiceReimage" ], "FullCommandName": [ "Invoke-AzCloudServiceReimage_ReimageViaIdentityExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -570,32 +518,34 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "f7a4aea2-6cfe-4629-b98a-3c06090fb973" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "a99f6810-81c7-47bd-863e-a6e085aa857b" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-correlation-request-id": [ "d5f241eb-e6eb-4cec-ae6d-33d98789e363" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T110956Z:d5f241eb-e6eb-4cec-ae6d-33d98789e363" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11907" ], + "x-ms-correlation-request-id": [ "fb090a9c-9e35-4fbb-82eb-c0ec6b101214" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T011302Z:fb090a9c-9e35-4fbb-82eb-c0ec6b101214" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:09:55 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:13:02 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "183" ], + "Content-Length": [ "184" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:09:25.8464409+00:00\",\r\n \"endTime\": \"2021-01-26T11:09:41.215061+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"82f2e9be-fc10-487d-9deb-3505610652bf\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:12:32.5985157+00:00\",\r\n \"endTime\": \"2021-03-26T01:12:47.9825898+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"2b84a06b-3698-4ce5-9f83-24f05058fffd\"\r\n}", + "isContentBase64": false } }, - "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/82f2e9be-fc10-487d-9deb-3505610652bf?monitor=true\u0026api-version=2020-10-01-preview+4": { + "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/2b84a06b-3698-4ce5-9f83-24f05058fffd?monitor=true\u0026api-version=2021-03-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/82f2e9be-fc10-487d-9deb-3505610652bf?monitor=true\u0026api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/2b84a06b-3698-4ce5-9f83-24f05058fffd?monitor=true\u0026api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "16" ], - "x-ms-client-request-id": [ "75ffd153-e65d-4e60-b58d-b4d7643b083b" ], + "x-ms-unique-id": [ "57" ], + "x-ms-client-request-id": [ "ddc77e91-768b-44b5-8b36-d06d518ea840" ], "CommandName": [ "Invoke-AzCloudServiceReimage" ], "FullCommandName": [ "Invoke-AzCloudServiceReimage_ReimageViaIdentityExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -610,20 +560,21 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "ad723e41-b2a2-4b8e-a2e6-17e903a72eb3" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "be512289-59fd-4bc9-8ae7-9a497f0e5be3" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11976" ], - "x-ms-correlation-request-id": [ "702e46c0-62fa-4d8b-a686-18cc5e9e1220" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T110957Z:702e46c0-62fa-4d8b-a686-18cc5e9e1220" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11906" ], + "x-ms-correlation-request-id": [ "70c0b071-649b-4aef-8e60-c7d1240edb1d" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T011303Z:70c0b071-649b-4aef-8e60-c7d1240edb1d" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:09:56 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:13:02 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], "Content-Length": [ "0" ] }, - "Content": null + "Content": null, + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/CloudService/test/Invoke-AzCloudServiceRoleInstanceRebuild.Recording.json b/src/CloudService/test/Invoke-AzCloudServiceRoleInstanceRebuild.Recording.json index 436925c5d059..564e05a564b6 100644 --- a/src/CloudService/test/Invoke-AzCloudServiceRoleInstanceRebuild.Recording.json +++ b/src/CloudService/test/Invoke-AzCloudServiceRoleInstanceRebuild.Recording.json @@ -1,12 +1,13 @@ { - "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance+$POST+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0/rebuild?api-version=2020-10-01-preview+1": { + "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance+$POST+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0/rebuild?api-version=2021-03-01+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0/rebuild?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0/rebuild?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "1" ], - "x-ms-client-request-id": [ "e0437645-3d8b-41e4-9f0b-9a9e547b3c76" ], + "x-ms-unique-id": [ "58" ], + "x-ms-client-request-id": [ "17246a10-7822-45b7-93d9-1679e019fa06" ], "CommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild" ], "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild_Rebuild" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -21,33 +22,36 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/43ce1758-5abc-4052-bf70-73581198f81e?monitor=true\u0026api-version=2020-10-01-preview" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/43ce1758-5abc-4052-bf70-73581198f81e?api-version=2020-10-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/b475bdca-cd2a-48eb-8706-71934958ef89?monitor=true\u0026api-version=2021-03-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/b475bdca-cd2a-48eb-8706-71934958ef89?api-version=2021-03-01" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "43ce1758-5abc-4052-bf70-73581198f81e" ], + "x-ms-request-id": [ "b475bdca-cd2a-48eb-8706-71934958ef89" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/CreateUpdateDeleteCloudServiceOperations30Min;294" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], - "x-ms-correlation-request-id": [ "716e11d7-ded1-4e42-a2ad-d9d6d0b25a31" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T111338Z:716e11d7-ded1-4e42-a2ad-d9d6d0b25a31" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], + "x-ms-correlation-request-id": [ "03316fc1-ca2a-4ccd-9bb0-f2bad446f21e" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T011303Z:03316fc1-ca2a-4ccd-9bb0-f2bad446f21e" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:13:37 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:13:03 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], "Content-Length": [ "0" ] }, - "Content": null + "Content": null, + "isContentBase64": false } }, - "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/43ce1758-5abc-4052-bf70-73581198f81e?api-version=2020-10-01-preview+2": { + "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/b475bdca-cd2a-48eb-8706-71934958ef89?api-version=2021-03-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/43ce1758-5abc-4052-bf70-73581198f81e?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/b475bdca-cd2a-48eb-8706-71934958ef89?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "2" ], - "x-ms-client-request-id": [ "e0437645-3d8b-41e4-9f0b-9a9e547b3c76" ], + "x-ms-unique-id": [ "59" ], + "x-ms-client-request-id": [ "17246a10-7822-45b7-93d9-1679e019fa06" ], "CommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild" ], "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild_Rebuild" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -62,32 +66,34 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "aa80c95f-979a-41e5-962d-ddeb0c1c67fb" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "a501da8d-4694-459b-a2b5-e312a6cdd250" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], - "x-ms-correlation-request-id": [ "cb19df15-b0c4-49a6-bff6-53f6b3b59f2d" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T111409Z:cb19df15-b0c4-49a6-bff6-53f6b3b59f2d" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11905" ], + "x-ms-correlation-request-id": [ "30033b68-69c6-4076-9738-e8c4b32db799" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T011333Z:30033b68-69c6-4076-9738-e8c4b32db799" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:14:08 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:13:33 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "134" ], + "Content-Length": [ "184" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:13:38.0097124+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"43ce1758-5abc-4052-bf70-73581198f81e\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:13:03.6786785+00:00\",\r\n \"endTime\": \"2021-03-26T01:13:18.9273421+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"b475bdca-cd2a-48eb-8706-71934958ef89\"\r\n}", + "isContentBase64": false } }, - "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/43ce1758-5abc-4052-bf70-73581198f81e?api-version=2020-10-01-preview+3": { + "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/b475bdca-cd2a-48eb-8706-71934958ef89?monitor=true\u0026api-version=2021-03-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/43ce1758-5abc-4052-bf70-73581198f81e?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/b475bdca-cd2a-48eb-8706-71934958ef89?monitor=true\u0026api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "3" ], - "x-ms-client-request-id": [ "e0437645-3d8b-41e4-9f0b-9a9e547b3c76" ], + "x-ms-unique-id": [ "60" ], + "x-ms-client-request-id": [ "17246a10-7822-45b7-93d9-1679e019fa06" ], "CommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild" ], "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild_Rebuild" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -102,34 +108,162 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "dc0a8c1f-5c4c-4209-9bc7-e9171418ec35" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "dfb0ac59-5f74-4c9b-b521-5307a2f3526e" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11904" ], + "x-ms-correlation-request-id": [ "7c74b4e3-35d4-49e4-9234-7791bf0d623b" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T011334Z:7c74b4e3-35d4-49e4-9234-7791bf0d623b" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 26 Mar 2021 01:13:33 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances?api-version=2021-03-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "61" ], + "x-ms-client-request-id": [ "e0a65202-3b05-4aac-85d1-5727bf9f9c44" ], + "CommandName": [ "Get-AzCloudServiceRoleInstance" ], + "FullCommandName": [ "Get-AzCloudServiceRoleInstance_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "dd35c6ce-1225-4030-ad99-7de8281e489c" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/GetCloudService3Min;396,Microsoft.Compute/GetCloudService30Min;2574" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11903" ], + "x-ms-correlation-request-id": [ "12996232-7662-4ea8-8d92-977952e41ce4" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T011334Z:12996232-7662-4ea8-8d92-977952e41ce4" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 26 Mar 2021 01:13:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2920" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"WebRole_IN_0\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WebRole_IN_1\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_0\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WorkerRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WorkerRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_1\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WorkerRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WorkerRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n }\r\n ]\r\n}", + "isContentBase64": false + } + }, + "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance via identity+$POST+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0/rebuild?api-version=2021-03-01+2": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0/rebuild?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "62" ], + "x-ms-client-request-id": [ "599355ad-fe7f-4ae0-af52-a6a1a2e94052" ], + "CommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild" ], + "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild_RebuildViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/fc20e3b0-ff21-4279-8227-450985353a7a?monitor=true\u0026api-version=2021-03-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/fc20e3b0-ff21-4279-8227-450985353a7a?api-version=2021-03-01" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "fc20e3b0-ff21-4279-8227-450985353a7a" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/CreateUpdateDeleteCloudServiceOperations30Min;293" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1194" ], + "x-ms-correlation-request-id": [ "1521f4b6-eccf-4dd7-a1c1-877085b6ca19" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T011334Z:1521f4b6-eccf-4dd7-a1c1-877085b6ca19" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 26 Mar 2021 01:13:33 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/fc20e3b0-ff21-4279-8227-450985353a7a?api-version=2021-03-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/fc20e3b0-ff21-4279-8227-450985353a7a?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "63" ], + "x-ms-client-request-id": [ "599355ad-fe7f-4ae0-af52-a6a1a2e94052" ], + "CommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild" ], + "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild_RebuildViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "6a72ebbf-bfce-4eca-9bd0-83a5a2c142b8" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], - "x-ms-correlation-request-id": [ "25732a80-a9be-4e70-9da5-7a8649a03950" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T111439Z:25732a80-a9be-4e70-9da5-7a8649a03950" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11902" ], + "x-ms-correlation-request-id": [ "bbb88a2a-8238-4456-8579-6b1dc74d96d2" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T011404Z:bbb88a2a-8238-4456-8579-6b1dc74d96d2" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:14:38 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:14:04 GMT" ] }, "ContentHeaders": { "Content-Length": [ "134" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:13:38.0097124+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"43ce1758-5abc-4052-bf70-73581198f81e\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:13:34.6232233+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"fc20e3b0-ff21-4279-8227-450985353a7a\"\r\n}", + "isContentBase64": false } }, - "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/43ce1758-5abc-4052-bf70-73581198f81e?api-version=2020-10-01-preview+4": { + "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/fc20e3b0-ff21-4279-8227-450985353a7a?api-version=2021-03-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/43ce1758-5abc-4052-bf70-73581198f81e?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/fc20e3b0-ff21-4279-8227-450985353a7a?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "4" ], - "x-ms-client-request-id": [ "e0437645-3d8b-41e4-9f0b-9a9e547b3c76" ], + "x-ms-unique-id": [ "64" ], + "x-ms-client-request-id": [ "599355ad-fe7f-4ae0-af52-a6a1a2e94052" ], "CommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild" ], - "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild_Rebuild" ], + "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild_RebuildViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] }, @@ -142,34 +276,36 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "80a0a969-f4ec-421b-9674-04602f394a30" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "2e5816d5-967b-463d-a4ef-8fe1cb5c1483" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], - "x-ms-correlation-request-id": [ "2ab433d6-68db-4e3a-864d-f8d75c74cafc" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T111509Z:2ab433d6-68db-4e3a-864d-f8d75c74cafc" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11901" ], + "x-ms-correlation-request-id": [ "b090a540-d17b-4f42-9ec1-8e572c4949f9" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T011435Z:b090a540-d17b-4f42-9ec1-8e572c4949f9" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:15:08 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:14:34 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "184" ], + "Content-Length": [ "134" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:13:38.0097124+00:00\",\r\n \"endTime\": \"2021-01-26T11:15:09.0772003+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"43ce1758-5abc-4052-bf70-73581198f81e\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:13:34.6232233+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"fc20e3b0-ff21-4279-8227-450985353a7a\"\r\n}", + "isContentBase64": false } }, - "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/43ce1758-5abc-4052-bf70-73581198f81e?monitor=true\u0026api-version=2020-10-01-preview+5": { + "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/fc20e3b0-ff21-4279-8227-450985353a7a?api-version=2021-03-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/43ce1758-5abc-4052-bf70-73581198f81e?monitor=true\u0026api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/fc20e3b0-ff21-4279-8227-450985353a7a?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "5" ], - "x-ms-client-request-id": [ "e0437645-3d8b-41e4-9f0b-9a9e547b3c76" ], + "x-ms-unique-id": [ "65" ], + "x-ms-client-request-id": [ "599355ad-fe7f-4ae0-af52-a6a1a2e94052" ], "CommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild" ], - "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild_Rebuild" ], + "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild_RebuildViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] }, @@ -182,35 +318,38 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "69aef06c-6892-4446-b001-67056e8786ad" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "9c7115e6-673d-4609-be2b-34e9bcbf24d0" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], - "x-ms-correlation-request-id": [ "6ed441ad-0af5-4f25-a48a-0d11a47161f9" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T111509Z:6ed441ad-0af5-4f25-a48a-0d11a47161f9" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11903" ], + "x-ms-correlation-request-id": [ "d2383cab-140f-4e6f-9ba3-86f7f37dd16d" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T011505Z:d2383cab-140f-4e6f-9ba3-86f7f37dd16d" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:15:09 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:15:05 GMT" ] }, "ContentHeaders": { - "Expires": [ "-1" ], - "Content-Length": [ "0" ] + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] }, - "Content": null + "Content": "{\r\n \"startTime\": \"2021-03-26T01:13:34.6232233+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"fc20e3b0-ff21-4279-8227-450985353a7a\"\r\n}", + "isContentBase64": false } }, - "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances?api-version=2020-10-01-preview+1": { + "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/fc20e3b0-ff21-4279-8227-450985353a7a?api-version=2021-03-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/fc20e3b0-ff21-4279-8227-450985353a7a?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "6" ], - "x-ms-client-request-id": [ "c29a105b-80f2-429f-9a58-25d3ecdc69c9" ], - "CommandName": [ "Get-AzCloudServiceRoleInstance" ], - "FullCommandName": [ "Get-AzCloudServiceRoleInstance_List" ], + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "66" ], + "x-ms-client-request-id": [ "599355ad-fe7f-4ae0-af52-a6a1a2e94052" ], + "CommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild" ], + "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild_RebuildViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] }, "ContentHeaders": { } @@ -221,71 +360,76 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "28e9c851-9d4e-429c-870d-7f6b09fcb8bb" ], - "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], - "x-ms-correlation-request-id": [ "c6921666-48a5-4545-b185-e97498e3d89e" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T111510Z:c6921666-48a5-4545-b185-e97498e3d89e" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "649f7b9e-dc25-4c13-a3b4-13732d117f09" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11902" ], + "x-ms-correlation-request-id": [ "bd733e41-219a-40ab-a61a-4601b8ba3e5c" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T011535Z:bd733e41-219a-40ab-a61a-4601b8ba3e5c" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:15:09 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:15:34 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2920" ], + "Content-Length": [ "134" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"WebRole_IN_0\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WebRole_IN_1\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_0\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WorkerRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WorkerRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_1\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WorkerRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WorkerRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n }\r\n ]\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:13:34.6232233+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"fc20e3b0-ff21-4279-8227-450985353a7a\"\r\n}", + "isContentBase64": false } }, - "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance via identity+$POST+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0/rebuild?api-version=2020-10-01-preview+2": { + "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/fc20e3b0-ff21-4279-8227-450985353a7a?api-version=2021-03-01+7": { "Request": { - "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0/rebuild?api-version=2020-10-01-preview", + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/fc20e3b0-ff21-4279-8227-450985353a7a?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "7" ], - "x-ms-client-request-id": [ "b71775bf-59b9-46af-b6b4-1e9f1dca9224" ], + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "67" ], + "x-ms-client-request-id": [ "599355ad-fe7f-4ae0-af52-a6a1a2e94052" ], "CommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild" ], "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild_RebuildViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] }, "ContentHeaders": { } }, "Response": { - "StatusCode": 202, + "StatusCode": 200, "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/72125a00-5ded-46ac-a7a9-e2ee0cf3ca5b?monitor=true\u0026api-version=2020-10-01-preview" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/72125a00-5ded-46ac-a7a9-e2ee0cf3ca5b?api-version=2020-10-01-preview" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "72125a00-5ded-46ac-a7a9-e2ee0cf3ca5b" ], - "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], - "x-ms-correlation-request-id": [ "d8e3e4ad-df0d-48f1-b9d4-07287f3386de" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T111511Z:d8e3e4ad-df0d-48f1-b9d4-07287f3386de" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "983c1f05-b161-4799-b017-a9653a93bd5d" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11901" ], + "x-ms-correlation-request-id": [ "364f6752-a45a-494b-a2a4-af66eebbd15e" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T011605Z:364f6752-a45a-494b-a2a4-af66eebbd15e" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:15:10 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:16:05 GMT" ] }, "ContentHeaders": { - "Expires": [ "-1" ], - "Content-Length": [ "0" ] + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] }, - "Content": null + "Content": "{\r\n \"startTime\": \"2021-03-26T01:13:34.6232233+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"fc20e3b0-ff21-4279-8227-450985353a7a\"\r\n}", + "isContentBase64": false } }, - "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/72125a00-5ded-46ac-a7a9-e2ee0cf3ca5b?api-version=2020-10-01-preview+3": { + "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/fc20e3b0-ff21-4279-8227-450985353a7a?api-version=2021-03-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/72125a00-5ded-46ac-a7a9-e2ee0cf3ca5b?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/fc20e3b0-ff21-4279-8227-450985353a7a?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "8" ], - "x-ms-client-request-id": [ "b71775bf-59b9-46af-b6b4-1e9f1dca9224" ], + "x-ms-unique-id": [ "68" ], + "x-ms-client-request-id": [ "599355ad-fe7f-4ae0-af52-a6a1a2e94052" ], "CommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild" ], "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild_RebuildViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -300,32 +444,76 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "b779be0c-608a-46f6-bf95-08418508ed13" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "26c2c674-c07b-4905-a764-1e19ab23c51a" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], - "x-ms-correlation-request-id": [ "380036ab-5d9a-449d-8ebe-edaf26fbad5c" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T111541Z:380036ab-5d9a-449d-8ebe-edaf26fbad5c" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11900" ], + "x-ms-correlation-request-id": [ "e6828dfb-1242-4ef1-abe5-214b7c9f19e6" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T011635Z:e6828dfb-1242-4ef1-abe5-214b7c9f19e6" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:15:41 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:16:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2021-03-26T01:13:34.6232233+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"fc20e3b0-ff21-4279-8227-450985353a7a\"\r\n}", + "isContentBase64": false + } + }, + "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/fc20e3b0-ff21-4279-8227-450985353a7a?api-version=2021-03-01+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/fc20e3b0-ff21-4279-8227-450985353a7a?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "69" ], + "x-ms-client-request-id": [ "599355ad-fe7f-4ae0-af52-a6a1a2e94052" ], + "CommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild" ], + "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild_RebuildViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "465317ed-a204-4755-bf0a-41c528af111a" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11899" ], + "x-ms-correlation-request-id": [ "25fb4f12-5200-4deb-a122-1f9917382328" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T011705Z:25fb4f12-5200-4deb-a122-1f9917382328" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 26 Mar 2021 01:17:05 GMT" ] }, "ContentHeaders": { "Content-Length": [ "184" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:15:11.2572372+00:00\",\r\n \"endTime\": \"2021-01-26T11:15:26.5722742+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"72125a00-5ded-46ac-a7a9-e2ee0cf3ca5b\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:13:34.6232233+00:00\",\r\n \"endTime\": \"2021-03-26T01:16:46.8325956+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"fc20e3b0-ff21-4279-8227-450985353a7a\"\r\n}", + "isContentBase64": false } }, - "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/72125a00-5ded-46ac-a7a9-e2ee0cf3ca5b?monitor=true\u0026api-version=2020-10-01-preview+4": { + "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/fc20e3b0-ff21-4279-8227-450985353a7a?monitor=true\u0026api-version=2021-03-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/72125a00-5ded-46ac-a7a9-e2ee0cf3ca5b?monitor=true\u0026api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/fc20e3b0-ff21-4279-8227-450985353a7a?monitor=true\u0026api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "9" ], - "x-ms-client-request-id": [ "b71775bf-59b9-46af-b6b4-1e9f1dca9224" ], + "x-ms-unique-id": [ "70" ], + "x-ms-client-request-id": [ "599355ad-fe7f-4ae0-af52-a6a1a2e94052" ], "CommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild" ], "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild_RebuildViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -340,20 +528,21 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "69ec8c9a-0870-4a9b-ae60-9c686ea489d6" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "1c314fdc-e459-482b-aeb2-9b59d47a23e9" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], - "x-ms-correlation-request-id": [ "6f7bea68-fea4-49b5-9849-f51ff27c9a82" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T111542Z:6f7bea68-fea4-49b5-9849-f51ff27c9a82" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11898" ], + "x-ms-correlation-request-id": [ "c92e476d-573e-4082-880a-a01b39da8289" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T011705Z:c92e476d-573e-4082-880a-a01b39da8289" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:15:41 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:17:05 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], "Content-Length": [ "0" ] }, - "Content": null + "Content": null, + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/CloudService/test/Invoke-AzCloudServiceRoleInstanceReimage.Recording.json b/src/CloudService/test/Invoke-AzCloudServiceRoleInstanceReimage.Recording.json index 5d7ed85e3484..d0172764d68a 100644 --- a/src/CloudService/test/Invoke-AzCloudServiceRoleInstanceReimage.Recording.json +++ b/src/CloudService/test/Invoke-AzCloudServiceRoleInstanceReimage.Recording.json @@ -1,12 +1,13 @@ { - "Invoke-AzCloudServiceRoleInstanceReimage+[NoContext]+Reimage cloud service role instance+$POST+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0/reimage?api-version=2020-10-01-preview+1": { + "Invoke-AzCloudServiceRoleInstanceReimage+[NoContext]+Reimage cloud service role instance+$POST+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0/reimage?api-version=2021-03-01+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0/reimage?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0/reimage?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "1" ], - "x-ms-client-request-id": [ "6bf56c9d-7e6c-4d73-a661-7329a9127305" ], + "x-ms-unique-id": [ "71" ], + "x-ms-client-request-id": [ "4a2ad4c0-61a7-4123-a6bb-de1ed3c21dd0" ], "CommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage" ], "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage_Reimage" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -21,233 +22,36 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c355cdb5-496d-46ba-94f3-8a5c65eaef14?monitor=true\u0026api-version=2020-10-01-preview" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c355cdb5-496d-46ba-94f3-8a5c65eaef14?api-version=2020-10-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/d00f43ba-d5f3-4ff9-a1b4-8d33c28eafb8?monitor=true\u0026api-version=2021-03-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/d00f43ba-d5f3-4ff9-a1b4-8d33c28eafb8?api-version=2021-03-01" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "c355cdb5-496d-46ba-94f3-8a5c65eaef14" ], + "x-ms-request-id": [ "d00f43ba-d5f3-4ff9-a1b4-8d33c28eafb8" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/CreateUpdateDeleteCloudServiceOperations30Min;292" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], - "x-ms-correlation-request-id": [ "80538388-73f7-4e3b-8671-3e7bcd84f422" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T111647Z:80538388-73f7-4e3b-8671-3e7bcd84f422" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1193" ], + "x-ms-correlation-request-id": [ "81a07365-5413-4a22-9d45-0138fbca6c42" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T011706Z:81a07365-5413-4a22-9d45-0138fbca6c42" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:16:46 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:17:06 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], "Content-Length": [ "0" ] }, - "Content": null - } - }, - "Invoke-AzCloudServiceRoleInstanceReimage+[NoContext]+Reimage cloud service role instance+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c355cdb5-496d-46ba-94f3-8a5c65eaef14?api-version=2020-10-01-preview+2": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c355cdb5-496d-46ba-94f3-8a5c65eaef14?api-version=2020-10-01-preview", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "2" ], - "x-ms-client-request-id": [ "6bf56c9d-7e6c-4d73-a661-7329a9127305" ], - "CommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage" ], - "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage_Reimage" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "39da2e7b-22ed-4608-a6cd-1208efeeb2ad" ], - "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], - "x-ms-correlation-request-id": [ "b6d02a27-ae32-450c-9ed9-b65b013fcd89" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T111718Z:b6d02a27-ae32-450c-9ed9-b65b013fcd89" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:17:17 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "134" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:16:47.1463518+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"c355cdb5-496d-46ba-94f3-8a5c65eaef14\"\r\n}" - } - }, - "Invoke-AzCloudServiceRoleInstanceReimage+[NoContext]+Reimage cloud service role instance+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c355cdb5-496d-46ba-94f3-8a5c65eaef14?api-version=2020-10-01-preview+3": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c355cdb5-496d-46ba-94f3-8a5c65eaef14?api-version=2020-10-01-preview", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "3" ], - "x-ms-client-request-id": [ "6bf56c9d-7e6c-4d73-a661-7329a9127305" ], - "CommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage" ], - "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage_Reimage" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "9d72ff2e-37bf-4927-8b5c-641965d0c594" ], - "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], - "x-ms-correlation-request-id": [ "67fce7ed-e48b-4774-954f-406eaf9c0b73" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T111748Z:67fce7ed-e48b-4774-954f-406eaf9c0b73" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:17:48 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "134" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:16:47.1463518+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"c355cdb5-496d-46ba-94f3-8a5c65eaef14\"\r\n}" - } - }, - "Invoke-AzCloudServiceRoleInstanceReimage+[NoContext]+Reimage cloud service role instance+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c355cdb5-496d-46ba-94f3-8a5c65eaef14?api-version=2020-10-01-preview+4": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c355cdb5-496d-46ba-94f3-8a5c65eaef14?api-version=2020-10-01-preview", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "4" ], - "x-ms-client-request-id": [ "6bf56c9d-7e6c-4d73-a661-7329a9127305" ], - "CommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage" ], - "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage_Reimage" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "f39e4473-5510-4a79-9422-a7f3afb17ed2" ], - "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], - "x-ms-correlation-request-id": [ "8335b998-2f72-4aa2-971b-c458d3deafad" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T111818Z:8335b998-2f72-4aa2-971b-c458d3deafad" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:18:17 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "134" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:16:47.1463518+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"c355cdb5-496d-46ba-94f3-8a5c65eaef14\"\r\n}" - } - }, - "Invoke-AzCloudServiceRoleInstanceReimage+[NoContext]+Reimage cloud service role instance+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c355cdb5-496d-46ba-94f3-8a5c65eaef14?api-version=2020-10-01-preview+5": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c355cdb5-496d-46ba-94f3-8a5c65eaef14?api-version=2020-10-01-preview", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "5" ], - "x-ms-client-request-id": [ "6bf56c9d-7e6c-4d73-a661-7329a9127305" ], - "CommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage" ], - "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage_Reimage" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "283e111d-5bc1-43fe-be2f-68ea5a53494c" ], - "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], - "x-ms-correlation-request-id": [ "fe9bc113-8931-481e-a951-c1bcd62f3a69" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T111848Z:fe9bc113-8931-481e-a951-c1bcd62f3a69" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:18:48 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "134" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:16:47.1463518+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"c355cdb5-496d-46ba-94f3-8a5c65eaef14\"\r\n}" - } - }, - "Invoke-AzCloudServiceRoleInstanceReimage+[NoContext]+Reimage cloud service role instance+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c355cdb5-496d-46ba-94f3-8a5c65eaef14?api-version=2020-10-01-preview+6": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c355cdb5-496d-46ba-94f3-8a5c65eaef14?api-version=2020-10-01-preview", "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "6" ], - "x-ms-client-request-id": [ "6bf56c9d-7e6c-4d73-a661-7329a9127305" ], - "CommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage" ], - "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage_Reimage" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "cf994b29-abbc-4d18-b6ec-97b86593fc33" ], - "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], - "x-ms-correlation-request-id": [ "44c2f0d9-b03b-43e9-b0fa-02ce978b23a0" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T111919Z:44c2f0d9-b03b-43e9-b0fa-02ce978b23a0" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:19:18 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "134" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:16:47.1463518+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"c355cdb5-496d-46ba-94f3-8a5c65eaef14\"\r\n}" + "isContentBase64": false } }, - "Invoke-AzCloudServiceRoleInstanceReimage+[NoContext]+Reimage cloud service role instance+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c355cdb5-496d-46ba-94f3-8a5c65eaef14?api-version=2020-10-01-preview+7": { + "Invoke-AzCloudServiceRoleInstanceReimage+[NoContext]+Reimage cloud service role instance+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/d00f43ba-d5f3-4ff9-a1b4-8d33c28eafb8?api-version=2021-03-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c355cdb5-496d-46ba-94f3-8a5c65eaef14?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/d00f43ba-d5f3-4ff9-a1b4-8d33c28eafb8?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "7" ], - "x-ms-client-request-id": [ "6bf56c9d-7e6c-4d73-a661-7329a9127305" ], + "x-ms-unique-id": [ "72" ], + "x-ms-client-request-id": [ "4a2ad4c0-61a7-4123-a6bb-de1ed3c21dd0" ], "CommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage" ], "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage_Reimage" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -262,152 +66,34 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "1762856b-85b1-45f0-aa77-e6ebbf1f1f2f" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "4f6dea79-eb7b-4636-a948-f6d5732d377b" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11897" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], - "x-ms-correlation-request-id": [ "ac27b32b-983c-4ea7-9545-a54f612a4a7d" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T111949Z:ac27b32b-983c-4ea7-9545-a54f612a4a7d" ], + "x-ms-correlation-request-id": [ "de7ffa4f-a368-4b65-bd0d-63e0589dfef3" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T011737Z:de7ffa4f-a368-4b65-bd0d-63e0589dfef3" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:19:48 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "134" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:16:47.1463518+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"c355cdb5-496d-46ba-94f3-8a5c65eaef14\"\r\n}" - } - }, - "Invoke-AzCloudServiceRoleInstanceReimage+[NoContext]+Reimage cloud service role instance+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c355cdb5-496d-46ba-94f3-8a5c65eaef14?api-version=2020-10-01-preview+8": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c355cdb5-496d-46ba-94f3-8a5c65eaef14?api-version=2020-10-01-preview", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "8" ], - "x-ms-client-request-id": [ "6bf56c9d-7e6c-4d73-a661-7329a9127305" ], - "CommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage" ], - "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage_Reimage" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "64e803a3-4471-4b36-b7b4-ee3785d9d911" ], - "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], - "x-ms-correlation-request-id": [ "788091e3-3006-4182-b422-6f53e95fb501" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T112019Z:788091e3-3006-4182-b422-6f53e95fb501" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:20:18 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "134" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:16:47.1463518+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"c355cdb5-496d-46ba-94f3-8a5c65eaef14\"\r\n}" - } - }, - "Invoke-AzCloudServiceRoleInstanceReimage+[NoContext]+Reimage cloud service role instance+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c355cdb5-496d-46ba-94f3-8a5c65eaef14?api-version=2020-10-01-preview+9": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c355cdb5-496d-46ba-94f3-8a5c65eaef14?api-version=2020-10-01-preview", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "9" ], - "x-ms-client-request-id": [ "6bf56c9d-7e6c-4d73-a661-7329a9127305" ], - "CommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage" ], - "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage_Reimage" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "2aee1156-f560-4828-92e2-61fb7fcaf82a" ], - "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], - "x-ms-correlation-request-id": [ "1488e48a-9e9a-4b94-a79a-4c68c0d8029d" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T112050Z:1488e48a-9e9a-4b94-a79a-4c68c0d8029d" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:20:50 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "134" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:16:47.1463518+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"c355cdb5-496d-46ba-94f3-8a5c65eaef14\"\r\n}" - } - }, - "Invoke-AzCloudServiceRoleInstanceReimage+[NoContext]+Reimage cloud service role instance+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c355cdb5-496d-46ba-94f3-8a5c65eaef14?api-version=2020-10-01-preview+10": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c355cdb5-496d-46ba-94f3-8a5c65eaef14?api-version=2020-10-01-preview", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "10" ], - "x-ms-client-request-id": [ "6bf56c9d-7e6c-4d73-a661-7329a9127305" ], - "CommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage" ], - "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage_Reimage" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "266f3ec5-fa95-4871-9b5b-8206bcd7e9a4" ], - "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], - "x-ms-correlation-request-id": [ "a2ae188d-e8c1-4b55-b22a-cb3dc0447608" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T112120Z:a2ae188d-e8c1-4b55-b22a-cb3dc0447608" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:21:19 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:17:36 GMT" ] }, "ContentHeaders": { "Content-Length": [ "184" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:16:47.1463518+00:00\",\r\n \"endTime\": \"2021-01-26T11:21:20.0215742+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"c355cdb5-496d-46ba-94f3-8a5c65eaef14\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:17:06.8431237+00:00\",\r\n \"endTime\": \"2021-03-26T01:17:22.2334561+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"d00f43ba-d5f3-4ff9-a1b4-8d33c28eafb8\"\r\n}", + "isContentBase64": false } }, - "Invoke-AzCloudServiceRoleInstanceReimage+[NoContext]+Reimage cloud service role instance+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c355cdb5-496d-46ba-94f3-8a5c65eaef14?monitor=true\u0026api-version=2020-10-01-preview+11": { + "Invoke-AzCloudServiceRoleInstanceReimage+[NoContext]+Reimage cloud service role instance+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/d00f43ba-d5f3-4ff9-a1b4-8d33c28eafb8?monitor=true\u0026api-version=2021-03-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c355cdb5-496d-46ba-94f3-8a5c65eaef14?monitor=true\u0026api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/d00f43ba-d5f3-4ff9-a1b4-8d33c28eafb8?monitor=true\u0026api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "11" ], - "x-ms-client-request-id": [ "6bf56c9d-7e6c-4d73-a661-7329a9127305" ], + "x-ms-unique-id": [ "73" ], + "x-ms-client-request-id": [ "4a2ad4c0-61a7-4123-a6bb-de1ed3c21dd0" ], "CommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage" ], "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage_Reimage" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -422,30 +108,32 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "385d7038-919c-4217-8214-3537ee6d5d7b" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "96968da3-d03c-4d62-b00a-96dd778f40a4" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], - "x-ms-correlation-request-id": [ "8464158f-d6d3-479d-8212-f9dfec30e286" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T112120Z:8464158f-d6d3-479d-8212-f9dfec30e286" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11896" ], + "x-ms-correlation-request-id": [ "d94c5d07-3467-45b1-a25a-6e48d7c5037e" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T011737Z:d94c5d07-3467-45b1-a25a-6e48d7c5037e" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:21:20 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:17:37 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], "Content-Length": [ "0" ] }, - "Content": null + "Content": null, + "isContentBase64": false } }, - "Invoke-AzCloudServiceRoleInstanceReimage+[NoContext]+Reimage cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances?api-version=2020-10-01-preview+1": { + "Invoke-AzCloudServiceRoleInstanceReimage+[NoContext]+Reimage cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances?api-version=2021-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "12" ], - "x-ms-client-request-id": [ "0ced7003-7faa-4780-b0da-c444f6a6b045" ], + "x-ms-unique-id": [ "74" ], + "x-ms-client-request-id": [ "d778f6f5-2a12-4953-ace4-1e9d067232e3" ], "CommandName": [ "Get-AzCloudServiceRoleInstance" ], "FullCommandName": [ "Get-AzCloudServiceRoleInstance_List" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -461,30 +149,33 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "8fe27d9d-de20-4a47-8b5f-75f229db7a5a" ], + "x-ms-request-id": [ "e36d22f0-91ec-427f-b904-08ca9f6d23cb" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/GetCloudService3Min;398,Microsoft.Compute/GetCloudService30Min;2572" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], - "x-ms-correlation-request-id": [ "a7584604-3ed0-4ef3-bf65-ef064c4f4c93" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T112121Z:a7584604-3ed0-4ef3-bf65-ef064c4f4c93" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11895" ], + "x-ms-correlation-request-id": [ "70cf661d-69a6-4446-a61a-92cd88f44089" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T011737Z:70cf661d-69a6-4446-a61a-92cd88f44089" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:21:20 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:17:37 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2920" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"WebRole_IN_0\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WebRole_IN_1\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_0\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WorkerRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WorkerRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_1\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WorkerRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WorkerRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n }\r\n ]\r\n}" + "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"WebRole_IN_0\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WebRole_IN_1\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_0\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WorkerRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WorkerRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_1\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WorkerRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WorkerRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n }\r\n ]\r\n}", + "isContentBase64": false } }, - "Invoke-AzCloudServiceRoleInstanceReimage+[NoContext]+Reimage cloud service role instance via identity+$POST+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0/reimage?api-version=2020-10-01-preview+2": { + "Invoke-AzCloudServiceRoleInstanceReimage+[NoContext]+Reimage cloud service role instance via identity+$POST+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0/reimage?api-version=2021-03-01+2": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0/reimage?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0/reimage?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "13" ], - "x-ms-client-request-id": [ "95376e15-a27b-40ab-949f-3814d31f2ba0" ], + "x-ms-unique-id": [ "75" ], + "x-ms-client-request-id": [ "b7850bc7-3376-4878-84de-72efe250c56a" ], "CommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage" ], "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage_ReimageViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -499,33 +190,36 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/bdad4f03-331b-474a-99fa-011e621d36d7?monitor=true\u0026api-version=2020-10-01-preview" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/bdad4f03-331b-474a-99fa-011e621d36d7?api-version=2020-10-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/ab191e6c-a38f-4a8d-a856-dec2d6110607?monitor=true\u0026api-version=2021-03-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/ab191e6c-a38f-4a8d-a856-dec2d6110607?api-version=2021-03-01" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "bdad4f03-331b-474a-99fa-011e621d36d7" ], + "x-ms-request-id": [ "ab191e6c-a38f-4a8d-a856-dec2d6110607" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/CreateUpdateDeleteCloudServiceOperations30Min;291" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], - "x-ms-correlation-request-id": [ "03f647a7-129d-45ad-a7de-e88478d2a5b9" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T112121Z:03f647a7-129d-45ad-a7de-e88478d2a5b9" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1192" ], + "x-ms-correlation-request-id": [ "971902e1-6076-428a-9441-3ff79f265d3e" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T011738Z:971902e1-6076-428a-9441-3ff79f265d3e" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:21:21 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:17:37 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], "Content-Length": [ "0" ] }, - "Content": null + "Content": null, + "isContentBase64": false } }, - "Invoke-AzCloudServiceRoleInstanceReimage+[NoContext]+Reimage cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/bdad4f03-331b-474a-99fa-011e621d36d7?api-version=2020-10-01-preview+3": { + "Invoke-AzCloudServiceRoleInstanceReimage+[NoContext]+Reimage cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/ab191e6c-a38f-4a8d-a856-dec2d6110607?api-version=2021-03-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/bdad4f03-331b-474a-99fa-011e621d36d7?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/ab191e6c-a38f-4a8d-a856-dec2d6110607?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "14" ], - "x-ms-client-request-id": [ "95376e15-a27b-40ab-949f-3814d31f2ba0" ], + "x-ms-unique-id": [ "76" ], + "x-ms-client-request-id": [ "b7850bc7-3376-4878-84de-72efe250c56a" ], "CommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage" ], "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage_ReimageViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -540,32 +234,34 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "8013c2d8-17ab-43a5-bb74-7ece6ff56be2" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "0f874e0b-b758-4efa-ba37-a2b8b90bc26e" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], - "x-ms-correlation-request-id": [ "dea7a736-a7a9-4238-b564-6e9510c544bb" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T112152Z:dea7a736-a7a9-4238-b564-6e9510c544bb" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11894" ], + "x-ms-correlation-request-id": [ "de61dfba-944b-49a1-b10b-2c27b98cf9c4" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T011808Z:de61dfba-944b-49a1-b10b-2c27b98cf9c4" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:21:51 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:18:08 GMT" ] }, "ContentHeaders": { "Content-Length": [ "184" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:21:21.5782042+00:00\",\r\n \"endTime\": \"2021-01-26T11:21:36.8676947+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"bdad4f03-331b-474a-99fa-011e621d36d7\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:17:37.9494753+00:00\",\r\n \"endTime\": \"2021-03-26T01:17:53.2917218+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"ab191e6c-a38f-4a8d-a856-dec2d6110607\"\r\n}", + "isContentBase64": false } }, - "Invoke-AzCloudServiceRoleInstanceReimage+[NoContext]+Reimage cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/bdad4f03-331b-474a-99fa-011e621d36d7?monitor=true\u0026api-version=2020-10-01-preview+4": { + "Invoke-AzCloudServiceRoleInstanceReimage+[NoContext]+Reimage cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/ab191e6c-a38f-4a8d-a856-dec2d6110607?monitor=true\u0026api-version=2021-03-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/bdad4f03-331b-474a-99fa-011e621d36d7?monitor=true\u0026api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/ab191e6c-a38f-4a8d-a856-dec2d6110607?monitor=true\u0026api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "15" ], - "x-ms-client-request-id": [ "95376e15-a27b-40ab-949f-3814d31f2ba0" ], + "x-ms-unique-id": [ "77" ], + "x-ms-client-request-id": [ "b7850bc7-3376-4878-84de-72efe250c56a" ], "CommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage" ], "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage_ReimageViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -580,20 +276,21 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "0c4a3b37-efa5-48e8-92a1-526f29301918" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "59db92dd-5aed-4c31-a706-972ca8395397" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], - "x-ms-correlation-request-id": [ "6b7d91b5-18d6-416d-9a7d-d5ccc4fdf29c" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T112152Z:6b7d91b5-18d6-416d-9a7d-d5ccc4fdf29c" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11893" ], + "x-ms-correlation-request-id": [ "6c4382e4-2334-4025-a810-569da88c344e" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T011808Z:6c4382e4-2334-4025-a810-569da88c344e" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:21:51 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:18:08 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], "Content-Length": [ "0" ] }, - "Content": null + "Content": null, + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/CloudService/test/New-AzCloudService.Recording.json b/src/CloudService/test/New-AzCloudService.Recording.json index 4a07c208c33d..93d54a315aee 100644 --- a/src/CloudService/test/New-AzCloudService.Recording.json +++ b/src/CloudService/test/New-AzCloudService.Recording.json @@ -1,14 +1,15 @@ { - "New-AzCloudService+[NoContext]+UpdateExpanded: Create new cloud service+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft?api-version=2020-10-01-preview+1": { + "New-AzCloudService+[NoContext]+UpdateExpanded: Create new cloud service+$PUT+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k?api-version=2021-03-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft?api-version=2020-10-01-preview", - "Content": "{\r\n \"properties\": {\r\n \"packageUrl\": \"https://cscmdlettestc0im4js2.blob.core.windows.net/cscmdlettestcontainer/CSCmdletTest.cspkg?sv=2019-07-07\\u0026sr=b\\u0026sig=lTsWkgAfvAhxIc2mm7roL0PX9QGfPuYOlFovZZH4wvM%3D\\u0026st=2021-01-26T10%3A00%3A18Z\\u0026se=2022-01-26T10%3A00%3A18Z\\u0026sp=rwd\",\r\n \"configuration\": \"\\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\\u003e\\r\\n\\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\\u003e\\r\\n\\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\\u003e\\r\\n \\u003cRole name=\\\"WebRole\\\"\\u003e\\r\\n \\u003cInstances count=\\\"2\\\" /\\u003e\\r\\n \\u003cConfigurationSettings\\u003e\\r\\n \\u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\\u003e\\r\\n \\u003c/ConfigurationSettings\\u003e\\r\\n \\u003c/Role\\u003e\\r\\n \\u003cRole name=\\\"WorkerRole\\\"\\u003e\\r\\n \\u003cInstances count=\\\"2\\\" /\\u003e\\r\\n \\u003cConfigurationSettings\\u003e\\r\\n \\u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\\u003e\\r\\n \\u003c/ConfigurationSettings\\u003e\\r\\n \\u003c/Role\\u003e\\r\\n \\u003cNetworkConfiguration\\u003e\\r\\n \\u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\\u003e\\r\\n \\u003cAddressAssignments\\u003e\\r\\n \\u003cInstanceAddress roleName=\\\"WebRole\\\"\\u003e\\r\\n \\u003cSubnets\\u003e\\r\\n \\u003cSubnet name=\\\"WebTier\\\" /\\u003e\\r\\n \\u003c/Subnets\\u003e\\r\\n \\u003c/InstanceAddress\\u003e\\r\\n \\u003cInstanceAddress roleName=\\\"WorkerRole\\\"\\u003e\\r\\n \\u003cSubnets\\u003e\\r\\n \\u003cSubnet name=\\\"WebTier\\\" /\\u003e\\r\\n \\u003c/Subnets\\u003e\\r\\n \\u003c/InstanceAddress\\u003e\\r\\n \\u003c/AddressAssignments\\u003e\\r\\n \\u003c/NetworkConfiguration\\u003e\\r\\n\\u003c/ServiceConfiguration\\u003e\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"name\": \"WebRole\"\r\n },\r\n {\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"name\": \"WorkerRole\"\r\n }\r\n ]\r\n },\r\n \"networkProfile\": {\r\n \"loadBalancerConfigurations\": [\r\n {\r\n \"properties\": {\r\n \"frontendIPConfigurations\": [\r\n {\r\n \"properties\": {\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip\"\r\n }\r\n },\r\n \"name\": \"cscmdlettestLBFE\"\r\n }\r\n ]\r\n },\r\n \"name\": \"cscmdlettestLB\"\r\n }\r\n ]\r\n },\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.Azure.Geneva\",\r\n \"type\": \"GenevaMonitoringPaaS\",\r\n \"typeHandlerVersion\": \"2.14.0.2\",\r\n \"autoUpgradeMinorVersion\": false,\r\n \"settings\": \"\",\r\n \"protectedSettings\": \"\"\r\n },\r\n \"name\": \"GenevaExtension\"\r\n }\r\n ]\r\n }\r\n },\r\n \"location\": \"EastUS2EUAP\"\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k?api-version=2021-03-01", + "Content": "{\r\n \"properties\": {\r\n \"packageUrl\": \"https://cscmdlettestkf3bd0qx.blob.core.windows.net/cscmdlettestcontainer/CSCmdletTest.cspkg?sv=2019-07-07\\u0026sr=b\\u0026sig=QG8ZEybGKe%2F%2BDjMER%2FGSjkFRIyvsyVSOHb8YAebYg2g%3D\\u0026st=2021-03-26T01%3A01%3A13Z\\u0026se=2022-03-26T01%3A01%3A13Z\\u0026sp=rwd\",\r\n \"configuration\": \"\\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\\u003e\\r\\n\\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\\u003e\\r\\n\\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\\u003e\\r\\n \\u003cRole name=\\\"WebRole\\\"\\u003e\\r\\n \\u003cInstances count=\\\"2\\\" /\\u003e\\r\\n \\u003cConfigurationSettings\\u003e\\r\\n \\u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\\u003e\\r\\n \\u003c/ConfigurationSettings\\u003e\\r\\n \\u003c/Role\\u003e\\r\\n \\u003cRole name=\\\"WorkerRole\\\"\\u003e\\r\\n \\u003cInstances count=\\\"2\\\" /\\u003e\\r\\n \\u003cConfigurationSettings\\u003e\\r\\n \\u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\\u003e\\r\\n \\u003c/ConfigurationSettings\\u003e\\r\\n \\u003c/Role\\u003e\\r\\n \\u003cNetworkConfiguration\\u003e\\r\\n \\u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\\u003e\\r\\n \\u003cAddressAssignments\\u003e\\r\\n \\u003cInstanceAddress roleName=\\\"WebRole\\\"\\u003e\\r\\n \\u003cSubnets\\u003e\\r\\n \\u003cSubnet name=\\\"WebTier\\\" /\\u003e\\r\\n \\u003c/Subnets\\u003e\\r\\n \\u003c/InstanceAddress\\u003e\\r\\n \\u003cInstanceAddress roleName=\\\"WorkerRole\\\"\\u003e\\r\\n \\u003cSubnets\\u003e\\r\\n \\u003cSubnet name=\\\"WebTier\\\" /\\u003e\\r\\n \\u003c/Subnets\\u003e\\r\\n \\u003c/InstanceAddress\\u003e\\r\\n \\u003c/AddressAssignments\\u003e\\r\\n \\u003c/NetworkConfiguration\\u003e\\r\\n\\u003c/ServiceConfiguration\\u003e\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"name\": \"WebRole\"\r\n },\r\n {\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"name\": \"WorkerRole\"\r\n }\r\n ]\r\n },\r\n \"networkProfile\": {\r\n \"loadBalancerConfigurations\": [\r\n {\r\n \"properties\": {\r\n \"frontendIPConfigurations\": [\r\n {\r\n \"properties\": {\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip\"\r\n }\r\n },\r\n \"name\": \"cscmdlettestLBFE\"\r\n }\r\n ]\r\n },\r\n \"name\": \"cscmdlettestLB\"\r\n }\r\n ]\r\n },\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.Azure.Geneva\",\r\n \"type\": \"GenevaMonitoringPaaS\",\r\n \"typeHandlerVersion\": \"2.14.0.2\",\r\n \"autoUpgradeMinorVersion\": false,\r\n \"settings\": \"\",\r\n \"protectedSettings\": \"\"\r\n },\r\n \"name\": \"GenevaExtension\"\r\n }\r\n ]\r\n }\r\n },\r\n \"location\": \"EastUS2EUAP\"\r\n}", + "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "3872" ] + "Content-Length": [ "3878" ] } }, "Response": { @@ -16,33 +17,36 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/5f2116ac-93ad-4e46-82b6-a56dfac682e2?api-version=2020-10-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/66be7178-5ca9-4263-972a-f1deb74ead18?api-version=2021-03-01" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "5f2116ac-93ad-4e46-82b6-a56dfac682e2" ], + "x-ms-request-id": [ "66be7178-5ca9-4263-972a-f1deb74ead18" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/CreateUpdateDeleteCloudServiceOperations30Min;290" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], - "x-ms-correlation-request-id": [ "ccb03279-9a97-42dd-a952-427c37d03104" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T103620Z:ccb03279-9a97-42dd-a952-427c37d03104" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1192" ], + "x-ms-correlation-request-id": [ "c1cd5055-5d00-4f15-9e5e-c3dac267f3c6" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T011810Z:c1cd5055-5d00-4f15-9e5e-c3dac267f3c6" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 10:36:20 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:18:10 GMT" ] }, "ContentHeaders": { "Content-Length": [ "3520" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"name\": \"cscmdlettest1p3wg7ft\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Auto\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"name\": \"GenevaExtension\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Updating\",\r\n \"rolesAppliedTo\": [\r\n \"*\"\r\n ],\r\n \"publisher\": \"Microsoft.Azure.Geneva\",\r\n \"type\": \"GenevaMonitoringPaaS\",\r\n \"typeHandlerVersion\": \"2.14.0.2\",\r\n \"settings\": \"\"\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Updating\",\r\n \"uniqueId\": \"00541f30-ad0f-4939-86c9-178056f1b29a\"\r\n }\r\n}" + "Content": "{\r\n \"name\": \"cscmdlettestoe6r0n2k\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Auto\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"name\": \"GenevaExtension\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Updating\",\r\n \"rolesAppliedTo\": [\r\n \"*\"\r\n ],\r\n \"publisher\": \"Microsoft.Azure.Geneva\",\r\n \"type\": \"GenevaMonitoringPaaS\",\r\n \"typeHandlerVersion\": \"2.14.0.2\",\r\n \"settings\": \"\"\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Updating\",\r\n \"uniqueId\": \"25056192-64fb-42b6-b81f-37e6b25c1515\"\r\n }\r\n}", + "isContentBase64": false } }, - "New-AzCloudService+[NoContext]+UpdateExpanded: Create new cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/5f2116ac-93ad-4e46-82b6-a56dfac682e2?api-version=2020-10-01-preview+2": { + "New-AzCloudService+[NoContext]+UpdateExpanded: Create new cloud service+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/66be7178-5ca9-4263-972a-f1deb74ead18?api-version=2021-03-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/5f2116ac-93ad-4e46-82b6-a56dfac682e2?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/66be7178-5ca9-4263-972a-f1deb74ead18?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "2" ], - "x-ms-client-request-id": [ "2870731e-cd6b-426e-929e-b94b58fd401d" ], + "x-ms-unique-id": [ "79" ], + "x-ms-client-request-id": [ "bc430840-c93b-46b7-bb3a-2c2d0b277d31" ], "CommandName": [ "New-AzCloudService" ], "FullCommandName": [ "New-AzCloudService_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -57,32 +61,34 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "d3253653-f15d-4193-84dc-e59d30f9cb79" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "b916628a-f3f7-409e-a043-dfe079bd51bf" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], - "x-ms-correlation-request-id": [ "ecf91c73-5e03-428e-88b6-6c8e7d20648c" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T103651Z:ecf91c73-5e03-428e-88b6-6c8e7d20648c" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11892" ], + "x-ms-correlation-request-id": [ "56c3d596-2fc6-48ec-a005-d4662c826484" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T011840Z:56c3d596-2fc6-48ec-a005-d4662c826484" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 10:36:50 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:18:39 GMT" ] }, "ContentHeaders": { "Content-Length": [ "134" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T10:36:19.2273656+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"5f2116ac-93ad-4e46-82b6-a56dfac682e2\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:18:09.4299072+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"66be7178-5ca9-4263-972a-f1deb74ead18\"\r\n}", + "isContentBase64": false } }, - "New-AzCloudService+[NoContext]+UpdateExpanded: Create new cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/5f2116ac-93ad-4e46-82b6-a56dfac682e2?api-version=2020-10-01-preview+3": { + "New-AzCloudService+[NoContext]+UpdateExpanded: Create new cloud service+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/66be7178-5ca9-4263-972a-f1deb74ead18?api-version=2021-03-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/5f2116ac-93ad-4e46-82b6-a56dfac682e2?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/66be7178-5ca9-4263-972a-f1deb74ead18?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "3" ], - "x-ms-client-request-id": [ "2870731e-cd6b-426e-929e-b94b58fd401d" ], + "x-ms-unique-id": [ "80" ], + "x-ms-client-request-id": [ "bc430840-c93b-46b7-bb3a-2c2d0b277d31" ], "CommandName": [ "New-AzCloudService" ], "FullCommandName": [ "New-AzCloudService_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -97,32 +103,34 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "05afe70e-ce1a-48ef-95e8-147255901833" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "13913e99-d7fb-458a-89ca-c23f47fee3d4" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], - "x-ms-correlation-request-id": [ "bba23678-a292-46d2-a3e7-4ea0787c6fea" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T103721Z:bba23678-a292-46d2-a3e7-4ea0787c6fea" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11891" ], + "x-ms-correlation-request-id": [ "b1e8b33d-9fb1-40a3-a35f-58317100d5cf" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T011910Z:b1e8b33d-9fb1-40a3-a35f-58317100d5cf" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 10:37:21 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:19:09 GMT" ] }, "ContentHeaders": { "Content-Length": [ "134" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T10:36:19.2273656+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"5f2116ac-93ad-4e46-82b6-a56dfac682e2\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:18:09.4299072+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"66be7178-5ca9-4263-972a-f1deb74ead18\"\r\n}", + "isContentBase64": false } }, - "New-AzCloudService+[NoContext]+UpdateExpanded: Create new cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/5f2116ac-93ad-4e46-82b6-a56dfac682e2?api-version=2020-10-01-preview+4": { + "New-AzCloudService+[NoContext]+UpdateExpanded: Create new cloud service+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/66be7178-5ca9-4263-972a-f1deb74ead18?api-version=2021-03-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/5f2116ac-93ad-4e46-82b6-a56dfac682e2?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/66be7178-5ca9-4263-972a-f1deb74ead18?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "4" ], - "x-ms-client-request-id": [ "2870731e-cd6b-426e-929e-b94b58fd401d" ], + "x-ms-unique-id": [ "81" ], + "x-ms-client-request-id": [ "bc430840-c93b-46b7-bb3a-2c2d0b277d31" ], "CommandName": [ "New-AzCloudService" ], "FullCommandName": [ "New-AzCloudService_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -137,32 +145,496 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "6899168d-27b0-4883-b2e9-6c47bab05008" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "e9835a5c-15b6-4c86-861b-df094ba0c542" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], - "x-ms-correlation-request-id": [ "40d378ef-118e-40bd-9c56-7f77b77043bd" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T103751Z:40d378ef-118e-40bd-9c56-7f77b77043bd" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11890" ], + "x-ms-correlation-request-id": [ "c47f8330-bed4-49f0-a868-135ea01af123" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T011940Z:c47f8330-bed4-49f0-a868-135ea01af123" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 10:37:51 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:19:40 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2021-03-26T01:18:09.4299072+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"66be7178-5ca9-4263-972a-f1deb74ead18\"\r\n}", + "isContentBase64": false + } + }, + "New-AzCloudService+[NoContext]+UpdateExpanded: Create new cloud service+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/66be7178-5ca9-4263-972a-f1deb74ead18?api-version=2021-03-01+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/66be7178-5ca9-4263-972a-f1deb74ead18?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "82" ], + "x-ms-client-request-id": [ "bc430840-c93b-46b7-bb3a-2c2d0b277d31" ], + "CommandName": [ "New-AzCloudService" ], + "FullCommandName": [ "New-AzCloudService_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "fde83f24-9a26-4881-a7c7-27a68bcd05f1" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11909" ], + "x-ms-correlation-request-id": [ "e12183cd-6d9d-459c-80e5-8d184d7f6bb2" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T012011Z:e12183cd-6d9d-459c-80e5-8d184d7f6bb2" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 26 Mar 2021 01:20:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2021-03-26T01:18:09.4299072+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"66be7178-5ca9-4263-972a-f1deb74ead18\"\r\n}", + "isContentBase64": false + } + }, + "New-AzCloudService+[NoContext]+UpdateExpanded: Create new cloud service+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/66be7178-5ca9-4263-972a-f1deb74ead18?api-version=2021-03-01+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/66be7178-5ca9-4263-972a-f1deb74ead18?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "83" ], + "x-ms-client-request-id": [ "bc430840-c93b-46b7-bb3a-2c2d0b277d31" ], + "CommandName": [ "New-AzCloudService" ], + "FullCommandName": [ "New-AzCloudService_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "e9355951-837e-4211-8dd7-ab5bcc20d5b9" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11908" ], + "x-ms-correlation-request-id": [ "3646fcf4-e9fd-48be-876d-0696c8b94c71" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T012041Z:3646fcf4-e9fd-48be-876d-0696c8b94c71" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 26 Mar 2021 01:20:41 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2021-03-26T01:18:09.4299072+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"66be7178-5ca9-4263-972a-f1deb74ead18\"\r\n}", + "isContentBase64": false + } + }, + "New-AzCloudService+[NoContext]+UpdateExpanded: Create new cloud service+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/66be7178-5ca9-4263-972a-f1deb74ead18?api-version=2021-03-01+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/66be7178-5ca9-4263-972a-f1deb74ead18?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "84" ], + "x-ms-client-request-id": [ "bc430840-c93b-46b7-bb3a-2c2d0b277d31" ], + "CommandName": [ "New-AzCloudService" ], + "FullCommandName": [ "New-AzCloudService_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "8be2481d-2c4f-4bd2-9a7c-72bbe1948546" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11907" ], + "x-ms-correlation-request-id": [ "f14e6b75-9010-4e29-985f-a57132bc651a" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T012111Z:f14e6b75-9010-4e29-985f-a57132bc651a" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 26 Mar 2021 01:21:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2021-03-26T01:18:09.4299072+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"66be7178-5ca9-4263-972a-f1deb74ead18\"\r\n}", + "isContentBase64": false + } + }, + "New-AzCloudService+[NoContext]+UpdateExpanded: Create new cloud service+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/66be7178-5ca9-4263-972a-f1deb74ead18?api-version=2021-03-01+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/66be7178-5ca9-4263-972a-f1deb74ead18?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "85" ], + "x-ms-client-request-id": [ "bc430840-c93b-46b7-bb3a-2c2d0b277d31" ], + "CommandName": [ "New-AzCloudService" ], + "FullCommandName": [ "New-AzCloudService_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "65c46d51-2e18-4d34-8d37-5f4f124a5191" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11906" ], + "x-ms-correlation-request-id": [ "d9b94a4f-08c5-4348-af2e-a1371eb96eaf" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T012141Z:d9b94a4f-08c5-4348-af2e-a1371eb96eaf" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 26 Mar 2021 01:21:41 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2021-03-26T01:18:09.4299072+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"66be7178-5ca9-4263-972a-f1deb74ead18\"\r\n}", + "isContentBase64": false + } + }, + "New-AzCloudService+[NoContext]+UpdateExpanded: Create new cloud service+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/66be7178-5ca9-4263-972a-f1deb74ead18?api-version=2021-03-01+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/66be7178-5ca9-4263-972a-f1deb74ead18?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "86" ], + "x-ms-client-request-id": [ "bc430840-c93b-46b7-bb3a-2c2d0b277d31" ], + "CommandName": [ "New-AzCloudService" ], + "FullCommandName": [ "New-AzCloudService_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "87bf3b69-9535-42ed-9b07-d18f4d0920e4" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11905" ], + "x-ms-correlation-request-id": [ "76474f6a-1b11-44e4-bb65-f70d8a5bd20b" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T012211Z:76474f6a-1b11-44e4-bb65-f70d8a5bd20b" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 26 Mar 2021 01:22:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2021-03-26T01:18:09.4299072+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"66be7178-5ca9-4263-972a-f1deb74ead18\"\r\n}", + "isContentBase64": false + } + }, + "New-AzCloudService+[NoContext]+UpdateExpanded: Create new cloud service+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/66be7178-5ca9-4263-972a-f1deb74ead18?api-version=2021-03-01+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/66be7178-5ca9-4263-972a-f1deb74ead18?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "87" ], + "x-ms-client-request-id": [ "bc430840-c93b-46b7-bb3a-2c2d0b277d31" ], + "CommandName": [ "New-AzCloudService" ], + "FullCommandName": [ "New-AzCloudService_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "4584779e-d921-4790-a979-6362bb9918af" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11904" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-correlation-request-id": [ "2753e98c-6b10-4d83-baa5-ea1e2f1c3df8" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T012241Z:2753e98c-6b10-4d83-baa5-ea1e2f1c3df8" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 26 Mar 2021 01:22:41 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2021-03-26T01:18:09.4299072+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"66be7178-5ca9-4263-972a-f1deb74ead18\"\r\n}", + "isContentBase64": false + } + }, + "New-AzCloudService+[NoContext]+UpdateExpanded: Create new cloud service+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/66be7178-5ca9-4263-972a-f1deb74ead18?api-version=2021-03-01+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/66be7178-5ca9-4263-972a-f1deb74ead18?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "88" ], + "x-ms-client-request-id": [ "bc430840-c93b-46b7-bb3a-2c2d0b277d31" ], + "CommandName": [ "New-AzCloudService" ], + "FullCommandName": [ "New-AzCloudService_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "63eb83d9-4979-4a9d-ab86-debc49429e6e" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11903" ], + "x-ms-correlation-request-id": [ "2e8c8289-4182-4f68-8ab8-9ab48898cad4" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T012312Z:2e8c8289-4182-4f68-8ab8-9ab48898cad4" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 26 Mar 2021 01:23:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2021-03-26T01:18:09.4299072+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"66be7178-5ca9-4263-972a-f1deb74ead18\"\r\n}", + "isContentBase64": false + } + }, + "New-AzCloudService+[NoContext]+UpdateExpanded: Create new cloud service+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/66be7178-5ca9-4263-972a-f1deb74ead18?api-version=2021-03-01+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/66be7178-5ca9-4263-972a-f1deb74ead18?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "89" ], + "x-ms-client-request-id": [ "bc430840-c93b-46b7-bb3a-2c2d0b277d31" ], + "CommandName": [ "New-AzCloudService" ], + "FullCommandName": [ "New-AzCloudService_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "8d1d2ec2-4f80-4db6-9d45-4b6389e8d4c2" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11902" ], + "x-ms-correlation-request-id": [ "0d6a1cdb-c81f-4b5d-9320-3c2255a92652" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T012342Z:0d6a1cdb-c81f-4b5d-9320-3c2255a92652" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 26 Mar 2021 01:23:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2021-03-26T01:18:09.4299072+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"66be7178-5ca9-4263-972a-f1deb74ead18\"\r\n}", + "isContentBase64": false + } + }, + "New-AzCloudService+[NoContext]+UpdateExpanded: Create new cloud service+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/66be7178-5ca9-4263-972a-f1deb74ead18?api-version=2021-03-01+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/66be7178-5ca9-4263-972a-f1deb74ead18?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "90" ], + "x-ms-client-request-id": [ "bc430840-c93b-46b7-bb3a-2c2d0b277d31" ], + "CommandName": [ "New-AzCloudService" ], + "FullCommandName": [ "New-AzCloudService_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "b5e51196-257c-4079-a530-227d8cb918fb" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11901" ], + "x-ms-correlation-request-id": [ "7f7f59c6-8953-4b4f-9a8d-3eaa9411502a" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T012412Z:7f7f59c6-8953-4b4f-9a8d-3eaa9411502a" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 26 Mar 2021 01:24:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2021-03-26T01:18:09.4299072+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"66be7178-5ca9-4263-972a-f1deb74ead18\"\r\n}", + "isContentBase64": false + } + }, + "New-AzCloudService+[NoContext]+UpdateExpanded: Create new cloud service+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/66be7178-5ca9-4263-972a-f1deb74ead18?api-version=2021-03-01+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/66be7178-5ca9-4263-972a-f1deb74ead18?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "91" ], + "x-ms-client-request-id": [ "bc430840-c93b-46b7-bb3a-2c2d0b277d31" ], + "CommandName": [ "New-AzCloudService" ], + "FullCommandName": [ "New-AzCloudService_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "14420907-69f4-4e80-a2e6-df5590c5764e" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11900" ], + "x-ms-correlation-request-id": [ "e2415820-c213-4042-839a-eec347b6471a" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T012442Z:e2415820-c213-4042-839a-eec347b6471a" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 26 Mar 2021 01:24:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2021-03-26T01:18:09.4299072+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"66be7178-5ca9-4263-972a-f1deb74ead18\"\r\n}", + "isContentBase64": false + } + }, + "New-AzCloudService+[NoContext]+UpdateExpanded: Create new cloud service+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/66be7178-5ca9-4263-972a-f1deb74ead18?api-version=2021-03-01+15": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/66be7178-5ca9-4263-972a-f1deb74ead18?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "92" ], + "x-ms-client-request-id": [ "bc430840-c93b-46b7-bb3a-2c2d0b277d31" ], + "CommandName": [ "New-AzCloudService" ], + "FullCommandName": [ "New-AzCloudService_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "3ffc3911-c4cb-4a71-9572-9b63dc49a501" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11907" ], + "x-ms-correlation-request-id": [ "7cd63487-57db-489f-8e0b-265cba96a3e3" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T012513Z:7cd63487-57db-489f-8e0b-265cba96a3e3" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 26 Mar 2021 01:25:13 GMT" ] }, "ContentHeaders": { "Content-Length": [ "184" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T10:36:19.2273656+00:00\",\r\n \"endTime\": \"2021-01-26T10:37:46.2840695+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"5f2116ac-93ad-4e46-82b6-a56dfac682e2\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:18:09.4299072+00:00\",\r\n \"endTime\": \"2021-03-26T01:25:00.3708789+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"66be7178-5ca9-4263-972a-f1deb74ead18\"\r\n}", + "isContentBase64": false } }, - "New-AzCloudService+[NoContext]+UpdateExpanded: Create new cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft?api-version=2020-10-01-preview+5": { + "New-AzCloudService+[NoContext]+UpdateExpanded: Create new cloud service+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k?api-version=2021-03-01+16": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "5" ], - "x-ms-client-request-id": [ "2870731e-cd6b-426e-929e-b94b58fd401d" ], + "x-ms-unique-id": [ "93" ], + "x-ms-client-request-id": [ "bc430840-c93b-46b7-bb3a-2c2d0b277d31" ], "CommandName": [ "New-AzCloudService" ], "FullCommandName": [ "New-AzCloudService_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -177,20 +649,22 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "e6c56533-543d-4a4d-8164-1bed1fb2fc9e" ], + "x-ms-request-id": [ "e0b958e4-c0b3-457e-9325-3f53c4068ef8" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/GetCloudService3Min;397,Microsoft.Compute/GetCloudService30Min;2568" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], - "x-ms-correlation-request-id": [ "97cbd4b4-e0e7-4a77-8aaf-480d6ba67649" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T103752Z:97cbd4b4-e0e7-4a77-8aaf-480d6ba67649" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11906" ], + "x-ms-correlation-request-id": [ "ccc050a9-e083-4ecc-a547-6e90305049b3" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T012513Z:ccc050a9-e083-4ecc-a547-6e90305049b3" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 10:37:51 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:25:13 GMT" ] }, "ContentHeaders": { "Content-Length": [ "3522" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"name\": \"cscmdlettest1p3wg7ft\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Auto\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"name\": \"GenevaExtension\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Succeeded\",\r\n \"rolesAppliedTo\": [\r\n \"*\"\r\n ],\r\n \"publisher\": \"Microsoft.Azure.Geneva\",\r\n \"type\": \"GenevaMonitoringPaaS\",\r\n \"typeHandlerVersion\": \"2.14.0.2\",\r\n \"settings\": \"\"\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"00541f30-ad0f-4939-86c9-178056f1b29a\"\r\n }\r\n}" + "Content": "{\r\n \"name\": \"cscmdlettestoe6r0n2k\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Auto\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"name\": \"GenevaExtension\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Succeeded\",\r\n \"rolesAppliedTo\": [\r\n \"*\"\r\n ],\r\n \"publisher\": \"Microsoft.Azure.Geneva\",\r\n \"type\": \"GenevaMonitoringPaaS\",\r\n \"typeHandlerVersion\": \"2.14.0.2\",\r\n \"settings\": \"\"\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"25056192-64fb-42b6-b81f-37e6b25c1515\"\r\n }\r\n}", + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/CloudService/test/Restart-AzCloudService.Recording.json b/src/CloudService/test/Restart-AzCloudService.Recording.json index e24bec45cdfb..4b4a528e2009 100644 --- a/src/CloudService/test/Restart-AzCloudService.Recording.json +++ b/src/CloudService/test/Restart-AzCloudService.Recording.json @@ -1,9 +1,10 @@ { - "Restart-AzCloudService+[NoContext]+Restart cloud service+$POST+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/restart?api-version=2020-10-01-preview+1": { + "Restart-AzCloudService+[NoContext]+Restart cloud service+$POST+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/restart?api-version=2021-03-01+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/restart?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/restart?api-version=2021-03-01", "Content": "{\r\n \"roleInstances\": [ \"WebRole_IN_0\" ]\r\n}", + "isContentBase64": false, "Headers": { }, "ContentHeaders": { @@ -16,273 +17,36 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1502663e-2418-4868-ad45-212059c5a28a?monitor=true\u0026api-version=2020-10-01-preview" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1502663e-2418-4868-ad45-212059c5a28a?api-version=2020-10-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/9ee6391e-2c08-47dc-9884-08cc19140c02?monitor=true\u0026api-version=2021-03-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/9ee6391e-2c08-47dc-9884-08cc19140c02?api-version=2021-03-01" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "1502663e-2418-4868-ad45-212059c5a28a" ], + "x-ms-request-id": [ "9ee6391e-2c08-47dc-9884-08cc19140c02" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/CreateUpdateDeleteCloudServiceOperations30Min;289" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], - "x-ms-correlation-request-id": [ "907dfeab-4e9b-4a15-845d-6d82ad0256d9" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T114226Z:907dfeab-4e9b-4a15-845d-6d82ad0256d9" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1191" ], + "x-ms-correlation-request-id": [ "a103f1f8-e10c-426f-ab0e-e4f98bdbbcb4" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T012516Z:a103f1f8-e10c-426f-ab0e-e4f98bdbbcb4" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:42:25 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:25:16 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], "Content-Length": [ "0" ] }, - "Content": null - } - }, - "Restart-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1502663e-2418-4868-ad45-212059c5a28a?api-version=2020-10-01-preview+2": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1502663e-2418-4868-ad45-212059c5a28a?api-version=2020-10-01-preview", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "2" ], - "x-ms-client-request-id": [ "646404ca-99a7-44e7-af58-b278f753fc1a" ], - "CommandName": [ "Restart-AzCloudService" ], - "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "667299db-e851-4213-9226-56df5cc6de1b" ], - "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], - "x-ms-correlation-request-id": [ "ea56dcb9-3630-4b61-ab87-4f8733d5917f" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T114257Z:ea56dcb9-3630-4b61-ab87-4f8733d5917f" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:42:57 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "134" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:42:26.5159165+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"1502663e-2418-4868-ad45-212059c5a28a\"\r\n}" - } - }, - "Restart-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1502663e-2418-4868-ad45-212059c5a28a?api-version=2020-10-01-preview+3": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1502663e-2418-4868-ad45-212059c5a28a?api-version=2020-10-01-preview", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "3" ], - "x-ms-client-request-id": [ "646404ca-99a7-44e7-af58-b278f753fc1a" ], - "CommandName": [ "Restart-AzCloudService" ], - "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "7af5f3a6-2196-4628-b7f6-587240392591" ], - "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], - "x-ms-correlation-request-id": [ "cb008dbe-a8d3-4c6c-90dd-4d1175371021" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T114327Z:cb008dbe-a8d3-4c6c-90dd-4d1175371021" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:43:27 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "134" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:42:26.5159165+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"1502663e-2418-4868-ad45-212059c5a28a\"\r\n}" - } - }, - "Restart-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1502663e-2418-4868-ad45-212059c5a28a?api-version=2020-10-01-preview+4": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1502663e-2418-4868-ad45-212059c5a28a?api-version=2020-10-01-preview", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "4" ], - "x-ms-client-request-id": [ "646404ca-99a7-44e7-af58-b278f753fc1a" ], - "CommandName": [ "Restart-AzCloudService" ], - "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "4b204b32-ff53-48f2-8054-74756c5f2532" ], - "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], - "x-ms-correlation-request-id": [ "9339ebdb-6fbf-49da-8d0f-1ce31efa98f4" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T114358Z:9339ebdb-6fbf-49da-8d0f-1ce31efa98f4" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:43:57 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "134" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:42:26.5159165+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"1502663e-2418-4868-ad45-212059c5a28a\"\r\n}" - } - }, - "Restart-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1502663e-2418-4868-ad45-212059c5a28a?api-version=2020-10-01-preview+5": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1502663e-2418-4868-ad45-212059c5a28a?api-version=2020-10-01-preview", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "5" ], - "x-ms-client-request-id": [ "646404ca-99a7-44e7-af58-b278f753fc1a" ], - "CommandName": [ "Restart-AzCloudService" ], - "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "a272b0be-7f86-4147-bd6f-d7865bff809a" ], - "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], - "x-ms-correlation-request-id": [ "8dfb1ad1-ffa9-4281-bdf1-f3f2a7fa5150" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T114428Z:8dfb1ad1-ffa9-4281-bdf1-f3f2a7fa5150" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:44:28 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "134" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:42:26.5159165+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"1502663e-2418-4868-ad45-212059c5a28a\"\r\n}" - } - }, - "Restart-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1502663e-2418-4868-ad45-212059c5a28a?api-version=2020-10-01-preview+6": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1502663e-2418-4868-ad45-212059c5a28a?api-version=2020-10-01-preview", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "6" ], - "x-ms-client-request-id": [ "646404ca-99a7-44e7-af58-b278f753fc1a" ], - "CommandName": [ "Restart-AzCloudService" ], - "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "1f85f628-883c-46cb-8b63-bb7ab9bd34d9" ], - "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], - "x-ms-correlation-request-id": [ "c4f9c99f-5c91-40ad-8a81-79ba8c384563" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T114458Z:c4f9c99f-5c91-40ad-8a81-79ba8c384563" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:44:58 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "134" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:42:26.5159165+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"1502663e-2418-4868-ad45-212059c5a28a\"\r\n}" - } - }, - "Restart-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1502663e-2418-4868-ad45-212059c5a28a?api-version=2020-10-01-preview+7": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1502663e-2418-4868-ad45-212059c5a28a?api-version=2020-10-01-preview", "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "7" ], - "x-ms-client-request-id": [ "646404ca-99a7-44e7-af58-b278f753fc1a" ], - "CommandName": [ "Restart-AzCloudService" ], - "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "16992b2f-8a56-48e0-8a1f-9a8b4fae949f" ], - "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], - "x-ms-correlation-request-id": [ "fa3bb5c9-41f8-4915-8641-1d8e7c8bfbe0" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T114529Z:fa3bb5c9-41f8-4915-8641-1d8e7c8bfbe0" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:45:28 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "134" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:42:26.5159165+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"1502663e-2418-4868-ad45-212059c5a28a\"\r\n}" + "isContentBase64": false } }, - "Restart-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1502663e-2418-4868-ad45-212059c5a28a?api-version=2020-10-01-preview+8": { + "Restart-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/9ee6391e-2c08-47dc-9884-08cc19140c02?api-version=2021-03-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1502663e-2418-4868-ad45-212059c5a28a?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/9ee6391e-2c08-47dc-9884-08cc19140c02?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "8" ], - "x-ms-client-request-id": [ "646404ca-99a7-44e7-af58-b278f753fc1a" ], + "x-ms-unique-id": [ "95" ], + "x-ms-client-request-id": [ "431d09c4-6bf0-4b70-99e4-e7acf17789dc" ], "CommandName": [ "Restart-AzCloudService" ], "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -297,192 +61,34 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "641d4760-3171-48da-a8a0-79f20919b961" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "a7045c48-841f-4ee7-838a-a586827ed568" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], - "x-ms-correlation-request-id": [ "dfcbd426-4736-4b94-b4de-6131aba7cd7d" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T114559Z:dfcbd426-4736-4b94-b4de-6131aba7cd7d" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11905" ], + "x-ms-correlation-request-id": [ "6e1fb708-4437-436c-a824-b294b7658ffd" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T012546Z:6e1fb708-4437-436c-a824-b294b7658ffd" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:45:59 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "134" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:42:26.5159165+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"1502663e-2418-4868-ad45-212059c5a28a\"\r\n}" - } - }, - "Restart-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1502663e-2418-4868-ad45-212059c5a28a?api-version=2020-10-01-preview+9": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1502663e-2418-4868-ad45-212059c5a28a?api-version=2020-10-01-preview", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "9" ], - "x-ms-client-request-id": [ "646404ca-99a7-44e7-af58-b278f753fc1a" ], - "CommandName": [ "Restart-AzCloudService" ], - "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "265ab972-0ee5-424b-8719-1219757e2ac9" ], - "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], - "x-ms-correlation-request-id": [ "680623d6-c861-4a64-bacb-765fe1b09656" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T114629Z:680623d6-c861-4a64-bacb-765fe1b09656" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:46:29 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "134" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:42:26.5159165+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"1502663e-2418-4868-ad45-212059c5a28a\"\r\n}" - } - }, - "Restart-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1502663e-2418-4868-ad45-212059c5a28a?api-version=2020-10-01-preview+10": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1502663e-2418-4868-ad45-212059c5a28a?api-version=2020-10-01-preview", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "10" ], - "x-ms-client-request-id": [ "646404ca-99a7-44e7-af58-b278f753fc1a" ], - "CommandName": [ "Restart-AzCloudService" ], - "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "869f37a2-dfb3-48b0-94ad-c3ded28da0fe" ], - "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], - "x-ms-correlation-request-id": [ "3b9000ea-5b0a-47f1-905f-d727061ca57e" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T114700Z:3b9000ea-5b0a-47f1-905f-d727061ca57e" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:46:59 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "134" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:42:26.5159165+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"1502663e-2418-4868-ad45-212059c5a28a\"\r\n}" - } - }, - "Restart-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1502663e-2418-4868-ad45-212059c5a28a?api-version=2020-10-01-preview+11": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1502663e-2418-4868-ad45-212059c5a28a?api-version=2020-10-01-preview", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "11" ], - "x-ms-client-request-id": [ "646404ca-99a7-44e7-af58-b278f753fc1a" ], - "CommandName": [ "Restart-AzCloudService" ], - "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "d9564e76-4c15-44f0-8954-10cd8f389f58" ], - "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], - "x-ms-correlation-request-id": [ "5e22349d-68dd-4518-87a2-9554a198d283" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T114730Z:5e22349d-68dd-4518-87a2-9554a198d283" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:47:29 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "134" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:42:26.5159165+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"1502663e-2418-4868-ad45-212059c5a28a\"\r\n}" - } - }, - "Restart-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1502663e-2418-4868-ad45-212059c5a28a?api-version=2020-10-01-preview+12": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1502663e-2418-4868-ad45-212059c5a28a?api-version=2020-10-01-preview", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "12" ], - "x-ms-client-request-id": [ "646404ca-99a7-44e7-af58-b278f753fc1a" ], - "CommandName": [ "Restart-AzCloudService" ], - "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "deeffcd3-b913-4fb6-85aa-d4bb537c6eb2" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], - "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-correlation-request-id": [ "d512a810-b4fb-434e-8198-ca88d4361caf" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T114800Z:d512a810-b4fb-434e-8198-ca88d4361caf" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:48:00 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:25:46 GMT" ] }, "ContentHeaders": { "Content-Length": [ "184" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:42:26.5159165+00:00\",\r\n \"endTime\": \"2021-01-26T11:47:39.6779687+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"1502663e-2418-4868-ad45-212059c5a28a\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:25:16.5266749+00:00\",\r\n \"endTime\": \"2021-03-26T01:25:31.9368799+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"9ee6391e-2c08-47dc-9884-08cc19140c02\"\r\n}", + "isContentBase64": false } }, - "Restart-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1502663e-2418-4868-ad45-212059c5a28a?monitor=true\u0026api-version=2020-10-01-preview+13": { + "Restart-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/9ee6391e-2c08-47dc-9884-08cc19140c02?monitor=true\u0026api-version=2021-03-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1502663e-2418-4868-ad45-212059c5a28a?monitor=true\u0026api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/9ee6391e-2c08-47dc-9884-08cc19140c02?monitor=true\u0026api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "13" ], - "x-ms-client-request-id": [ "646404ca-99a7-44e7-af58-b278f753fc1a" ], + "x-ms-unique-id": [ "96" ], + "x-ms-client-request-id": [ "431d09c4-6bf0-4b70-99e4-e7acf17789dc" ], "CommandName": [ "Restart-AzCloudService" ], "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -497,30 +103,32 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "95d75b30-7535-4fff-8b1b-0c627e482b45" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "9adbfea8-b363-4b9a-9e3e-5cbc9b87198e" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], - "x-ms-correlation-request-id": [ "ad89736c-e066-497d-a552-054bbe329da4" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T114801Z:ad89736c-e066-497d-a552-054bbe329da4" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11904" ], + "x-ms-correlation-request-id": [ "568a6831-1ce5-4d07-8848-f3ddeb3005c6" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T012546Z:568a6831-1ce5-4d07-8848-f3ddeb3005c6" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:48:01 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:25:46 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], "Content-Length": [ "0" ] }, - "Content": null + "Content": null, + "isContentBase64": false } }, - "Restart-AzCloudService+[NoContext]+Restart cloud service via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft?api-version=2020-10-01-preview+1": { + "Restart-AzCloudService+[NoContext]+Restart cloud service via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k?api-version=2021-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "14" ], - "x-ms-client-request-id": [ "85e51674-3e4e-4445-b6b1-f15b173ff75a" ], + "x-ms-unique-id": [ "97" ], + "x-ms-client-request-id": [ "a9d79460-f927-4ff1-a543-0e97ee12a457" ], "CommandName": [ "Get-AzCloudService" ], "FullCommandName": [ "Get-AzCloudService_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -536,27 +144,30 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "d13cb79b-0ce5-45f6-be13-88ab28bf94a0" ], + "x-ms-request-id": [ "3b12abc6-c2eb-4c75-a306-7f0b9fa3a699" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/GetCloudService3Min;396,Microsoft.Compute/GetCloudService30Min;2566" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], - "x-ms-correlation-request-id": [ "f87de1d9-953d-4498-82f8-66d2d01003e8" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T114801Z:f87de1d9-953d-4498-82f8-66d2d01003e8" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11903" ], + "x-ms-correlation-request-id": [ "c417c55f-2c26-46b7-9045-767a4f7a0024" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T012547Z:c417c55f-2c26-46b7-9045-767a4f7a0024" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:48:01 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:25:47 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "3021" ], + "Content-Length": [ "3522" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"name\": \"cscmdlettest1p3wg7ft\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Auto\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip\"}}}]}}]},\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"00541f30-ad0f-4939-86c9-178056f1b29a\"\r\n }\r\n}" + "Content": "{\r\n \"name\": \"cscmdlettestoe6r0n2k\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Auto\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"name\": \"GenevaExtension\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Succeeded\",\r\n \"rolesAppliedTo\": [\r\n \"*\"\r\n ],\r\n \"publisher\": \"Microsoft.Azure.Geneva\",\r\n \"type\": \"GenevaMonitoringPaaS\",\r\n \"typeHandlerVersion\": \"2.14.0.2\",\r\n \"settings\": \"\"\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"25056192-64fb-42b6-b81f-37e6b25c1515\"\r\n }\r\n}", + "isContentBase64": false } }, - "Restart-AzCloudService+[NoContext]+Restart cloud service via identity+$POST+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/restart?api-version=2020-10-01-preview+2": { + "Restart-AzCloudService+[NoContext]+Restart cloud service via identity+$POST+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/restart?api-version=2021-03-01+2": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/restart?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/restart?api-version=2021-03-01", "Content": "{\r\n \"roleInstances\": [ \"WebRole_IN_0\" ]\r\n}", + "isContentBase64": false, "Headers": { }, "ContentHeaders": { @@ -569,33 +180,36 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/9877ffb8-42d9-4de2-b110-b9dd48c0ab71?monitor=true\u0026api-version=2020-10-01-preview" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/9877ffb8-42d9-4de2-b110-b9dd48c0ab71?api-version=2020-10-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/291425c1-c1b6-474b-8a94-6f5eb50e984d?monitor=true\u0026api-version=2021-03-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/291425c1-c1b6-474b-8a94-6f5eb50e984d?api-version=2021-03-01" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "9877ffb8-42d9-4de2-b110-b9dd48c0ab71" ], + "x-ms-request-id": [ "291425c1-c1b6-474b-8a94-6f5eb50e984d" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/CreateUpdateDeleteCloudServiceOperations30Min;288" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], - "x-ms-correlation-request-id": [ "080f2d25-7566-4e3b-bcee-b551aa718b75" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T114802Z:080f2d25-7566-4e3b-bcee-b551aa718b75" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1190" ], + "x-ms-correlation-request-id": [ "f9719c0f-37d0-4898-a306-df373b52c17a" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T012547Z:f9719c0f-37d0-4898-a306-df373b52c17a" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:48:02 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:25:47 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], "Content-Length": [ "0" ] }, - "Content": null + "Content": null, + "isContentBase64": false } }, - "Restart-AzCloudService+[NoContext]+Restart cloud service via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/9877ffb8-42d9-4de2-b110-b9dd48c0ab71?api-version=2020-10-01-preview+3": { + "Restart-AzCloudService+[NoContext]+Restart cloud service via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/291425c1-c1b6-474b-8a94-6f5eb50e984d?api-version=2021-03-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/9877ffb8-42d9-4de2-b110-b9dd48c0ab71?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/291425c1-c1b6-474b-8a94-6f5eb50e984d?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "16" ], - "x-ms-client-request-id": [ "7d1a4992-9d69-4ff9-ada5-e0e8c430520a" ], + "x-ms-unique-id": [ "99" ], + "x-ms-client-request-id": [ "59680b8a-5248-4014-b202-86c76b12aa64" ], "CommandName": [ "Restart-AzCloudService" ], "FullCommandName": [ "Restart-AzCloudService_RestartViaIdentityExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -610,32 +224,34 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "dd3beb9b-4102-44a0-abef-830427be6744" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "14e6b544-e14c-482f-b553-82fc4fd564d7" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], - "x-ms-correlation-request-id": [ "12627216-9875-4fcd-8bb1-39162521e0aa" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T114832Z:12627216-9875-4fcd-8bb1-39162521e0aa" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11902" ], + "x-ms-correlation-request-id": [ "e78d3c9e-0966-43b1-9122-4279adfdacb9" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T012617Z:e78d3c9e-0966-43b1-9122-4279adfdacb9" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:48:32 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:26:17 GMT" ] }, "ContentHeaders": { "Content-Length": [ "184" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:48:02.3455766+00:00\",\r\n \"endTime\": \"2021-01-26T11:48:17.6253268+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"9877ffb8-42d9-4de2-b110-b9dd48c0ab71\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:25:47.4232983+00:00\",\r\n \"endTime\": \"2021-03-26T01:26:02.7994545+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"291425c1-c1b6-474b-8a94-6f5eb50e984d\"\r\n}", + "isContentBase64": false } }, - "Restart-AzCloudService+[NoContext]+Restart cloud service via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/9877ffb8-42d9-4de2-b110-b9dd48c0ab71?monitor=true\u0026api-version=2020-10-01-preview+4": { + "Restart-AzCloudService+[NoContext]+Restart cloud service via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/291425c1-c1b6-474b-8a94-6f5eb50e984d?monitor=true\u0026api-version=2021-03-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/9877ffb8-42d9-4de2-b110-b9dd48c0ab71?monitor=true\u0026api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/291425c1-c1b6-474b-8a94-6f5eb50e984d?monitor=true\u0026api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "17" ], - "x-ms-client-request-id": [ "7d1a4992-9d69-4ff9-ada5-e0e8c430520a" ], + "x-ms-unique-id": [ "100" ], + "x-ms-client-request-id": [ "59680b8a-5248-4014-b202-86c76b12aa64" ], "CommandName": [ "Restart-AzCloudService" ], "FullCommandName": [ "Restart-AzCloudService_RestartViaIdentityExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -650,20 +266,21 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "cff13b28-d34f-45c2-93f0-b89cf65c31dc" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "58130ee6-1431-43d0-8fdf-89f53c1cf7a5" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], - "x-ms-correlation-request-id": [ "0a5da4d5-8d95-4da9-95fe-76e0994c4b12" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T114833Z:0a5da4d5-8d95-4da9-95fe-76e0994c4b12" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11901" ], + "x-ms-correlation-request-id": [ "d5fb4591-8d56-408b-a5b5-04c461c2f681" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T012617Z:d5fb4591-8d56-408b-a5b5-04c461c2f681" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:48:32 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:26:17 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], "Content-Length": [ "0" ] }, - "Content": null + "Content": null, + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/CloudService/test/Restart-AzCloudServiceRoleInstance.Recording.json b/src/CloudService/test/Restart-AzCloudServiceRoleInstance.Recording.json index b59fd26ce2d7..9740c5fc53e2 100644 --- a/src/CloudService/test/Restart-AzCloudServiceRoleInstance.Recording.json +++ b/src/CloudService/test/Restart-AzCloudServiceRoleInstance.Recording.json @@ -1,12 +1,13 @@ { - "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance+$POST+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0/restart?api-version=2020-10-01-preview+1": { + "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance+$POST+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0/restart?api-version=2021-03-01+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0/restart?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0/restart?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "1" ], - "x-ms-client-request-id": [ "02367a8c-a583-497e-bdff-2804160cee2f" ], + "x-ms-unique-id": [ "101" ], + "x-ms-client-request-id": [ "ddb2dacf-a6df-4b2e-bcd3-762192751832" ], "CommandName": [ "Restart-AzCloudServiceRoleInstance" ], "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_Restart" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -21,73 +22,36 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/a9b1f18f-2699-40b9-8e77-af51baddde92?monitor=true\u0026api-version=2020-10-01-preview" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/a9b1f18f-2699-40b9-8e77-af51baddde92?api-version=2020-10-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/32a2cc47-ced1-4abc-b4f1-cef2afde2664?monitor=true\u0026api-version=2021-03-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/32a2cc47-ced1-4abc-b4f1-cef2afde2664?api-version=2021-03-01" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "a9b1f18f-2699-40b9-8e77-af51baddde92" ], + "x-ms-request-id": [ "32a2cc47-ced1-4abc-b4f1-cef2afde2664" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/CreateUpdateDeleteCloudServiceOperations30Min;287" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], - "x-ms-correlation-request-id": [ "41cf87d4-2a69-436f-9dd7-9d99f67e180f" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T113557Z:41cf87d4-2a69-436f-9dd7-9d99f67e180f" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1189" ], + "x-ms-correlation-request-id": [ "76826b07-ace1-4753-877a-39bf320d470e" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T012618Z:76826b07-ace1-4753-877a-39bf320d470e" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:35:56 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:26:17 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], "Content-Length": [ "0" ] }, - "Content": null - } - }, - "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/a9b1f18f-2699-40b9-8e77-af51baddde92?api-version=2020-10-01-preview+2": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/a9b1f18f-2699-40b9-8e77-af51baddde92?api-version=2020-10-01-preview", "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "2" ], - "x-ms-client-request-id": [ "02367a8c-a583-497e-bdff-2804160cee2f" ], - "CommandName": [ "Restart-AzCloudServiceRoleInstance" ], - "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_Restart" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "a83437a7-5bc3-4b09-8f2c-1832eb621cf9" ], - "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], - "x-ms-correlation-request-id": [ "284713bf-a730-4cdf-a668-3bb7617da091" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T113627Z:284713bf-a730-4cdf-a668-3bb7617da091" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:36:27 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "184" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:35:56.8968159+00:00\",\r\n \"endTime\": \"2021-01-26T11:36:12.1742074+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"a9b1f18f-2699-40b9-8e77-af51baddde92\"\r\n}" + "isContentBase64": false } }, - "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/a9b1f18f-2699-40b9-8e77-af51baddde92?monitor=true\u0026api-version=2020-10-01-preview+3": { + "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/32a2cc47-ced1-4abc-b4f1-cef2afde2664?api-version=2021-03-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/a9b1f18f-2699-40b9-8e77-af51baddde92?monitor=true\u0026api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/32a2cc47-ced1-4abc-b4f1-cef2afde2664?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "3" ], - "x-ms-client-request-id": [ "02367a8c-a583-497e-bdff-2804160cee2f" ], + "x-ms-unique-id": [ "102" ], + "x-ms-client-request-id": [ "ddb2dacf-a6df-4b2e-bcd3-762192751832" ], "CommandName": [ "Restart-AzCloudServiceRoleInstance" ], "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_Restart" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -102,112 +66,36 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "170bba5e-f75b-4e22-8174-9cf0b2557e34" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "516bcaaa-e008-4aa4-80da-163688e7e7e6" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], - "x-ms-correlation-request-id": [ "98a70541-a80b-42c4-820d-ba398581c04e" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T113628Z:98a70541-a80b-42c4-820d-ba398581c04e" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11900" ], + "x-ms-correlation-request-id": [ "046cc43c-d51c-4e82-b597-625f267bed80" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T012648Z:046cc43c-d51c-4e82-b597-625f267bed80" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:36:27 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:26:47 GMT" ] }, "ContentHeaders": { - "Expires": [ "-1" ], - "Content-Length": [ "0" ] - }, - "Content": null - } - }, - "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances?api-version=2020-10-01-preview+1": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances?api-version=2020-10-01-preview", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "4" ], - "x-ms-client-request-id": [ "09da4d19-1948-4354-9ae6-7bdb0bd127c3" ], - "CommandName": [ "Get-AzCloudServiceRoleInstance" ], - "FullCommandName": [ "Get-AzCloudServiceRoleInstance_List" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "397fc6f1-a496-4756-8d65-558a3e18880f" ], - "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], - "x-ms-correlation-request-id": [ "cb28f837-036c-4385-a73f-c4a12983d7e6" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T113628Z:cb28f837-036c-4385-a73f-c4a12983d7e6" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:36:27 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "2920" ], + "Content-Length": [ "134" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"WebRole_IN_0\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WebRole_IN_1\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_0\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WorkerRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WorkerRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_1\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WorkerRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WorkerRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n }\r\n ]\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:26:18.4265633+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"32a2cc47-ced1-4abc-b4f1-cef2afde2664\"\r\n}", + "isContentBase64": false } }, - "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance via identity+$POST+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0/restart?api-version=2020-10-01-preview+2": { - "Request": { - "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/roleInstances/WebRole_IN_0/restart?api-version=2020-10-01-preview", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "5" ], - "x-ms-client-request-id": [ "005aca8a-7184-4c2a-a1c6-cd8bf5f193ca" ], - "CommandName": [ "Restart-AzCloudServiceRoleInstance" ], - "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_RestartViaIdentity" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 202, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/31733da8-58a4-4357-90ee-8cfff1f842be?monitor=true\u0026api-version=2020-10-01-preview" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/31733da8-58a4-4357-90ee-8cfff1f842be?api-version=2020-10-01-preview" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "31733da8-58a4-4357-90ee-8cfff1f842be" ], - "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], - "x-ms-correlation-request-id": [ "1f33d47c-c3be-4082-9e2b-36047fa8beca" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T113629Z:1f33d47c-c3be-4082-9e2b-36047fa8beca" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:36:28 GMT" ] - }, - "ContentHeaders": { - "Expires": [ "-1" ], - "Content-Length": [ "0" ] - }, - "Content": null - } - }, - "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/31733da8-58a4-4357-90ee-8cfff1f842be?api-version=2020-10-01-preview+3": { + "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/32a2cc47-ced1-4abc-b4f1-cef2afde2664?api-version=2021-03-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/31733da8-58a4-4357-90ee-8cfff1f842be?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/32a2cc47-ced1-4abc-b4f1-cef2afde2664?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "6" ], - "x-ms-client-request-id": [ "005aca8a-7184-4c2a-a1c6-cd8bf5f193ca" ], + "x-ms-unique-id": [ "103" ], + "x-ms-client-request-id": [ "ddb2dacf-a6df-4b2e-bcd3-762192751832" ], "CommandName": [ "Restart-AzCloudServiceRoleInstance" ], - "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_RestartViaIdentity" ], + "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_Restart" ], "ParameterSetName": [ "__AllParameterSets" ], "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] }, @@ -220,34 +108,36 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "bc33be2b-1732-4b4f-b111-2d402d71c975" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "99641559-ba07-4d51-9fba-72442031a94e" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], - "x-ms-correlation-request-id": [ "d7016b13-e8c1-437f-8dc7-d697316384de" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T113659Z:d7016b13-e8c1-437f-8dc7-d697316384de" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11899" ], + "x-ms-correlation-request-id": [ "deab6704-9940-4258-9544-17473a70047e" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T012718Z:deab6704-9940-4258-9544-17473a70047e" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:36:59 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:27:18 GMT" ] }, "ContentHeaders": { "Content-Length": [ "134" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:36:28.9055583+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"31733da8-58a4-4357-90ee-8cfff1f842be\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:26:18.4265633+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"32a2cc47-ced1-4abc-b4f1-cef2afde2664\"\r\n}", + "isContentBase64": false } }, - "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/31733da8-58a4-4357-90ee-8cfff1f842be?api-version=2020-10-01-preview+4": { + "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/32a2cc47-ced1-4abc-b4f1-cef2afde2664?api-version=2021-03-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/31733da8-58a4-4357-90ee-8cfff1f842be?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/32a2cc47-ced1-4abc-b4f1-cef2afde2664?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "7" ], - "x-ms-client-request-id": [ "005aca8a-7184-4c2a-a1c6-cd8bf5f193ca" ], + "x-ms-unique-id": [ "104" ], + "x-ms-client-request-id": [ "ddb2dacf-a6df-4b2e-bcd3-762192751832" ], "CommandName": [ "Restart-AzCloudServiceRoleInstance" ], - "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_RestartViaIdentity" ], + "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_Restart" ], "ParameterSetName": [ "__AllParameterSets" ], "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] }, @@ -260,34 +150,36 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "f141a947-65aa-480a-8a7c-529a793a8f8e" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "e4d0f020-b405-4744-bd9a-155eccfb8d8a" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], - "x-ms-correlation-request-id": [ "a76b3960-2c6b-4787-9e46-583b21ecbd06" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T113729Z:a76b3960-2c6b-4787-9e46-583b21ecbd06" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11898" ], + "x-ms-correlation-request-id": [ "71e50a20-dcd1-4709-9a58-6822b5c8ebe2" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T012749Z:71e50a20-dcd1-4709-9a58-6822b5c8ebe2" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:37:29 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:27:48 GMT" ] }, "ContentHeaders": { "Content-Length": [ "134" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:36:28.9055583+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"31733da8-58a4-4357-90ee-8cfff1f842be\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:26:18.4265633+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"32a2cc47-ced1-4abc-b4f1-cef2afde2664\"\r\n}", + "isContentBase64": false } }, - "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/31733da8-58a4-4357-90ee-8cfff1f842be?api-version=2020-10-01-preview+5": { + "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/32a2cc47-ced1-4abc-b4f1-cef2afde2664?api-version=2021-03-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/31733da8-58a4-4357-90ee-8cfff1f842be?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/32a2cc47-ced1-4abc-b4f1-cef2afde2664?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "8" ], - "x-ms-client-request-id": [ "005aca8a-7184-4c2a-a1c6-cd8bf5f193ca" ], + "x-ms-unique-id": [ "105" ], + "x-ms-client-request-id": [ "ddb2dacf-a6df-4b2e-bcd3-762192751832" ], "CommandName": [ "Restart-AzCloudServiceRoleInstance" ], - "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_RestartViaIdentity" ], + "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_Restart" ], "ParameterSetName": [ "__AllParameterSets" ], "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] }, @@ -300,34 +192,36 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "cec634aa-666a-4a38-8012-74c1a4a5b008" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "02771427-2e4b-444b-8f83-5c2f062850c2" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11897" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], - "x-ms-correlation-request-id": [ "c3167375-f32b-4b1d-9e19-af9ee63a1fc8" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T113759Z:c3167375-f32b-4b1d-9e19-af9ee63a1fc8" ], + "x-ms-correlation-request-id": [ "9392c45c-e2c5-41b1-8e5b-75651c6cf218" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T012819Z:9392c45c-e2c5-41b1-8e5b-75651c6cf218" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:37:59 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:28:19 GMT" ] }, "ContentHeaders": { "Content-Length": [ "134" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:36:28.9055583+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"31733da8-58a4-4357-90ee-8cfff1f842be\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:26:18.4265633+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"32a2cc47-ced1-4abc-b4f1-cef2afde2664\"\r\n}", + "isContentBase64": false } }, - "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/31733da8-58a4-4357-90ee-8cfff1f842be?api-version=2020-10-01-preview+6": { + "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/32a2cc47-ced1-4abc-b4f1-cef2afde2664?api-version=2021-03-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/31733da8-58a4-4357-90ee-8cfff1f842be?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/32a2cc47-ced1-4abc-b4f1-cef2afde2664?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "9" ], - "x-ms-client-request-id": [ "005aca8a-7184-4c2a-a1c6-cd8bf5f193ca" ], + "x-ms-unique-id": [ "106" ], + "x-ms-client-request-id": [ "ddb2dacf-a6df-4b2e-bcd3-762192751832" ], "CommandName": [ "Restart-AzCloudServiceRoleInstance" ], - "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_RestartViaIdentity" ], + "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_Restart" ], "ParameterSetName": [ "__AllParameterSets" ], "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] }, @@ -340,34 +234,36 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "dfed123c-b029-4e0c-a326-c73c9a2ce0bc" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "5ba78632-3a3b-4169-adca-a215209267e5" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], - "x-ms-correlation-request-id": [ "80c41fea-ba6e-458c-a1da-54e1f4d4cacb" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T113830Z:80c41fea-ba6e-458c-a1da-54e1f4d4cacb" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11896" ], + "x-ms-correlation-request-id": [ "7bcf8e31-2c0d-42a0-a890-5ee6f2bcf027" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T012849Z:7bcf8e31-2c0d-42a0-a890-5ee6f2bcf027" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:38:29 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:28:48 GMT" ] }, "ContentHeaders": { "Content-Length": [ "134" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:36:28.9055583+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"31733da8-58a4-4357-90ee-8cfff1f842be\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:26:18.4265633+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"32a2cc47-ced1-4abc-b4f1-cef2afde2664\"\r\n}", + "isContentBase64": false } }, - "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/31733da8-58a4-4357-90ee-8cfff1f842be?api-version=2020-10-01-preview+7": { + "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/32a2cc47-ced1-4abc-b4f1-cef2afde2664?api-version=2021-03-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/31733da8-58a4-4357-90ee-8cfff1f842be?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/32a2cc47-ced1-4abc-b4f1-cef2afde2664?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "10" ], - "x-ms-client-request-id": [ "005aca8a-7184-4c2a-a1c6-cd8bf5f193ca" ], + "x-ms-unique-id": [ "107" ], + "x-ms-client-request-id": [ "ddb2dacf-a6df-4b2e-bcd3-762192751832" ], "CommandName": [ "Restart-AzCloudServiceRoleInstance" ], - "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_RestartViaIdentity" ], + "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_Restart" ], "ParameterSetName": [ "__AllParameterSets" ], "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] }, @@ -380,34 +276,36 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "82509c25-a575-4e31-8ad4-1ff529939e69" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "8eb9f5d3-f82e-4b9a-ba42-617a5d271ac5" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], - "x-ms-correlation-request-id": [ "847e3e88-4fc2-4991-8a3c-4add1d368339" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T113900Z:847e3e88-4fc2-4991-8a3c-4add1d368339" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11895" ], + "x-ms-correlation-request-id": [ "838b5ded-0e41-4da8-8549-2eae31c55923" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T012919Z:838b5ded-0e41-4da8-8549-2eae31c55923" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:39:00 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:29:18 GMT" ] }, "ContentHeaders": { "Content-Length": [ "134" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:36:28.9055583+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"31733da8-58a4-4357-90ee-8cfff1f842be\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:26:18.4265633+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"32a2cc47-ced1-4abc-b4f1-cef2afde2664\"\r\n}", + "isContentBase64": false } }, - "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/31733da8-58a4-4357-90ee-8cfff1f842be?api-version=2020-10-01-preview+8": { + "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/32a2cc47-ced1-4abc-b4f1-cef2afde2664?api-version=2021-03-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/31733da8-58a4-4357-90ee-8cfff1f842be?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/32a2cc47-ced1-4abc-b4f1-cef2afde2664?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "11" ], - "x-ms-client-request-id": [ "005aca8a-7184-4c2a-a1c6-cd8bf5f193ca" ], + "x-ms-unique-id": [ "108" ], + "x-ms-client-request-id": [ "ddb2dacf-a6df-4b2e-bcd3-762192751832" ], "CommandName": [ "Restart-AzCloudServiceRoleInstance" ], - "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_RestartViaIdentity" ], + "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_Restart" ], "ParameterSetName": [ "__AllParameterSets" ], "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] }, @@ -420,34 +318,36 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "d444fd7e-3500-4c3f-84e9-184d992ae43f" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "ab27b643-f251-46a8-ae64-6349d0bf6559" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], - "x-ms-correlation-request-id": [ "412b967e-d013-4288-b5e2-7f3a8a99b64e" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T113930Z:412b967e-d013-4288-b5e2-7f3a8a99b64e" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11894" ], + "x-ms-correlation-request-id": [ "d42ae96a-d823-4dcb-a297-56addef2c138" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T012949Z:d42ae96a-d823-4dcb-a297-56addef2c138" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:39:30 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:29:49 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "134" ], + "Content-Length": [ "184" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:36:28.9055583+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"31733da8-58a4-4357-90ee-8cfff1f842be\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:26:18.4265633+00:00\",\r\n \"endTime\": \"2021-03-26T01:29:45.9660688+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"32a2cc47-ced1-4abc-b4f1-cef2afde2664\"\r\n}", + "isContentBase64": false } }, - "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/31733da8-58a4-4357-90ee-8cfff1f842be?api-version=2020-10-01-preview+9": { + "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/32a2cc47-ced1-4abc-b4f1-cef2afde2664?monitor=true\u0026api-version=2021-03-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/31733da8-58a4-4357-90ee-8cfff1f842be?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/32a2cc47-ced1-4abc-b4f1-cef2afde2664?monitor=true\u0026api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "12" ], - "x-ms-client-request-id": [ "005aca8a-7184-4c2a-a1c6-cd8bf5f193ca" ], + "x-ms-unique-id": [ "109" ], + "x-ms-client-request-id": [ "ddb2dacf-a6df-4b2e-bcd3-762192751832" ], "CommandName": [ "Restart-AzCloudServiceRoleInstance" ], - "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_RestartViaIdentity" ], + "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_Restart" ], "ParameterSetName": [ "__AllParameterSets" ], "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] }, @@ -460,36 +360,37 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "b9b2606c-c36a-4259-88ad-a9e00db4ce48" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "36044a05-992e-4c20-9344-4fa8a7e447ea" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], - "x-ms-correlation-request-id": [ "48dc46c0-2f24-4e3a-bd15-2d7e736f92ba" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T114001Z:48dc46c0-2f24-4e3a-bd15-2d7e736f92ba" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11893" ], + "x-ms-correlation-request-id": [ "8f410339-deca-480b-9b59-deb7ed7593f2" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T012950Z:8f410339-deca-480b-9b59-deb7ed7593f2" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:40:00 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:29:49 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "134" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] + "Expires": [ "-1" ], + "Content-Length": [ "0" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:36:28.9055583+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"31733da8-58a4-4357-90ee-8cfff1f842be\"\r\n}" + "Content": null, + "isContentBase64": false } }, - "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/31733da8-58a4-4357-90ee-8cfff1f842be?api-version=2020-10-01-preview+10": { + "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances?api-version=2021-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/31733da8-58a4-4357-90ee-8cfff1f842be?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "13" ], - "x-ms-client-request-id": [ "005aca8a-7184-4c2a-a1c6-cd8bf5f193ca" ], - "CommandName": [ "Restart-AzCloudServiceRoleInstance" ], - "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_RestartViaIdentity" ], + "x-ms-unique-id": [ "110" ], + "x-ms-client-request-id": [ "7f706b71-07a5-4693-bcf4-e3812de304aa" ], + "CommandName": [ "Get-AzCloudServiceRoleInstance" ], + "FullCommandName": [ "Get-AzCloudServiceRoleInstance_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { } @@ -500,72 +401,77 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "a09b080c-5a58-48c6-8230-5241c137b36b" ], - "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], - "x-ms-correlation-request-id": [ "b3a624b6-f867-469d-8ae3-c57bb22ddddc" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T114031Z:b3a624b6-f867-469d-8ae3-c57bb22ddddc" ], + "x-ms-request-id": [ "0f8747b0-c3f6-4c06-b11b-3f012db236d4" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/GetCloudService3Min;397,Microsoft.Compute/GetCloudService30Min;2561" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11892" ], + "x-ms-correlation-request-id": [ "4a258131-53e9-4ded-b561-4ed237712906" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T012950Z:4a258131-53e9-4ded-b561-4ed237712906" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:40:31 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:29:49 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "134" ], + "Content-Length": [ "2920" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:36:28.9055583+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"31733da8-58a4-4357-90ee-8cfff1f842be\"\r\n}" + "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"WebRole_IN_0\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WebRole_IN_1\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_0\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WorkerRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WorkerRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_1\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WorkerRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WorkerRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n }\r\n ]\r\n}", + "isContentBase64": false } }, - "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/31733da8-58a4-4357-90ee-8cfff1f842be?api-version=2020-10-01-preview+11": { + "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance via identity+$POST+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0/restart?api-version=2021-03-01+2": { "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/31733da8-58a4-4357-90ee-8cfff1f842be?api-version=2020-10-01-preview", + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/roleInstances/WebRole_IN_0/restart?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "14" ], - "x-ms-client-request-id": [ "005aca8a-7184-4c2a-a1c6-cd8bf5f193ca" ], + "x-ms-unique-id": [ "111" ], + "x-ms-client-request-id": [ "6f61c086-64a4-453f-982c-a2677305177a" ], "CommandName": [ "Restart-AzCloudServiceRoleInstance" ], "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_RestartViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { } }, "Response": { - "StatusCode": 200, + "StatusCode": 202, "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/59c40f35-451f-4048-a955-30eb06dd14d3?monitor=true\u0026api-version=2021-03-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/59c40f35-451f-4048-a955-30eb06dd14d3?api-version=2021-03-01" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "ac35d517-2a15-498d-9438-522ffe3efcb8" ], - "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], - "x-ms-correlation-request-id": [ "6f2a6977-63f9-41b7-8a8d-c3616d84a2d1" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T114101Z:6f2a6977-63f9-41b7-8a8d-c3616d84a2d1" ], + "x-ms-request-id": [ "59c40f35-451f-4048-a955-30eb06dd14d3" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/CreateUpdateDeleteCloudServiceOperations30Min;286" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1188" ], + "x-ms-correlation-request-id": [ "4f5afdbd-a31a-4f14-9349-35ad2c2ca302" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T012950Z:4f5afdbd-a31a-4f14-9349-35ad2c2ca302" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:41:01 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:29:49 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "134" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] + "Expires": [ "-1" ], + "Content-Length": [ "0" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:36:28.9055583+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"31733da8-58a4-4357-90ee-8cfff1f842be\"\r\n}" + "Content": null, + "isContentBase64": false } }, - "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/31733da8-58a4-4357-90ee-8cfff1f842be?api-version=2020-10-01-preview+12": { + "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/59c40f35-451f-4048-a955-30eb06dd14d3?api-version=2021-03-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/31733da8-58a4-4357-90ee-8cfff1f842be?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/59c40f35-451f-4048-a955-30eb06dd14d3?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "15" ], - "x-ms-client-request-id": [ "005aca8a-7184-4c2a-a1c6-cd8bf5f193ca" ], + "x-ms-unique-id": [ "112" ], + "x-ms-client-request-id": [ "6f61c086-64a4-453f-982c-a2677305177a" ], "CommandName": [ "Restart-AzCloudServiceRoleInstance" ], "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_RestartViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -580,32 +486,34 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "09854995-1082-4d5b-8894-932e6e3de331" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "0af79742-0ae8-41df-bf88-d14b08e04b53" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-correlation-request-id": [ "293f5578-b0b7-4860-b977-939664a78a05" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T114132Z:293f5578-b0b7-4860-b977-939664a78a05" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11891" ], + "x-ms-correlation-request-id": [ "b01093f7-20be-4081-a310-9ed44d844e64" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T013021Z:b01093f7-20be-4081-a310-9ed44d844e64" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:41:31 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:30:21 GMT" ] }, "ContentHeaders": { "Content-Length": [ "184" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:36:28.9055583+00:00\",\r\n \"endTime\": \"2021-01-26T11:41:21.8789744+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"31733da8-58a4-4357-90ee-8cfff1f842be\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:29:50.7175518+00:00\",\r\n \"endTime\": \"2021-03-26T01:30:06.0477407+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"59c40f35-451f-4048-a955-30eb06dd14d3\"\r\n}", + "isContentBase64": false } }, - "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/31733da8-58a4-4357-90ee-8cfff1f842be?monitor=true\u0026api-version=2020-10-01-preview+13": { + "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/59c40f35-451f-4048-a955-30eb06dd14d3?monitor=true\u0026api-version=2021-03-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/31733da8-58a4-4357-90ee-8cfff1f842be?monitor=true\u0026api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/59c40f35-451f-4048-a955-30eb06dd14d3?monitor=true\u0026api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "16" ], - "x-ms-client-request-id": [ "005aca8a-7184-4c2a-a1c6-cd8bf5f193ca" ], + "x-ms-unique-id": [ "113" ], + "x-ms-client-request-id": [ "6f61c086-64a4-453f-982c-a2677305177a" ], "CommandName": [ "Restart-AzCloudServiceRoleInstance" ], "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_RestartViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -620,20 +528,21 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "cd154776-7949-4d51-a903-eaf2927d11ef" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "a649f138-79c1-4355-861c-3af1254565bd" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], - "x-ms-correlation-request-id": [ "88b20d01-421d-4805-9580-fc759d4b8435" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T114132Z:88b20d01-421d-4805-9580-fc759d4b8435" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11890" ], + "x-ms-correlation-request-id": [ "0ab4b049-c20c-41a9-8b4b-57ab70c818a4" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T013021Z:0ab4b049-c20c-41a9-8b4b-57ab70c818a4" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:41:32 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:30:21 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], "Content-Length": [ "0" ] }, - "Content": null + "Content": null, + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/CloudService/test/Start-AzCloudService.Recording.json b/src/CloudService/test/Start-AzCloudService.Recording.json index b0e6583345d0..abf174eea11f 100644 --- a/src/CloudService/test/Start-AzCloudService.Recording.json +++ b/src/CloudService/test/Start-AzCloudService.Recording.json @@ -1,12 +1,13 @@ { - "Start-AzCloudService+[NoContext]+Start cloud service+$POST+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/start?api-version=2020-10-01-preview+1": { + "Start-AzCloudService+[NoContext]+Start cloud service+$POST+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/start?api-version=2021-03-01+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/start?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/start?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "1" ], - "x-ms-client-request-id": [ "da494c72-b515-4eb7-a417-399b76ae131a" ], + "x-ms-unique-id": [ "114" ], + "x-ms-client-request-id": [ "ccfa3d47-aa61-45ee-844a-e12a433de09e" ], "CommandName": [ "Start-AzCloudService" ], "FullCommandName": [ "Start-AzCloudService_Start" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -21,33 +22,36 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/4f4f2193-f976-4eb5-b850-dbd2f934306a?monitor=true\u0026api-version=2020-10-01-preview" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/4f4f2193-f976-4eb5-b850-dbd2f934306a?api-version=2020-10-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c5cff8f2-1c68-4d03-8494-30f98b993d3a?monitor=true\u0026api-version=2021-03-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c5cff8f2-1c68-4d03-8494-30f98b993d3a?api-version=2021-03-01" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "4f4f2193-f976-4eb5-b850-dbd2f934306a" ], + "x-ms-request-id": [ "c5cff8f2-1c68-4d03-8494-30f98b993d3a" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/CreateUpdateDeleteCloudServiceOperations30Min;286" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], - "x-ms-correlation-request-id": [ "5de56358-199f-4441-8661-d82713f2b6a1" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T113203Z:5de56358-199f-4441-8661-d82713f2b6a1" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1187" ], + "x-ms-correlation-request-id": [ "8ebf8e36-dcb9-4c7b-8484-e13ce5fcbc2f" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T013023Z:8ebf8e36-dcb9-4c7b-8484-e13ce5fcbc2f" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:32:02 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:30:22 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], "Content-Length": [ "0" ] }, - "Content": null + "Content": null, + "isContentBase64": false } }, - "Start-AzCloudService+[NoContext]+Start cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/4f4f2193-f976-4eb5-b850-dbd2f934306a?api-version=2020-10-01-preview+2": { + "Start-AzCloudService+[NoContext]+Start cloud service+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c5cff8f2-1c68-4d03-8494-30f98b993d3a?api-version=2021-03-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/4f4f2193-f976-4eb5-b850-dbd2f934306a?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c5cff8f2-1c68-4d03-8494-30f98b993d3a?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "2" ], - "x-ms-client-request-id": [ "da494c72-b515-4eb7-a417-399b76ae131a" ], + "x-ms-unique-id": [ "115" ], + "x-ms-client-request-id": [ "ccfa3d47-aa61-45ee-844a-e12a433de09e" ], "CommandName": [ "Start-AzCloudService" ], "FullCommandName": [ "Start-AzCloudService_Start" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -62,32 +66,34 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "071fbea4-9b02-474c-9bb6-f600019c0fac" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "ce0b2bbb-243c-42a0-ac9d-f59898dd4899" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], - "x-ms-correlation-request-id": [ "793b7fdf-9f08-4f0b-b5ae-512641bf773a" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T113233Z:793b7fdf-9f08-4f0b-b5ae-512641bf773a" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11889" ], + "x-ms-correlation-request-id": [ "24f7fc37-eb7d-458a-a008-faae982759d9" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T013053Z:24f7fc37-eb7d-458a-a008-faae982759d9" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:32:33 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:30:53 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "134" ], + "Content-Length": [ "184" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:32:03.0362988+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"4f4f2193-f976-4eb5-b850-dbd2f934306a\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:30:22.8558075+00:00\",\r\n \"endTime\": \"2021-03-26T01:30:38.2081248+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"c5cff8f2-1c68-4d03-8494-30f98b993d3a\"\r\n}", + "isContentBase64": false } }, - "Start-AzCloudService+[NoContext]+Start cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/4f4f2193-f976-4eb5-b850-dbd2f934306a?api-version=2020-10-01-preview+3": { + "Start-AzCloudService+[NoContext]+Start cloud service+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c5cff8f2-1c68-4d03-8494-30f98b993d3a?monitor=true\u0026api-version=2021-03-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/4f4f2193-f976-4eb5-b850-dbd2f934306a?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c5cff8f2-1c68-4d03-8494-30f98b993d3a?monitor=true\u0026api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "3" ], - "x-ms-client-request-id": [ "da494c72-b515-4eb7-a417-399b76ae131a" ], + "x-ms-unique-id": [ "116" ], + "x-ms-client-request-id": [ "ccfa3d47-aa61-45ee-844a-e12a433de09e" ], "CommandName": [ "Start-AzCloudService" ], "FullCommandName": [ "Start-AzCloudService_Start" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -102,36 +108,37 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "0876d622-f5bf-4c5d-8ec2-e3f78b83ec32" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "1cf013f4-8330-48f1-87da-158d55e259b4" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], - "x-ms-correlation-request-id": [ "24eb9add-8298-4415-a7d7-8c9fb09ff72c" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T113304Z:24eb9add-8298-4415-a7d7-8c9fb09ff72c" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11888" ], + "x-ms-correlation-request-id": [ "35f732ae-30d0-4051-8188-df65b188d3d8" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T013053Z:35f732ae-30d0-4051-8188-df65b188d3d8" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:33:03 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:30:53 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "134" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] + "Expires": [ "-1" ], + "Content-Length": [ "0" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:32:03.0362988+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"4f4f2193-f976-4eb5-b850-dbd2f934306a\"\r\n}" + "Content": null, + "isContentBase64": false } }, - "Start-AzCloudService+[NoContext]+Start cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/4f4f2193-f976-4eb5-b850-dbd2f934306a?api-version=2020-10-01-preview+4": { + "Start-AzCloudService+[NoContext]+Start cloud service via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k?api-version=2021-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/4f4f2193-f976-4eb5-b850-dbd2f934306a?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "4" ], - "x-ms-client-request-id": [ "da494c72-b515-4eb7-a417-399b76ae131a" ], - "CommandName": [ "Start-AzCloudService" ], - "FullCommandName": [ "Start-AzCloudService_Start" ], + "x-ms-unique-id": [ "117" ], + "x-ms-client-request-id": [ "2e688291-876f-45f9-829b-fc194d982997" ], + "CommandName": [ "Get-AzCloudService" ], + "FullCommandName": [ "Get-AzCloudService_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { } @@ -142,34 +149,79 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "bf448845-e788-4368-988a-f54761b5d7f2" ], - "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], - "x-ms-correlation-request-id": [ "88860e8a-ba1a-4394-b03c-2a153b5ba5cc" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T113334Z:88860e8a-ba1a-4394-b03c-2a153b5ba5cc" ], + "x-ms-request-id": [ "e63028c7-30ed-42dc-b384-ac626b1ed57f" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/GetCloudService3Min;395,Microsoft.Compute/GetCloudService30Min;2561" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11887" ], + "x-ms-correlation-request-id": [ "a9be0623-44d9-429e-931d-45d24d32b0d7" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T013054Z:a9be0623-44d9-429e-931d-45d24d32b0d7" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:33:33 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:30:53 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "134" ], + "Content-Length": [ "3522" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:32:03.0362988+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"4f4f2193-f976-4eb5-b850-dbd2f934306a\"\r\n}" + "Content": "{\r\n \"name\": \"cscmdlettestoe6r0n2k\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Auto\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"name\": \"GenevaExtension\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Succeeded\",\r\n \"rolesAppliedTo\": [\r\n \"*\"\r\n ],\r\n \"publisher\": \"Microsoft.Azure.Geneva\",\r\n \"type\": \"GenevaMonitoringPaaS\",\r\n \"typeHandlerVersion\": \"2.14.0.2\",\r\n \"settings\": \"\"\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"25056192-64fb-42b6-b81f-37e6b25c1515\"\r\n }\r\n}", + "isContentBase64": false } }, - "Start-AzCloudService+[NoContext]+Start cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/4f4f2193-f976-4eb5-b850-dbd2f934306a?api-version=2020-10-01-preview+5": { + "Start-AzCloudService+[NoContext]+Start cloud service via identity+$POST+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/start?api-version=2021-03-01+2": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/start?api-version=2021-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "118" ], + "x-ms-client-request-id": [ "1787487c-ded9-4368-8cec-1a5bdbcae753" ], + "CommandName": [ "Start-AzCloudService" ], + "FullCommandName": [ "Start-AzCloudService_StartViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/bc278e1c-5a70-4794-a763-5da317f5b64b?monitor=true\u0026api-version=2021-03-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/bc278e1c-5a70-4794-a763-5da317f5b64b?api-version=2021-03-01" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "bc278e1c-5a70-4794-a763-5da317f5b64b" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/CreateUpdateDeleteCloudServiceOperations30Min;285" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1186" ], + "x-ms-correlation-request-id": [ "8d3af2aa-4f20-46db-b258-be764db08878" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T013103Z:8d3af2aa-4f20-46db-b258-be764db08878" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 26 Mar 2021 01:31:04 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Start-AzCloudService+[NoContext]+Start cloud service via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/bc278e1c-5a70-4794-a763-5da317f5b64b?api-version=2021-03-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/4f4f2193-f976-4eb5-b850-dbd2f934306a?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/bc278e1c-5a70-4794-a763-5da317f5b64b?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "5" ], - "x-ms-client-request-id": [ "da494c72-b515-4eb7-a417-399b76ae131a" ], + "x-ms-unique-id": [ "119" ], + "x-ms-client-request-id": [ "1787487c-ded9-4368-8cec-1a5bdbcae753" ], "CommandName": [ "Start-AzCloudService" ], - "FullCommandName": [ "Start-AzCloudService_Start" ], + "FullCommandName": [ "Start-AzCloudService_StartViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] }, @@ -182,34 +234,36 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "63d3c13f-234b-4ffd-b547-e4c6fbf699b4" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "a03bf7ad-4291-43c2-9173-1680d2f03334" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], - "x-ms-correlation-request-id": [ "cb22a8cc-a60b-4443-bfb0-de6f0294904a" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T113404Z:cb22a8cc-a60b-4443-bfb0-de6f0294904a" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11886" ], + "x-ms-correlation-request-id": [ "12d00200-4dfd-4176-9f53-959f5362d692" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T013136Z:12d00200-4dfd-4176-9f53-959f5362d692" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:34:04 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:31:35 GMT" ] }, "ContentHeaders": { "Content-Length": [ "134" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:32:03.0362988+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"4f4f2193-f976-4eb5-b850-dbd2f934306a\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:30:59.1835418+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"bc278e1c-5a70-4794-a763-5da317f5b64b\"\r\n}", + "isContentBase64": false } }, - "Start-AzCloudService+[NoContext]+Start cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/4f4f2193-f976-4eb5-b850-dbd2f934306a?api-version=2020-10-01-preview+6": { + "Start-AzCloudService+[NoContext]+Start cloud service via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/bc278e1c-5a70-4794-a763-5da317f5b64b?api-version=2021-03-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/4f4f2193-f976-4eb5-b850-dbd2f934306a?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/bc278e1c-5a70-4794-a763-5da317f5b64b?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "6" ], - "x-ms-client-request-id": [ "da494c72-b515-4eb7-a417-399b76ae131a" ], + "x-ms-unique-id": [ "120" ], + "x-ms-client-request-id": [ "1787487c-ded9-4368-8cec-1a5bdbcae753" ], "CommandName": [ "Start-AzCloudService" ], - "FullCommandName": [ "Start-AzCloudService_Start" ], + "FullCommandName": [ "Start-AzCloudService_StartViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] }, @@ -222,34 +276,36 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "bdb1b487-b9b2-4508-a6b7-ea656c802987" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "d7632794-b275-4794-b584-03515e119bd8" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], - "x-ms-correlation-request-id": [ "2f810fe8-1047-460e-937e-0070878bcb49" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T113435Z:2f810fe8-1047-460e-937e-0070878bcb49" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11885" ], + "x-ms-correlation-request-id": [ "d864950b-b58c-4031-8a75-98485447db68" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T013208Z:d864950b-b58c-4031-8a75-98485447db68" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:34:34 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:32:08 GMT" ] }, "ContentHeaders": { "Content-Length": [ "134" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:32:03.0362988+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"4f4f2193-f976-4eb5-b850-dbd2f934306a\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:30:59.1835418+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"bc278e1c-5a70-4794-a763-5da317f5b64b\"\r\n}", + "isContentBase64": false } }, - "Start-AzCloudService+[NoContext]+Start cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/4f4f2193-f976-4eb5-b850-dbd2f934306a?api-version=2020-10-01-preview+7": { + "Start-AzCloudService+[NoContext]+Start cloud service via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/bc278e1c-5a70-4794-a763-5da317f5b64b?api-version=2021-03-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/4f4f2193-f976-4eb5-b850-dbd2f934306a?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/bc278e1c-5a70-4794-a763-5da317f5b64b?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "7" ], - "x-ms-client-request-id": [ "da494c72-b515-4eb7-a417-399b76ae131a" ], + "x-ms-unique-id": [ "121" ], + "x-ms-client-request-id": [ "1787487c-ded9-4368-8cec-1a5bdbcae753" ], "CommandName": [ "Start-AzCloudService" ], - "FullCommandName": [ "Start-AzCloudService_Start" ], + "FullCommandName": [ "Start-AzCloudService_StartViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] }, @@ -262,34 +318,36 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "2a88fad6-758a-4617-8e0e-3403b3d7911c" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "516e0f3c-441e-4406-a2b8-8d91b06ad056" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], - "x-ms-correlation-request-id": [ "a0f7d73f-f7d7-481e-88ec-0b84880368f7" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T113505Z:a0f7d73f-f7d7-481e-88ec-0b84880368f7" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11884" ], + "x-ms-correlation-request-id": [ "35ece202-ab55-4e14-9315-41890401a499" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T013239Z:35ece202-ab55-4e14-9315-41890401a499" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:35:04 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:32:38 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "184" ], + "Content-Length": [ "134" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:32:03.0362988+00:00\",\r\n \"endTime\": \"2021-01-26T11:35:05.0235319+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"4f4f2193-f976-4eb5-b850-dbd2f934306a\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:30:59.1835418+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"bc278e1c-5a70-4794-a763-5da317f5b64b\"\r\n}", + "isContentBase64": false } }, - "Start-AzCloudService+[NoContext]+Start cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/4f4f2193-f976-4eb5-b850-dbd2f934306a?monitor=true\u0026api-version=2020-10-01-preview+8": { + "Start-AzCloudService+[NoContext]+Start cloud service via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/bc278e1c-5a70-4794-a763-5da317f5b64b?api-version=2021-03-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/4f4f2193-f976-4eb5-b850-dbd2f934306a?monitor=true\u0026api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/bc278e1c-5a70-4794-a763-5da317f5b64b?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "8" ], - "x-ms-client-request-id": [ "da494c72-b515-4eb7-a417-399b76ae131a" ], + "x-ms-unique-id": [ "122" ], + "x-ms-client-request-id": [ "1787487c-ded9-4368-8cec-1a5bdbcae753" ], "CommandName": [ "Start-AzCloudService" ], - "FullCommandName": [ "Start-AzCloudService_Start" ], + "FullCommandName": [ "Start-AzCloudService_StartViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] }, @@ -302,35 +360,38 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "b780e204-cbb4-45fc-a32d-b469f575b7e8" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "e2912ba3-921b-4416-9784-13c619de8364" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], - "x-ms-correlation-request-id": [ "82fb571d-0c28-4025-9743-bd76968627c5" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T113505Z:82fb571d-0c28-4025-9743-bd76968627c5" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11883" ], + "x-ms-correlation-request-id": [ "1cc4c3d6-0da0-436f-bf73-d479e6f230e1" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T013309Z:1cc4c3d6-0da0-436f-bf73-d479e6f230e1" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:35:05 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:33:08 GMT" ] }, "ContentHeaders": { - "Expires": [ "-1" ], - "Content-Length": [ "0" ] + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] }, - "Content": null + "Content": "{\r\n \"startTime\": \"2021-03-26T01:30:59.1835418+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"bc278e1c-5a70-4794-a763-5da317f5b64b\"\r\n}", + "isContentBase64": false } }, - "Start-AzCloudService+[NoContext]+Start cloud service via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft?api-version=2020-10-01-preview+1": { + "Start-AzCloudService+[NoContext]+Start cloud service via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/bc278e1c-5a70-4794-a763-5da317f5b64b?api-version=2021-03-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/bc278e1c-5a70-4794-a763-5da317f5b64b?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "9" ], - "x-ms-client-request-id": [ "b421b1af-6332-4853-b68d-d1463496e0e8" ], - "CommandName": [ "Get-AzCloudService" ], - "FullCommandName": [ "Get-AzCloudService_Get" ], + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "123" ], + "x-ms-client-request-id": [ "1787487c-ded9-4368-8cec-1a5bdbcae753" ], + "CommandName": [ "Start-AzCloudService" ], + "FullCommandName": [ "Start-AzCloudService_StartViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] }, "ContentHeaders": { } @@ -341,71 +402,76 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "4401872e-a83d-4e5a-b4f7-6f0de890bd4d" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], - "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-correlation-request-id": [ "3ee1d39b-ebaa-41f9-830c-0b186dbf724b" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T113506Z:3ee1d39b-ebaa-41f9-830c-0b186dbf724b" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "bc444b59-60c3-44c5-950b-935b9e5cd4e7" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11882" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-correlation-request-id": [ "02e5848c-529e-43c1-b198-9cbaea133356" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T013339Z:02e5848c-529e-43c1-b198-9cbaea133356" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:35:05 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:33:39 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "3021" ], + "Content-Length": [ "134" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"name\": \"cscmdlettest1p3wg7ft\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Auto\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip\"}}}]}}]},\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"00541f30-ad0f-4939-86c9-178056f1b29a\"\r\n }\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:30:59.1835418+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"bc278e1c-5a70-4794-a763-5da317f5b64b\"\r\n}", + "isContentBase64": false } }, - "Start-AzCloudService+[NoContext]+Start cloud service via identity+$POST+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/start?api-version=2020-10-01-preview+2": { + "Start-AzCloudService+[NoContext]+Start cloud service via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/bc278e1c-5a70-4794-a763-5da317f5b64b?api-version=2021-03-01+8": { "Request": { - "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/start?api-version=2020-10-01-preview", + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/bc278e1c-5a70-4794-a763-5da317f5b64b?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "10" ], - "x-ms-client-request-id": [ "91ab6e86-3b18-481e-bbf5-3e270519aaa7" ], + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "124" ], + "x-ms-client-request-id": [ "1787487c-ded9-4368-8cec-1a5bdbcae753" ], "CommandName": [ "Start-AzCloudService" ], "FullCommandName": [ "Start-AzCloudService_StartViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] }, "ContentHeaders": { } }, "Response": { - "StatusCode": 202, + "StatusCode": 200, "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/de544088-9f27-4623-86a9-8b1503a3c3e9?monitor=true\u0026api-version=2020-10-01-preview" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/de544088-9f27-4623-86a9-8b1503a3c3e9?api-version=2020-10-01-preview" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "de544088-9f27-4623-86a9-8b1503a3c3e9" ], - "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], - "x-ms-correlation-request-id": [ "989eb2b1-4a79-4a29-b2ef-edd99a42dbd6" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T113507Z:989eb2b1-4a79-4a29-b2ef-edd99a42dbd6" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "898209d6-f11b-4b3f-b9d2-00c417dc1b48" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11881" ], + "x-ms-correlation-request-id": [ "48f06ff5-f62e-4195-8502-a4d54e0c4a2c" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T013413Z:48f06ff5-f62e-4195-8502-a4d54e0c4a2c" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:35:06 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:34:12 GMT" ] }, "ContentHeaders": { - "Expires": [ "-1" ], - "Content-Length": [ "0" ] + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] }, - "Content": null + "Content": "{\r\n \"startTime\": \"2021-03-26T01:30:59.1835418+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"bc278e1c-5a70-4794-a763-5da317f5b64b\"\r\n}", + "isContentBase64": false } }, - "Start-AzCloudService+[NoContext]+Start cloud service via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/de544088-9f27-4623-86a9-8b1503a3c3e9?api-version=2020-10-01-preview+3": { + "Start-AzCloudService+[NoContext]+Start cloud service via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/bc278e1c-5a70-4794-a763-5da317f5b64b?api-version=2021-03-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/de544088-9f27-4623-86a9-8b1503a3c3e9?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/bc278e1c-5a70-4794-a763-5da317f5b64b?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "11" ], - "x-ms-client-request-id": [ "91ab6e86-3b18-481e-bbf5-3e270519aaa7" ], + "x-ms-unique-id": [ "125" ], + "x-ms-client-request-id": [ "1787487c-ded9-4368-8cec-1a5bdbcae753" ], "CommandName": [ "Start-AzCloudService" ], "FullCommandName": [ "Start-AzCloudService_StartViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -420,32 +486,34 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "8707a736-fade-4ced-be3b-2f64f862221d" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "177b4ff7-fe1c-4aa7-89f2-cbd6b869c476" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], - "x-ms-correlation-request-id": [ "dd8b7d99-1dff-43f4-9396-68a793c8c6f8" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T113537Z:dd8b7d99-1dff-43f4-9396-68a793c8c6f8" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11880" ], + "x-ms-correlation-request-id": [ "b4e97a24-e6cb-4cc2-9af4-89b136b1f435" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T013444Z:b4e97a24-e6cb-4cc2-9af4-89b136b1f435" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:35:37 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:34:43 GMT" ] }, "ContentHeaders": { "Content-Length": [ "184" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:35:07.0276055+00:00\",\r\n \"endTime\": \"2021-01-26T11:35:22.3661059+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"de544088-9f27-4623-86a9-8b1503a3c3e9\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:30:59.1835418+00:00\",\r\n \"endTime\": \"2021-03-26T01:34:27.4255133+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"bc278e1c-5a70-4794-a763-5da317f5b64b\"\r\n}", + "isContentBase64": false } }, - "Start-AzCloudService+[NoContext]+Start cloud service via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/de544088-9f27-4623-86a9-8b1503a3c3e9?monitor=true\u0026api-version=2020-10-01-preview+4": { + "Start-AzCloudService+[NoContext]+Start cloud service via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/bc278e1c-5a70-4794-a763-5da317f5b64b?monitor=true\u0026api-version=2021-03-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/de544088-9f27-4623-86a9-8b1503a3c3e9?monitor=true\u0026api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/bc278e1c-5a70-4794-a763-5da317f5b64b?monitor=true\u0026api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "12" ], - "x-ms-client-request-id": [ "91ab6e86-3b18-481e-bbf5-3e270519aaa7" ], + "x-ms-unique-id": [ "126" ], + "x-ms-client-request-id": [ "1787487c-ded9-4368-8cec-1a5bdbcae753" ], "CommandName": [ "Start-AzCloudService" ], "FullCommandName": [ "Start-AzCloudService_StartViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -460,20 +528,21 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "6107e24c-190e-4311-ae60-c789ec60ab8d" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "949da909-4f4b-4025-ab77-771a263e9bf1" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], - "x-ms-correlation-request-id": [ "5a175260-13d5-4dd1-a748-e5c1c68c35fd" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T113537Z:5a175260-13d5-4dd1-a748-e5c1c68c35fd" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11879" ], + "x-ms-correlation-request-id": [ "bdf67875-6e02-43fa-9650-de2e1f446df6" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T013444Z:bdf67875-6e02-43fa-9650-de2e1f446df6" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:35:37 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:34:43 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], "Content-Length": [ "0" ] }, - "Content": null + "Content": null, + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/CloudService/test/Stop-AzCloudService.Recording.json b/src/CloudService/test/Stop-AzCloudService.Recording.json index 91917bdd4821..cd413bfa0ef0 100644 --- a/src/CloudService/test/Stop-AzCloudService.Recording.json +++ b/src/CloudService/test/Stop-AzCloudService.Recording.json @@ -1,12 +1,13 @@ { - "Stop-AzCloudService+[NoContext]+PowerOff/Stop cloud service+$POST+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/poweroff?api-version=2020-10-01-preview+1": { + "Stop-AzCloudService+[NoContext]+PowerOff/Stop cloud service+$POST+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/poweroff?api-version=2021-03-01+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/poweroff?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/poweroff?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "1" ], - "x-ms-client-request-id": [ "43c226c1-86c0-42f3-9606-db74af720631" ], + "x-ms-unique-id": [ "127" ], + "x-ms-client-request-id": [ "9730d011-f456-4514-af74-680dbba965e9" ], "CommandName": [ "Stop-AzCloudService" ], "FullCommandName": [ "Stop-AzCloudService_PowerOff" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -21,33 +22,36 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/42c628a9-c501-42a8-829e-d5df29918da4?monitor=true\u0026api-version=2020-10-01-preview" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/42c628a9-c501-42a8-829e-d5df29918da4?api-version=2020-10-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/fa832dfb-5372-4042-b83a-15a55479f7d0?monitor=true\u0026api-version=2021-03-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/fa832dfb-5372-4042-b83a-15a55479f7d0?api-version=2021-03-01" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "42c628a9-c501-42a8-829e-d5df29918da4" ], + "x-ms-request-id": [ "fa832dfb-5372-4042-b83a-15a55479f7d0" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/CreateUpdateDeleteCloudServiceOperations30Min;284" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], - "x-ms-correlation-request-id": [ "0620f462-853e-475c-9959-5c3dfe4d93ac" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T112917Z:0620f462-853e-475c-9959-5c3dfe4d93ac" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1185" ], + "x-ms-correlation-request-id": [ "55f821ca-d423-4d83-9f25-c22763dadd7c" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T013454Z:55f821ca-d423-4d83-9f25-c22763dadd7c" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:29:16 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:34:54 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], "Content-Length": [ "0" ] }, - "Content": null + "Content": null, + "isContentBase64": false } }, - "Stop-AzCloudService+[NoContext]+PowerOff/Stop cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/42c628a9-c501-42a8-829e-d5df29918da4?api-version=2020-10-01-preview+2": { + "Stop-AzCloudService+[NoContext]+PowerOff/Stop cloud service+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/fa832dfb-5372-4042-b83a-15a55479f7d0?api-version=2021-03-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/42c628a9-c501-42a8-829e-d5df29918da4?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/fa832dfb-5372-4042-b83a-15a55479f7d0?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "2" ], - "x-ms-client-request-id": [ "43c226c1-86c0-42f3-9606-db74af720631" ], + "x-ms-unique-id": [ "128" ], + "x-ms-client-request-id": [ "9730d011-f456-4514-af74-680dbba965e9" ], "CommandName": [ "Stop-AzCloudService" ], "FullCommandName": [ "Stop-AzCloudService_PowerOff" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -62,32 +66,34 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "ec29d2ae-d75d-484c-af0c-7240204eeca2" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "cc0df563-a59c-464a-92a1-db0ee476b488" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], - "x-ms-correlation-request-id": [ "1ace959e-7550-43a1-a229-efe50d4eadaa" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T112947Z:1ace959e-7550-43a1-a229-efe50d4eadaa" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11878" ], + "x-ms-correlation-request-id": [ "ab8b6000-590f-423d-a949-5fe60776bc71" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T013526Z:ab8b6000-590f-423d-a949-5fe60776bc71" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:29:47 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:35:26 GMT" ] }, "ContentHeaders": { "Content-Length": [ "134" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:29:16.9970039+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"42c628a9-c501-42a8-829e-d5df29918da4\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:34:52.8923857+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"fa832dfb-5372-4042-b83a-15a55479f7d0\"\r\n}", + "isContentBase64": false } }, - "Stop-AzCloudService+[NoContext]+PowerOff/Stop cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/42c628a9-c501-42a8-829e-d5df29918da4?api-version=2020-10-01-preview+3": { + "Stop-AzCloudService+[NoContext]+PowerOff/Stop cloud service+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/fa832dfb-5372-4042-b83a-15a55479f7d0?api-version=2021-03-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/42c628a9-c501-42a8-829e-d5df29918da4?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/fa832dfb-5372-4042-b83a-15a55479f7d0?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "3" ], - "x-ms-client-request-id": [ "43c226c1-86c0-42f3-9606-db74af720631" ], + "x-ms-unique-id": [ "129" ], + "x-ms-client-request-id": [ "9730d011-f456-4514-af74-680dbba965e9" ], "CommandName": [ "Stop-AzCloudService" ], "FullCommandName": [ "Stop-AzCloudService_PowerOff" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -102,32 +108,34 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "61cb18c4-cc51-4484-9a66-b0f549af469e" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "924aca9a-fe11-4f24-9ec3-c91fa403b671" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], - "x-ms-correlation-request-id": [ "bdf32da5-0f89-44ab-9647-b441805845ee" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T113018Z:bdf32da5-0f89-44ab-9647-b441805845ee" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11877" ], + "x-ms-correlation-request-id": [ "969068ba-50a1-4124-9a5b-32cb8412859e" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T013557Z:969068ba-50a1-4124-9a5b-32cb8412859e" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:30:18 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:35:56 GMT" ] }, "ContentHeaders": { "Content-Length": [ "184" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:29:16.9970039+00:00\",\r\n \"endTime\": \"2021-01-26T11:30:17.8646279+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"42c628a9-c501-42a8-829e-d5df29918da4\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:34:52.8923857+00:00\",\r\n \"endTime\": \"2021-03-26T01:35:48.6573018+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"fa832dfb-5372-4042-b83a-15a55479f7d0\"\r\n}", + "isContentBase64": false } }, - "Stop-AzCloudService+[NoContext]+PowerOff/Stop cloud service+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/42c628a9-c501-42a8-829e-d5df29918da4?monitor=true\u0026api-version=2020-10-01-preview+4": { + "Stop-AzCloudService+[NoContext]+PowerOff/Stop cloud service+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/fa832dfb-5372-4042-b83a-15a55479f7d0?monitor=true\u0026api-version=2021-03-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/42c628a9-c501-42a8-829e-d5df29918da4?monitor=true\u0026api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/fa832dfb-5372-4042-b83a-15a55479f7d0?monitor=true\u0026api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "4" ], - "x-ms-client-request-id": [ "43c226c1-86c0-42f3-9606-db74af720631" ], + "x-ms-unique-id": [ "130" ], + "x-ms-client-request-id": [ "9730d011-f456-4514-af74-680dbba965e9" ], "CommandName": [ "Stop-AzCloudService" ], "FullCommandName": [ "Stop-AzCloudService_PowerOff" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -142,30 +150,32 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "69564e39-cd63-4a31-a71c-1303c8f46f43" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "1f28b6f5-8f3f-411a-ae5f-2d148a85596f" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], - "x-ms-correlation-request-id": [ "ba2ba89c-43e5-4e4a-a7e9-6dd82a764307" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T113018Z:ba2ba89c-43e5-4e4a-a7e9-6dd82a764307" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11876" ], + "x-ms-correlation-request-id": [ "e7132866-1bfc-4571-8e24-d17108023a39" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T013558Z:e7132866-1bfc-4571-8e24-d17108023a39" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:30:18 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:35:57 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], "Content-Length": [ "0" ] }, - "Content": null + "Content": null, + "isContentBase64": false } }, - "Stop-AzCloudService+[NoContext]+PowerOff/Stop cloud service via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft?api-version=2020-10-01-preview+1": { + "Stop-AzCloudService+[NoContext]+PowerOff/Stop cloud service via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k?api-version=2021-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "5" ], - "x-ms-client-request-id": [ "09820a17-78dc-4ff9-8be9-c3af47796807" ], + "x-ms-unique-id": [ "131" ], + "x-ms-client-request-id": [ "71a767fd-73d0-497c-a234-751521c36dbc" ], "CommandName": [ "Get-AzCloudService" ], "FullCommandName": [ "Get-AzCloudService_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -181,30 +191,33 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "d7eabf33-5e27-4a94-aac2-9dff482e9bc5" ], + "x-ms-request-id": [ "9423fbec-eaaf-4aad-b16d-7bd34c451450" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/GetCloudService3Min;397,Microsoft.Compute/GetCloudService30Min;2578" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], - "x-ms-correlation-request-id": [ "089eb2fe-dc03-426c-83be-f48628062576" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T113019Z:089eb2fe-dc03-426c-83be-f48628062576" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11875" ], + "x-ms-correlation-request-id": [ "ebe644cd-76d0-4ed7-b0fe-c4b786f4fe7a" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T013559Z:ebe644cd-76d0-4ed7-b0fe-c4b786f4fe7a" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:30:18 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:35:59 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "3021" ], + "Content-Length": [ "3522" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"name\": \"cscmdlettest1p3wg7ft\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Auto\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip\"}}}]}}]},\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"00541f30-ad0f-4939-86c9-178056f1b29a\"\r\n }\r\n}" + "Content": "{\r\n \"name\": \"cscmdlettestoe6r0n2k\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Auto\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"name\": \"GenevaExtension\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Succeeded\",\r\n \"rolesAppliedTo\": [\r\n \"*\"\r\n ],\r\n \"publisher\": \"Microsoft.Azure.Geneva\",\r\n \"type\": \"GenevaMonitoringPaaS\",\r\n \"typeHandlerVersion\": \"2.14.0.2\",\r\n \"settings\": \"\"\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"25056192-64fb-42b6-b81f-37e6b25c1515\"\r\n }\r\n}", + "isContentBase64": false } }, - "Stop-AzCloudService+[NoContext]+PowerOff/Stop cloud service via identity+$POST+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/poweroff?api-version=2020-10-01-preview+2": { + "Stop-AzCloudService+[NoContext]+PowerOff/Stop cloud service via identity+$POST+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/poweroff?api-version=2021-03-01+2": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft/poweroff?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k/poweroff?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "6" ], - "x-ms-client-request-id": [ "225d8f83-336f-403c-a365-6215166d434a" ], + "x-ms-unique-id": [ "132" ], + "x-ms-client-request-id": [ "31f86d6e-3bd1-427b-9d47-d2cb10030988" ], "CommandName": [ "Stop-AzCloudService" ], "FullCommandName": [ "Stop-AzCloudService_PowerOffViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -219,33 +232,36 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1a14cc50-7e35-48c2-aa3f-82f41c406abd?monitor=true\u0026api-version=2020-10-01-preview" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1a14cc50-7e35-48c2-aa3f-82f41c406abd?api-version=2020-10-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/7d7db8ec-6efc-4eb4-9547-f87c44669057?monitor=true\u0026api-version=2021-03-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/7d7db8ec-6efc-4eb4-9547-f87c44669057?api-version=2021-03-01" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "1a14cc50-7e35-48c2-aa3f-82f41c406abd" ], + "x-ms-request-id": [ "7d7db8ec-6efc-4eb4-9547-f87c44669057" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/CreateUpdateDeleteCloudServiceOperations30Min;286" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], - "x-ms-correlation-request-id": [ "339d5cf5-2429-4647-8b98-8f21167e7a2f" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T113019Z:339d5cf5-2429-4647-8b98-8f21167e7a2f" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1184" ], + "x-ms-correlation-request-id": [ "62674d62-7e43-4dde-87f5-48d77b2ed854" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T013600Z:62674d62-7e43-4dde-87f5-48d77b2ed854" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:30:19 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:36:00 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], "Content-Length": [ "0" ] }, - "Content": null + "Content": null, + "isContentBase64": false } }, - "Stop-AzCloudService+[NoContext]+PowerOff/Stop cloud service via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1a14cc50-7e35-48c2-aa3f-82f41c406abd?api-version=2020-10-01-preview+3": { + "Stop-AzCloudService+[NoContext]+PowerOff/Stop cloud service via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/7d7db8ec-6efc-4eb4-9547-f87c44669057?api-version=2021-03-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1a14cc50-7e35-48c2-aa3f-82f41c406abd?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/7d7db8ec-6efc-4eb4-9547-f87c44669057?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "7" ], - "x-ms-client-request-id": [ "225d8f83-336f-403c-a365-6215166d434a" ], + "x-ms-unique-id": [ "133" ], + "x-ms-client-request-id": [ "31f86d6e-3bd1-427b-9d47-d2cb10030988" ], "CommandName": [ "Stop-AzCloudService" ], "FullCommandName": [ "Stop-AzCloudService_PowerOffViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -260,32 +276,34 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "7dc8a58b-b4e8-42fa-83f7-d8b4cb3bd543" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "0e5855f5-eb15-4c91-aa97-80b3f40fbd6b" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], - "x-ms-correlation-request-id": [ "87df12b8-f74f-4f84-8b0e-a80fa5cc15d2" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T113049Z:87df12b8-f74f-4f84-8b0e-a80fa5cc15d2" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11874" ], + "x-ms-correlation-request-id": [ "1ad0760f-f54c-4645-984f-50e1ad935985" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T013633Z:1ad0760f-f54c-4645-984f-50e1ad935985" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:30:49 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:36:33 GMT" ] }, "ContentHeaders": { "Content-Length": [ "184" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:30:19.3320582+00:00\",\r\n \"endTime\": \"2021-01-26T11:30:34.7185443+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"1a14cc50-7e35-48c2-aa3f-82f41c406abd\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:36:00.6054852+00:00\",\r\n \"endTime\": \"2021-03-26T01:36:15.9479165+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"7d7db8ec-6efc-4eb4-9547-f87c44669057\"\r\n}", + "isContentBase64": false } }, - "Stop-AzCloudService+[NoContext]+PowerOff/Stop cloud service via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1a14cc50-7e35-48c2-aa3f-82f41c406abd?monitor=true\u0026api-version=2020-10-01-preview+4": { + "Stop-AzCloudService+[NoContext]+PowerOff/Stop cloud service via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/7d7db8ec-6efc-4eb4-9547-f87c44669057?monitor=true\u0026api-version=2021-03-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1a14cc50-7e35-48c2-aa3f-82f41c406abd?monitor=true\u0026api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/7d7db8ec-6efc-4eb4-9547-f87c44669057?monitor=true\u0026api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "8" ], - "x-ms-client-request-id": [ "225d8f83-336f-403c-a365-6215166d434a" ], + "x-ms-unique-id": [ "134" ], + "x-ms-client-request-id": [ "31f86d6e-3bd1-427b-9d47-d2cb10030988" ], "CommandName": [ "Stop-AzCloudService" ], "FullCommandName": [ "Stop-AzCloudService_PowerOffViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -300,20 +318,21 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "2e290221-2176-41ee-8625-16fa83d583a2" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "3aade4bf-81f1-4b25-8c0d-70af3a9313bb" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], - "x-ms-correlation-request-id": [ "27347900-f635-4f1a-ae6c-933c90c86beb" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T113050Z:27347900-f635-4f1a-ae6c-933c90c86beb" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11873" ], + "x-ms-correlation-request-id": [ "2972a86a-efa4-4609-96a9-be945fbf2ac2" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T013634Z:2972a86a-efa4-4609-96a9-be945fbf2ac2" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:30:49 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:36:33 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], "Content-Length": [ "0" ] }, - "Content": null + "Content": null, + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/CloudService/test/Update-AzCloudService.Recording.json b/src/CloudService/test/Update-AzCloudService.Recording.json index 310772225600..26ad1f736af1 100644 --- a/src/CloudService/test/Update-AzCloudService.Recording.json +++ b/src/CloudService/test/Update-AzCloudService.Recording.json @@ -1,12 +1,13 @@ { - "Update-AzCloudService+[NoContext]+Update cloud service via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft?api-version=2020-10-01-preview+1": { + "Update-AzCloudService+[NoContext]+Update cloud service via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k?api-version=2021-03-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "1" ], - "x-ms-client-request-id": [ "9349c8d8-da2c-404d-8e1a-123ea0c23aca" ], + "x-ms-unique-id": [ "135" ], + "x-ms-client-request-id": [ "564220b8-fbdb-4786-bbb7-1490f9436bcf" ], "CommandName": [ "Get-AzCloudService" ], "FullCommandName": [ "Get-AzCloudService_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -22,32 +23,35 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "09603cae-4d7e-464f-8de2-c4424774148a" ], + "x-ms-request-id": [ "d421a752-7b76-4371-9aad-28571b30db97" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/GetCloudService3Min;396,Microsoft.Compute/GetCloudService30Min;2577" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], - "x-ms-correlation-request-id": [ "66b46174-6598-4f57-a395-bec5d5b64b88" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T112216Z:66b46174-6598-4f57-a395-bec5d5b64b88" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11872" ], + "x-ms-correlation-request-id": [ "8be07848-37a6-4719-aeee-16722ecb4465" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T013635Z:8be07848-37a6-4719-aeee-16722ecb4465" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:22:16 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:36:35 GMT" ] }, "ContentHeaders": { "Content-Length": [ "3522" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"name\": \"cscmdlettest1p3wg7ft\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Auto\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"name\": \"GenevaExtension\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Succeeded\",\r\n \"rolesAppliedTo\": [\r\n \"*\"\r\n ],\r\n \"publisher\": \"Microsoft.Azure.Geneva\",\r\n \"type\": \"GenevaMonitoringPaaS\",\r\n \"typeHandlerVersion\": \"2.14.0.2\",\r\n \"settings\": \"\"\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"00541f30-ad0f-4939-86c9-178056f1b29a\"\r\n }\r\n}" + "Content": "{\r\n \"name\": \"cscmdlettestoe6r0n2k\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Auto\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"name\": \"GenevaExtension\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Succeeded\",\r\n \"rolesAppliedTo\": [\r\n \"*\"\r\n ],\r\n \"publisher\": \"Microsoft.Azure.Geneva\",\r\n \"type\": \"GenevaMonitoringPaaS\",\r\n \"typeHandlerVersion\": \"2.14.0.2\",\r\n \"settings\": \"\"\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"25056192-64fb-42b6-b81f-37e6b25c1515\"\r\n }\r\n}", + "isContentBase64": false } }, - "Update-AzCloudService+[NoContext]+Update cloud service via identity+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft?api-version=2020-10-01-preview+2": { + "Update-AzCloudService+[NoContext]+Update cloud service via identity+$PUT+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k?api-version=2021-03-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft?api-version=2020-10-01-preview", - "Content": "{\r\n \"properties\": {\r\n \"configuration\": \"\\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\\u003e\\r\\n\\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\\u003e\\r\\n\\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\\u003e\\r\\n \\u003cRole name=\\\"WebRole\\\"\\u003e\\r\\n \\u003cInstances count=\\\"2\\\" /\\u003e\\r\\n \\u003cConfigurationSettings\\u003e\\r\\n \\u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\\u003e\\r\\n \\u003c/ConfigurationSettings\\u003e\\r\\n \\u003c/Role\\u003e\\r\\n \\u003cRole name=\\\"WorkerRole\\\"\\u003e\\r\\n \\u003cInstances count=\\\"2\\\" /\\u003e\\r\\n \\u003cConfigurationSettings\\u003e\\r\\n \\u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\\u003e\\r\\n \\u003c/ConfigurationSettings\\u003e\\r\\n \\u003c/Role\\u003e\\r\\n \\u003cNetworkConfiguration\\u003e\\r\\n \\u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\\u003e\\r\\n \\u003cAddressAssignments\\u003e\\r\\n \\u003cInstanceAddress roleName=\\\"WebRole\\\"\\u003e\\r\\n \\u003cSubnets\\u003e\\r\\n \\u003cSubnet name=\\\"WebTier\\\" /\\u003e\\r\\n \\u003c/Subnets\\u003e\\r\\n \\u003c/InstanceAddress\\u003e\\r\\n \\u003cInstanceAddress roleName=\\\"WorkerRole\\\"\\u003e\\r\\n \\u003cSubnets\\u003e\\r\\n \\u003cSubnet name=\\\"WebTier\\\" /\\u003e\\r\\n \\u003c/Subnets\\u003e\\r\\n \\u003c/InstanceAddress\\u003e\\r\\n \\u003c/AddressAssignments\\u003e\\r\\n \\u003c/NetworkConfiguration\\u003e\\r\\n\\u003c/ServiceConfiguration\\u003e\",\r\n \"upgradeMode\": \"Auto\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"name\": \"WebRole\"\r\n },\r\n {\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"name\": \"WorkerRole\"\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": [ ]\r\n },\r\n \"networkProfile\": {\r\n \"loadBalancerConfigurations\": [\r\n {\r\n \"properties\": {\r\n \"frontendIPConfigurations\": [\r\n {\r\n \"properties\": {\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip\"\r\n }\r\n },\r\n \"name\": \"cscmdlettestLBFE\"\r\n }\r\n ]\r\n },\r\n \"name\": \"cscmdlettestLB\"\r\n }\r\n ]\r\n },\r\n \"extensionProfile\": {\r\n \"extensions\": [ ]\r\n }\r\n },\r\n \"location\": \"eastus2euap\"\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k?api-version=2021-03-01", + "Content": "{\r\n \"properties\": {\r\n \"configuration\": \"\\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\\u003e\\r\\n\\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\\u003e\\r\\n\\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\\u003e\\r\\n \\u003cRole name=\\\"WebRole\\\"\\u003e\\r\\n \\u003cInstances count=\\\"2\\\" /\\u003e\\r\\n \\u003cConfigurationSettings\\u003e\\r\\n \\u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\\u003e\\r\\n \\u003c/ConfigurationSettings\\u003e\\r\\n \\u003c/Role\\u003e\\r\\n \\u003cRole name=\\\"WorkerRole\\\"\\u003e\\r\\n \\u003cInstances count=\\\"2\\\" /\\u003e\\r\\n \\u003cConfigurationSettings\\u003e\\r\\n \\u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\\u003e\\r\\n \\u003c/ConfigurationSettings\\u003e\\r\\n \\u003c/Role\\u003e\\r\\n \\u003cNetworkConfiguration\\u003e\\r\\n \\u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\\u003e\\r\\n \\u003cAddressAssignments\\u003e\\r\\n \\u003cInstanceAddress roleName=\\\"WebRole\\\"\\u003e\\r\\n \\u003cSubnets\\u003e\\r\\n \\u003cSubnet name=\\\"WebTier\\\" /\\u003e\\r\\n \\u003c/Subnets\\u003e\\r\\n \\u003c/InstanceAddress\\u003e\\r\\n \\u003cInstanceAddress roleName=\\\"WorkerRole\\\"\\u003e\\r\\n \\u003cSubnets\\u003e\\r\\n \\u003cSubnet name=\\\"WebTier\\\" /\\u003e\\r\\n \\u003c/Subnets\\u003e\\r\\n \\u003c/InstanceAddress\\u003e\\r\\n \\u003c/AddressAssignments\\u003e\\r\\n \\u003c/NetworkConfiguration\\u003e\\r\\n\\u003c/ServiceConfiguration\\u003e\",\r\n \"upgradeMode\": \"Auto\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"name\": \"WebRole\"\r\n },\r\n {\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"name\": \"WorkerRole\"\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": [ ]\r\n },\r\n \"networkProfile\": {\r\n \"loadBalancerConfigurations\": [\r\n {\r\n \"properties\": {\r\n \"frontendIPConfigurations\": [\r\n {\r\n \"properties\": {\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Network/publicIPAddresses/cscmdlettestip\"\r\n }\r\n },\r\n \"name\": \"cscmdlettestLBFE\"\r\n }\r\n ]\r\n },\r\n \"name\": \"cscmdlettestLB\"\r\n }\r\n ]\r\n },\r\n \"extensionProfile\": {\r\n \"extensions\": [ ]\r\n }\r\n },\r\n \"location\": \"eastus2euap\"\r\n}", + "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "3314" ] + "Content-Length": [ "3309" ] } }, "Response": { @@ -55,33 +59,36 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/637c7461-7109-49f8-b2d7-149b6381eff6?api-version=2020-10-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1d1ff964-4b19-4f66-8f28-708995ea6f36?api-version=2021-03-01" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "637c7461-7109-49f8-b2d7-149b6381eff6" ], + "x-ms-request-id": [ "1d1ff964-4b19-4f66-8f28-708995ea6f36" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/CreateUpdateDeleteCloudServiceOperations30Min;285" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], - "x-ms-correlation-request-id": [ "702db9ad-2a41-4d29-8664-e199262a70aa" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T112218Z:702db9ad-2a41-4d29-8664-e199262a70aa" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1193" ], + "x-ms-correlation-request-id": [ "74343edc-cf2d-4d24-aef9-5cbaa9dfe1cb" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T013645Z:74343edc-cf2d-4d24-aef9-5cbaa9dfe1cb" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:22:17 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:36:45 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "3079" ], + "Content-Length": [ "3074" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"name\": \"cscmdlettest1p3wg7ft\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Auto\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": []\r\n },\r\n \"provisioningState\": \"Updating\",\r\n \"uniqueId\": \"00541f30-ad0f-4939-86c9-178056f1b29a\"\r\n }\r\n}" + "Content": "{\r\n \"name\": \"cscmdlettestoe6r0n2k\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Auto\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Network/publicIPAddresses/cscmdlettestip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": []\r\n },\r\n \"provisioningState\": \"Updating\",\r\n \"uniqueId\": \"25056192-64fb-42b6-b81f-37e6b25c1515\"\r\n }\r\n}", + "isContentBase64": false } }, - "Update-AzCloudService+[NoContext]+Update cloud service via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/637c7461-7109-49f8-b2d7-149b6381eff6?api-version=2020-10-01-preview+3": { + "Update-AzCloudService+[NoContext]+Update cloud service via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1d1ff964-4b19-4f66-8f28-708995ea6f36?api-version=2021-03-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/637c7461-7109-49f8-b2d7-149b6381eff6?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1d1ff964-4b19-4f66-8f28-708995ea6f36?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "3" ], - "x-ms-client-request-id": [ "f0d96840-9223-4c28-a595-7ec69c98e5e6" ], + "x-ms-unique-id": [ "137" ], + "x-ms-client-request-id": [ "85eef482-7fa3-4227-925a-780f06ef9b64" ], "CommandName": [ "Update-AzCloudService" ], "FullCommandName": [ "Update-AzCloudService_CreateViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -96,32 +103,34 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "5f7fb2be-b3bd-4466-bde7-c2fb9a753d08" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "47c674d4-319d-4bad-8953-f0ea2aab273e" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], - "x-ms-correlation-request-id": [ "71c733d7-8778-4015-bdaa-69ecc3decafc" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T112249Z:71c733d7-8778-4015-bdaa-69ecc3decafc" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11871" ], + "x-ms-correlation-request-id": [ "f46db996-b501-4d5e-9635-64c5eed1338a" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T013716Z:f46db996-b501-4d5e-9635-64c5eed1338a" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:22:48 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:37:15 GMT" ] }, "ContentHeaders": { "Content-Length": [ "134" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:22:17.0768507+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"637c7461-7109-49f8-b2d7-149b6381eff6\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:36:41.4358556+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"1d1ff964-4b19-4f66-8f28-708995ea6f36\"\r\n}", + "isContentBase64": false } }, - "Update-AzCloudService+[NoContext]+Update cloud service via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/637c7461-7109-49f8-b2d7-149b6381eff6?api-version=2020-10-01-preview+4": { + "Update-AzCloudService+[NoContext]+Update cloud service via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1d1ff964-4b19-4f66-8f28-708995ea6f36?api-version=2021-03-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/637c7461-7109-49f8-b2d7-149b6381eff6?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/1d1ff964-4b19-4f66-8f28-708995ea6f36?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "4" ], - "x-ms-client-request-id": [ "f0d96840-9223-4c28-a595-7ec69c98e5e6" ], + "x-ms-unique-id": [ "138" ], + "x-ms-client-request-id": [ "85eef482-7fa3-4227-925a-780f06ef9b64" ], "CommandName": [ "Update-AzCloudService" ], "FullCommandName": [ "Update-AzCloudService_CreateViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -136,392 +145,34 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "a125e236-9901-458a-b24d-23dbead7414e" ], + "x-ms-served-by": [ "5c0ea146-6027-4948-b7cf-c10a0ff2b9df_132606022997966010" ], + "x-ms-request-id": [ "418eba61-48c5-42ac-b1b6-f289c0889c31" ], "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], - "x-ms-correlation-request-id": [ "4d957870-b755-4280-a9b3-9e3907043093" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T112319Z:4d957870-b755-4280-a9b3-9e3907043093" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11870" ], + "x-ms-correlation-request-id": [ "4d98fd53-700e-4ccb-a862-7e308a086f48" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T013746Z:4d98fd53-700e-4ccb-a862-7e308a086f48" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:23:19 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "134" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:22:17.0768507+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"637c7461-7109-49f8-b2d7-149b6381eff6\"\r\n}" - } - }, - "Update-AzCloudService+[NoContext]+Update cloud service via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/637c7461-7109-49f8-b2d7-149b6381eff6?api-version=2020-10-01-preview+5": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/637c7461-7109-49f8-b2d7-149b6381eff6?api-version=2020-10-01-preview", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "5" ], - "x-ms-client-request-id": [ "f0d96840-9223-4c28-a595-7ec69c98e5e6" ], - "CommandName": [ "Update-AzCloudService" ], - "FullCommandName": [ "Update-AzCloudService_CreateViaIdentity" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "9e9b9bd4-2f77-42c4-9843-8e94b1329480" ], - "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], - "x-ms-correlation-request-id": [ "be3134f7-3be1-4b20-976b-0ae067548dde" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T112349Z:be3134f7-3be1-4b20-976b-0ae067548dde" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:23:49 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "134" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:22:17.0768507+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"637c7461-7109-49f8-b2d7-149b6381eff6\"\r\n}" - } - }, - "Update-AzCloudService+[NoContext]+Update cloud service via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/637c7461-7109-49f8-b2d7-149b6381eff6?api-version=2020-10-01-preview+6": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/637c7461-7109-49f8-b2d7-149b6381eff6?api-version=2020-10-01-preview", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "6" ], - "x-ms-client-request-id": [ "f0d96840-9223-4c28-a595-7ec69c98e5e6" ], - "CommandName": [ "Update-AzCloudService" ], - "FullCommandName": [ "Update-AzCloudService_CreateViaIdentity" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "11963dbd-980c-49b6-9ded-1982ed1f1887" ], - "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], - "x-ms-correlation-request-id": [ "ab79077e-d3a7-4ab1-96f3-efa293be4380" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T112419Z:ab79077e-d3a7-4ab1-96f3-efa293be4380" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:24:19 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "134" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:22:17.0768507+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"637c7461-7109-49f8-b2d7-149b6381eff6\"\r\n}" - } - }, - "Update-AzCloudService+[NoContext]+Update cloud service via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/637c7461-7109-49f8-b2d7-149b6381eff6?api-version=2020-10-01-preview+7": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/637c7461-7109-49f8-b2d7-149b6381eff6?api-version=2020-10-01-preview", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "7" ], - "x-ms-client-request-id": [ "f0d96840-9223-4c28-a595-7ec69c98e5e6" ], - "CommandName": [ "Update-AzCloudService" ], - "FullCommandName": [ "Update-AzCloudService_CreateViaIdentity" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "10109159-c740-41df-a020-f76d637f8098" ], - "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], - "x-ms-correlation-request-id": [ "9a85967a-7266-4716-883b-dd8f46623592" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T112450Z:9a85967a-7266-4716-883b-dd8f46623592" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:24:50 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "134" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:22:17.0768507+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"637c7461-7109-49f8-b2d7-149b6381eff6\"\r\n}" - } - }, - "Update-AzCloudService+[NoContext]+Update cloud service via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/637c7461-7109-49f8-b2d7-149b6381eff6?api-version=2020-10-01-preview+8": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/637c7461-7109-49f8-b2d7-149b6381eff6?api-version=2020-10-01-preview", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "8" ], - "x-ms-client-request-id": [ "f0d96840-9223-4c28-a595-7ec69c98e5e6" ], - "CommandName": [ "Update-AzCloudService" ], - "FullCommandName": [ "Update-AzCloudService_CreateViaIdentity" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "3bc94e9f-7777-4b67-a98f-3fb82bbc8d1a" ], - "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], - "x-ms-correlation-request-id": [ "3de80445-c2fd-4f72-8340-717aeccaef7d" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T112520Z:3de80445-c2fd-4f72-8340-717aeccaef7d" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:25:20 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "134" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:22:17.0768507+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"637c7461-7109-49f8-b2d7-149b6381eff6\"\r\n}" - } - }, - "Update-AzCloudService+[NoContext]+Update cloud service via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/637c7461-7109-49f8-b2d7-149b6381eff6?api-version=2020-10-01-preview+9": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/637c7461-7109-49f8-b2d7-149b6381eff6?api-version=2020-10-01-preview", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "9" ], - "x-ms-client-request-id": [ "f0d96840-9223-4c28-a595-7ec69c98e5e6" ], - "CommandName": [ "Update-AzCloudService" ], - "FullCommandName": [ "Update-AzCloudService_CreateViaIdentity" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "477b2a44-7eac-4c75-8680-fcc9d541b937" ], - "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], - "x-ms-correlation-request-id": [ "1052077b-26aa-45dc-87af-fe98b22da7e1" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T112550Z:1052077b-26aa-45dc-87af-fe98b22da7e1" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:25:50 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "134" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:22:17.0768507+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"637c7461-7109-49f8-b2d7-149b6381eff6\"\r\n}" - } - }, - "Update-AzCloudService+[NoContext]+Update cloud service via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/637c7461-7109-49f8-b2d7-149b6381eff6?api-version=2020-10-01-preview+10": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/637c7461-7109-49f8-b2d7-149b6381eff6?api-version=2020-10-01-preview", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "10" ], - "x-ms-client-request-id": [ "f0d96840-9223-4c28-a595-7ec69c98e5e6" ], - "CommandName": [ "Update-AzCloudService" ], - "FullCommandName": [ "Update-AzCloudService_CreateViaIdentity" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "05290eda-46d4-4ac2-a116-bbffd2f61b6c" ], - "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], - "x-ms-correlation-request-id": [ "81cebf37-2b1a-4eb8-b249-4a75c7d26d24" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T112621Z:81cebf37-2b1a-4eb8-b249-4a75c7d26d24" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:26:21 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "134" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:22:17.0768507+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"637c7461-7109-49f8-b2d7-149b6381eff6\"\r\n}" - } - }, - "Update-AzCloudService+[NoContext]+Update cloud service via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/637c7461-7109-49f8-b2d7-149b6381eff6?api-version=2020-10-01-preview+11": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/637c7461-7109-49f8-b2d7-149b6381eff6?api-version=2020-10-01-preview", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "11" ], - "x-ms-client-request-id": [ "f0d96840-9223-4c28-a595-7ec69c98e5e6" ], - "CommandName": [ "Update-AzCloudService" ], - "FullCommandName": [ "Update-AzCloudService_CreateViaIdentity" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "3ae57431-6b99-4e73-9bbb-610f599b3970" ], - "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], - "x-ms-correlation-request-id": [ "de474b8d-22e6-4464-9d4a-29b37a14d61b" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T112651Z:de474b8d-22e6-4464-9d4a-29b37a14d61b" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:26:51 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "134" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:22:17.0768507+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"637c7461-7109-49f8-b2d7-149b6381eff6\"\r\n}" - } - }, - "Update-AzCloudService+[NoContext]+Update cloud service via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/637c7461-7109-49f8-b2d7-149b6381eff6?api-version=2020-10-01-preview+12": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/637c7461-7109-49f8-b2d7-149b6381eff6?api-version=2020-10-01-preview", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "12" ], - "x-ms-client-request-id": [ "f0d96840-9223-4c28-a595-7ec69c98e5e6" ], - "CommandName": [ "Update-AzCloudService" ], - "FullCommandName": [ "Update-AzCloudService_CreateViaIdentity" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "e517a6a3-e692-4e6c-b92c-1dbbde1262f5" ], - "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], - "x-ms-correlation-request-id": [ "d0f372fd-098a-4560-9cc8-8183fb3ade08" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T112721Z:d0f372fd-098a-4560-9cc8-8183fb3ade08" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:27:21 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "134" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:22:17.0768507+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"637c7461-7109-49f8-b2d7-149b6381eff6\"\r\n}" - } - }, - "Update-AzCloudService+[NoContext]+Update cloud service via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/637c7461-7109-49f8-b2d7-149b6381eff6?api-version=2020-10-01-preview+13": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/637c7461-7109-49f8-b2d7-149b6381eff6?api-version=2020-10-01-preview", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "13" ], - "x-ms-client-request-id": [ "f0d96840-9223-4c28-a595-7ec69c98e5e6" ], - "CommandName": [ "Update-AzCloudService" ], - "FullCommandName": [ "Update-AzCloudService_CreateViaIdentity" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-served-by": [ "787e3d21-7034-4972-93ee-88eb5e7f3d12_132556236877268137" ], - "x-ms-request-id": [ "75b6e42a-0d12-4e94-9226-35e6c352f759" ], - "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], - "x-ms-correlation-request-id": [ "092398de-2781-4b2e-896d-b14b83ed800f" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T112752Z:092398de-2781-4b2e-896d-b14b83ed800f" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:27:51 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:37:46 GMT" ] }, "ContentHeaders": { "Content-Length": [ "184" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"startTime\": \"2021-01-26T11:22:17.0768507+00:00\",\r\n \"endTime\": \"2021-01-26T11:27:41.2185642+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"637c7461-7109-49f8-b2d7-149b6381eff6\"\r\n}" + "Content": "{\r\n \"startTime\": \"2021-03-26T01:36:41.4358556+00:00\",\r\n \"endTime\": \"2021-03-26T01:37:28.2005893+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"1d1ff964-4b19-4f66-8f28-708995ea6f36\"\r\n}", + "isContentBase64": false } }, - "Update-AzCloudService+[NoContext]+Update cloud service via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft?api-version=2020-10-01-preview+14": { + "Update-AzCloudService+[NoContext]+Update cloud service via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k?api-version=2021-03-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "14" ], - "x-ms-client-request-id": [ "f0d96840-9223-4c28-a595-7ec69c98e5e6" ], + "x-ms-unique-id": [ "139" ], + "x-ms-client-request-id": [ "85eef482-7fa3-4227-925a-780f06ef9b64" ], "CommandName": [ "Update-AzCloudService" ], "FullCommandName": [ "Update-AzCloudService_CreateViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -536,30 +187,33 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "c310d0df-2b5e-40d5-afa8-7a98c39b3dc3" ], + "x-ms-request-id": [ "fa576561-970f-4390-9386-bc347990b5f7" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/GetCloudService3Min;395,Microsoft.Compute/GetCloudService30Min;2575" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], - "x-ms-correlation-request-id": [ "de2789ec-6378-4085-8db4-c1d9614be15a" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T112752Z:de2789ec-6378-4085-8db4-c1d9614be15a" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11869" ], + "x-ms-correlation-request-id": [ "be38635a-8d4c-4b73-b844-b9eb3c12ab34" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T013746Z:be38635a-8d4c-4b73-b844-b9eb3c12ab34" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:27:51 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:37:46 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "3021" ], + "Content-Length": [ "3016" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"name\": \"cscmdlettest1p3wg7ft\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Auto\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip\"}}}]}}]},\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"00541f30-ad0f-4939-86c9-178056f1b29a\"\r\n }\r\n}" + "Content": "{\r\n \"name\": \"cscmdlettestoe6r0n2k\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Auto\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Network/publicIPAddresses/cscmdlettestip\"}}}]}}]},\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"25056192-64fb-42b6-b81f-37e6b25c1515\"\r\n }\r\n}", + "isContentBase64": false } }, - "Update-AzCloudService+[NoContext]+Update cloud service via identity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft?api-version=2020-10-01-preview+15": { + "Update-AzCloudService+[NoContext]+Update cloud service via identity+$GET+https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k?api-version=2021-03-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft?api-version=2020-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k?api-version=2021-03-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "15" ], - "x-ms-client-request-id": [ "07817bbd-45e3-4e7b-909d-24c85c972ec5" ], + "x-ms-unique-id": [ "140" ], + "x-ms-client-request-id": [ "3cadeeea-76df-4fdb-a788-4cbec60b0a77" ], "CommandName": [ "Get-AzCloudService" ], "FullCommandName": [ "Get-AzCloudService_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -575,20 +229,22 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "bd16f4e2-258f-4f36-b768-645b42bdf70b" ], + "x-ms-request-id": [ "9facf811-91f9-4f42-b341-0811dc963027" ], + "x-ms-ratelimit-remaining-resource": [ "Microsoft.Compute/GetCloudService3Min;394,Microsoft.Compute/GetCloudService30Min;2574" ], "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], - "x-ms-correlation-request-id": [ "feb30abf-3b4b-4fd8-af02-7ec110b983f8" ], - "x-ms-routing-request-id": [ "JAPANEAST:20210126T112752Z:feb30abf-3b4b-4fd8-af02-7ec110b983f8" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11868" ], + "x-ms-correlation-request-id": [ "5b33fbea-a064-4683-9990-5b3d9185a744" ], + "x-ms-routing-request-id": [ "BRAZILUS:20210326T013747Z:5b33fbea-a064-4683-9990-5b3d9185a744" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 26 Jan 2021 11:27:52 GMT" ] + "Date": [ "Fri, 26 Mar 2021 01:37:46 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "3021" ], + "Content-Length": [ "3016" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"name\": \"cscmdlettest1p3wg7ft\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/CSCMDLETTESTT7J29U46/providers/Microsoft.Compute/cloudServices/cscmdlettest1p3wg7ft\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Auto\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip\"}}}]}}]},\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"00541f30-ad0f-4939-86c9-178056f1b29a\"\r\n }\r\n}" + "Content": "{\r\n \"name\": \"cscmdlettestoe6r0n2k\",\r\n \"id\": \"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/CSCMDLETTESTN8RMH5QX/providers/Microsoft.Compute/cloudServices/cscmdlettestoe6r0n2k\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Auto\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Network/publicIPAddresses/cscmdlettestip\"}}}]}}]},\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"25056192-64fb-42b6-b81f-37e6b25c1515\"\r\n }\r\n}", + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/CloudService/test/Update-AzCloudService.Tests.ps1 b/src/CloudService/test/Update-AzCloudService.Tests.ps1 index 570bd39422a8..54f5a1adb133 100644 --- a/src/CloudService/test/Update-AzCloudService.Tests.ps1 +++ b/src/CloudService/test/Update-AzCloudService.Tests.ps1 @@ -14,8 +14,15 @@ while(-not $mockingPath) { Describe 'Update-AzCloudService' { It 'Update cloud service via identity' { + # Create Network Profile + $feIpConfig = New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject -Name "cscmdlettestLBFE" -PublicIPAddressId $env.PublicIpId + $loadBalancerConfig = New-AzCloudServiceLoadBalancerConfigurationObject -Name "cscmdlettestLB" -FrontendIPConfiguration $feIpConfig + $networkProfile = @{loadBalancerConfiguration = $loadBalancerConfig} + $cloudService = Get-AzCloudService -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName $cloudService.ExtensionProfile.Extension = @() + # Keep the network profile that the cloud service was originally created with + $cloudService.NetworkProfile = $networkProfile Update-AzCloudService -InputObject $cloudService -Parameter $cloudService $cloudService = Get-AzCloudService -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName $cloudService.ExtensionProfile.Extension.Count | Should be 0 diff --git a/src/CloudService/test/env.json b/src/CloudService/test/env.json index bf98ca9af4c9..9493c1ad9670 100644 --- a/src/CloudService/test/env.json +++ b/src/CloudService/test/env.json @@ -1,13 +1,16 @@ { - "CloudServiceName": "cscmdlettest1p3wg7ft", + "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "NewCSPublicIPId": "/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip", "CspkgFile": "test-artifacts\\CSCmdletTest.cspkg", - "RoleInstanceName": "WebRole_IN_0", + "Location": "EastUS2EUAP", + "OSVersionName": "WA-GUEST-OS-2.106_202101-01", + "CloudServiceName": "cscmdlettestoe6r0n2k", "CscfgFile": "test-artifacts\\CSCmdletTest.cscfg", + "PublicIpId": "/subscriptions/1c1df74e-7a1a-4d81-afaa-40c4902f98a9/resourceGroups/cscmdlettestn8rmh5qx/providers/Microsoft.Network/publicIPAddresses/cscmdlettestip", + "CspkgUrl": "https://cscmdlettestkf3bd0qx.blob.core.windows.net/cscmdlettestcontainer/CSCmdletTest.cspkg?sv=2019-07-07&sr=b&sig=QG8ZEybGKe%2F%2BDjMER%2FGSjkFRIyvsyVSOHb8YAebYg2g%3D&st=2021-03-26T01%3A01%3A13Z&se=2022-03-26T01%3A01%3A13Z&sp=rwd", + "ResourceGroupName": "cscmdlettestn8rmh5qx", "RDPOutputFile": "desktopdowntest.rdp", - "CspkgUrl": "https://cscmdlettestc0im4js2.blob.core.windows.net/cscmdlettestcontainer/CSCmdletTest.cspkg?sv=2019-07-07&sr=b&sig=lTsWkgAfvAhxIc2mm7roL0PX9QGfPuYOlFovZZH4wvM%3D&st=2021-01-26T10%3A00%3A18Z&se=2022-01-26T10%3A00%3A18Z&sp=rwd", - "SubscriptionId": "9e223dbe-3399-4e19-88eb-0975f02ac87f", - "NewCSPublicIPId": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/cscmdlettestt7j29u46/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip", - "ResourceGroupName": "cscmdlettestt7j29u46", - "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "Location": "EastUS2EUAP" + "SubscriptionId": "1c1df74e-7a1a-4d81-afaa-40c4902f98a9", + "RoleInstanceName": "WebRole_IN_0", + "OSFamilyName": "5" } diff --git a/src/CloudService/test/test-artifacts/desktopdowntest.rdp b/src/CloudService/test/test-artifacts/desktopdowntest.rdp index dc6c268f2b7d..e6dcf68a59bf 100644 --- a/src/CloudService/test/test-artifacts/desktopdowntest.rdp +++ b/src/CloudService/test/test-artifacts/desktopdowntest.rdp @@ -1,3 +1,3 @@ -full address:s:52.225.181.4 -username:s:youri +full address:s:52.225.152.33 +username:s:userazure LoadBalanceInfo:s:Cookie: mstshash=WebRole#WebRole_IN_0 diff --git a/src/CloudService/test/utils.ps1 b/src/CloudService/test/utils.ps1 index 61d967e4fbd3..32e00909154d 100644 --- a/src/CloudService/test/utils.ps1 +++ b/src/CloudService/test/utils.ps1 @@ -16,7 +16,8 @@ function CreateCloudService([string]$publicIpName, [string]$cloudServiceName) { # Create Public IP Write-Host -ForegroundColor Yellow "Creating Public IP" $publicIpName $publicIp = New-AzPublicIpAddress -Name $publicIpName -ResourceGroupName $env.ResourceGroupName -Location $env.Location -AllocationMethod "Dynamic" -IpAddressVersion "IPv4" -DomainNameLabel ("cscmdlettest" + (RandomString $false 8)) -Sku "Basic" - + $env.PublicIpId = $publicIp.Id + # Create Network Profile $feIpConfig = New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject -Name "cscmdlettestLBFE" -PublicIPAddressId $publicIp.Id $loadBalancerConfig = New-AzCloudServiceLoadBalancerConfigurationObject -Name "cscmdlettestLB" -FrontendIPConfiguration $feIpConfig @@ -67,7 +68,7 @@ function setupEnv() { $env.ResourceGroupName = "cscmdlettest" + (RandomString $false 8) $env.Location = "EastUS2EUAP" $env.CloudServiceName = "cscmdlettest" + (RandomString $false 8) - + $env.CscfgFile = "test-artifacts\CSCmdletTest.cscfg" $env.CspkgFile = "test-artifacts\CSCmdletTest.cspkg" $env.RoleInstanceName = "WebRole_IN_0" @@ -104,6 +105,12 @@ function setupEnv() { CreateCloudService "cscmdlettestip" $env.CloudServiceName + # Get and OS version/family to validate + $osVersions = Get-AzCloudServiceOSVersion -Location $env.Location + $osFamilies = Get-AzCloudServiceOSFamily -Location $env.Location + $env.OSVersionName = $osVersions[0].Name + $env.OSFamilyName = $osFamilies[0].Name + set-content -Path (Join-Path $PSScriptRoot $envFile) -Value (ConvertTo-Json $env) }